Chapter 1. Upgrading to PHP 7
PHP 7 is here, and it’s the most dramatic update to PHP in over a decade. A revamped engine (Zend Engine 3), numerous new features, and lots of language cleanup mean lots of exciting changes to the language that runs the Web.
Bringing with it huge speed improvements and minimal backward incompatibility, there are major benefits to upgrading today.
PHP 7 Timeline
With PHP 7.0 now released, we will see the end of life for PHP 5.5 on July 10, 2016, and PHP 5.6 will move to security-only fixes just a few months later on August 28, 2016—with its end of life scheduled to take place a year later.
What this also means, implicitly, is that any PHP version prior to 5.5 has already reached its end of life and is no longer receiving security fixes.
Given the backward incompatibility issues with moving to PHP 7, you might think that upgrading will be a painful and long process; however, the PHP team has done a fantastic job at minimizing backward incompatibility. In fact, I would go so far as to say that the upgrade to PHP 7.0 is easier than upgrading from 5.2 to 5.3.
How We Got Here
Keen-eyed readers will have noticed that we skipped straight from PHP 5 to PHP 7, and if you’re curious like me, you might be wondering just why that would be the case. While you might be tempted to think we’re following in the footsteps of Microsoft® Windows (which skipped version 9 and jumped from 8.1 to 10), in actual fact, it was a subject of much debate filled with intrigue, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access