PHP new version- PHP 5.4.0

PHP Development Updates

PHP 5.4.0 offers a wide range of new features:

  1. Support for traits has been added.
  2. The Short array syntax has been added, e.g. $a = [1, 2, 3, 4];
  3. Function array dereferencing has been added, e.g. foo () [0].
  4. Closures now support $this.
  5. <?= is now always available, regardless of the short_open_tag php.ini option.
  6. Class member access on instantiation has been added, e.g. (new Foo)->bar().
  7. Class::{expr}() syntax is now supported.
  8. The Binary number format has been added, e.g. 0b001001101.
  9. Improved parsing error messages and improved incompatible arguments warnings.
  10. The session extension can now track the upload progress of the files.
  11. Built-in development web server in CLI mode.