PHP 7 was one of the most exciting events and release after major version PHP 5. PHP 7 introduces many new features and lots of performances upgrades.
PHP 7 also removes some old functionalities and features which were not compatible with older applications while migrating to new version.
PHP 7 released on 3rd December 2015.
New PHP 7 includes the following features:
- Improved performance
- Scalar type declarations
- Spaceship operator
- NULL coalesce operator
- Return type declarations
- Constant arrays using define()
- Anonymous classes
- Generator delegation
- Uniform variable syntax
- Generator return expressions
- Closure::call() method