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
PHP 7 is the next version of php. It succeeds php-5.6, which is the last release of the PHP 5.X version. PHP 7.0.0 was released on Dec 3, 2015
PHP 6
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.
Development
You can download the PHP 7 source and compile it yourself. Official builds are available on the PHP website.
Features
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 ( <=> )
- ...
PHP7 migration guide
There's a whole section on Migrating from PHP 5.6.x to PHP 7.0.x in the manual:
- Backward incompatible changes
- New features
- Changes in SAPI Modules
- Deprecated features in PHP 7.0.x
- Changed functions
- New functions
- New Classes and Interfaces
- New Global Constants
- Removed Extensions and SAPIs
- Other Changes
© 1997-2015, The PHP Documentation group, CC-BY 3.0
Information
- For global question on PHP, please use the generic tag: php
- If you want to talk about PHP or if you have a question, you can come to the PHP chat room