PHP 7 is the successor to PHP 5.6, it was released on December 3, 2015. Use this tag for issues relating to development using PHP 7
Several years ago there was a major push to make PHP Unicode compatible and this push focused around what was then slated to be PHP 6. An internal version was developed and a lot of material was published (including some books) about this new version. Serious problems with the implementation arose, however, and the project was abandoned, with most of the surviving code being implemented in PHP 5.4. To avoid confusion with this discussion the decision was made to skip version 6.
New features of PHP 7 include (See all accepted features):
- Zend Engine 3 (aka phpng, performance improvements and 64bit integer support on Windows)
- return type declarations
- ?? (null coalesce) operator
- scalar type declarations
- Anonymous classes
- Generator Return Expressions
- Generator delegation
- Session options
- CSPRNG (Cryptographically Secure PseudoRandom Number Generator)
- Spaceship Operator (i.e.
PHP7 migration guide
There's a whole section on Migrating from PHP 5.6.x to PHP 7.0.x in the manual: