Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP 7 New Features

PHP 7 New Features

PHP 7+ greatly improves performance; in some WordPress benchmarks, performance can reach three times that of PHP 5.6.

The new features added in PHP 7+ are shown in the table below:

No. Content
1 PHP Scalar Type Declarations and Return Type Declarations
2 PHP NULL Coalescing Operator
3 PHP Spaceship Operator (Combined Comparison Operator)
4 PHP Constant Arrays
5 PHP Anonymous Class
6 PHP Closure::call()
7 PHP filter unserialize()
8 PHP IntlChar()
9 PHP CSPRNG
10 PHP 7 Assertions
11 PHP 7 use Statement
12 PHP 7 Error Handling
13 PHP intdiv() Function
14 PHP 7 Session Options
15 PHP 7 Deprecated Features
16 PHP 7 Removed Extensions
17 PHP 7 Removed SAPIs