PHP 7 new features
PHP 7+ version has greatly improved performance. In some WordPress benchmark tests, the performance can reach 3 times that of PHP 5.6.
The new features of PHP 7+ version are shown in the following table:
Serial number | Content |
---|---|
1 | PHP scalar type and return value type declaration |
2 | PHP NULL merge operation Symbol |
3 | PHP spaceship operator (combination comparison operator) |
4 | PHP constant array |
5 | PHP anonymous class |
6 | PHP Closure::call() |
7 | PHP Filter unserialize() |
PHP IntlChar() | |
PHP CSPRNG | |
PHP 7 Exception | |
PHP 7 use statement | |
PHP 7 error handling | |
PHP intdiv() function | |
PHP 7 Session Options | |
PHP 7 Deprecated Features | |
Extensions removed from PHP 7 | |
SAPI removed from PHP 7 |