The PHP development team is proud to announce the immediate release of PHP 5.4.0. This release is a major improvement in the 5.x series, which includes a large number of new features and bug fixes.
- Support for traits has been added.
-
Short array syntax has been added, e.g.
$a = [1, 2, 3, 4];
or
$a = ['one' => 1, 'two' => 2, 'three' => 3, 'four' => 4];
. -
Function array dereferencing has been added, e.g.
foo()[0]
. -
Closures now support
$this
. -
<?=
is now always available, regardless of the
short_open_tag ini option. -
Class member access on instantiation has been added,
e.g.(new Foo)->bar()
. -
Class::{expr}()
syntax is now supported. -
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 web server in CLI mode.
PHP 5.4.0 Release Announcement →
PHP 5 Changelog →
PHP 5.4.0 Download →