PHP 7.4 Released With FFI, Typed Properties, Arrow Functions, Better Performance
Written by Michael Larabel in Programming on 28 November 2019 at 06:27 AM EST. 20 Comments
PROGRAMMING --
PHP 7.4 is out this US Thanksgiving day as the newest feature release for the PHP scripting language. PHP 7.4 comes with a number of prominent language additions while, yes, also having even better performance on the PHP series.

Among the highlights of this annual PHP7 update are:

- The Foreign Function Interface for accessing C structures / functions / variables from PHP code. The FFI extension is finally in place!

- Nice performance improvements over earlier PHP releases.

- The Opcache preload functionality as another route for even better performance on PHP 7.4.

- Support for typed properties... Yes, in 2019, PHP finally supports (optional) type declarations on class properties!

- Arrow functions as a shorthand means of defining functions with implicit by-value scope binding.

- The null coalescing assignment operator makes it easier to write some common PHP code.

- Custom object serialization via new magic methods of __serialize and __unserialize.

- proc_open() improvements.

More details on the many changes to find with PHP 7.4.0 via PHP.net.
Related News
About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com.

Popular News This Week