This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| php:versions [2017-02-13] – dcai | php:versions [2020-04-19] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== PHP Versions ===== | ||
| + | |||
| + | ==== 5.4 ==== | ||
| + | [[http:// | ||
| + | |||
| + | * Support for [[http:// | ||
| + | * Short array syntax has been added, e.g. $a = [1, 2, 3, 4]; or $a = [' | ||
| + | * Function array dereferencing has been added, e.g. foo()[0]. | ||
| + | * [[http:// | ||
| + | * Class member access on instantiation has been added, e.g. (new Foo)-> | ||
| + | * Class:: | ||
| + | * Binary number format has been added, e.g. 0b001001101. | ||
| + | * Improved parse error messages and improved incompatible arguments warnings. | ||
| + | * The session extension can now track the upload progress of files. | ||
| + | * Built-in development web server in CLI mode | ||
| + | ==== 5.5 ==== | ||
| + | [[http:// | ||
| + | |||
| + | * [[http:// | ||
| + | * finally keyword added | ||
| + | * foreach now supports list() | ||
| + | * empty() supports arbitrary expressions | ||
| + | * Class name resolution via :: | ||
| + | |||
| + | |||
| + | ==== 5.6 ==== | ||
| + | [[http:// | ||
| + | |||
| + | * Constant expressions | ||
| + | * Variadic functions via ... | ||
| + | * Argument unpacking via ... | ||
| + | * Exponentiation via ** | ||
| + | * use function and use const | ||
| + | |||
| + | ==== 7.0 ==== | ||
| + | [[http:// | ||
| + | |||
| + | * Scalar type declarations | ||
| + | * Return type declarations | ||
| + | * Null coalescing operator | ||
| + | * Spaceship operator | ||
| + | * Constant arrays using define() | ||
| + | * Anonymous classes | ||
| + | * Closure:: | ||
| + | * Expectations | ||
| + | * Group use declarations | ||
| + | |||
| + | ==== 7.1 ==== | ||
| + | http:// | ||