PHP 5.6 and PHP 7.0 reached EOL last Year! PHP 7.2/3 Compatibility Check

PHP 5.6 was first released back in 2014, with alpha 1 released in January 2014. Due to major performance improvements (phpng then merged into PHP 7), by December 2015 the PHP team started to encourage upgrading to PHP 7. Hailing it’s improvements such as being twice as fast, consistent 64-bit support, removal of old and unsupported SAPIs and extensions, improved fatal error resistance, etc.

Since then, we’ve had some movement on this front. PHP 7 now accounts for more than 15% of PHP versions in use. That’s up from 3% a year ago. PHP still holds about 80% market share of server-side programming languages for websites.

At the end of 2018 both PHP 5.6 and PHP 7.0 has reached EOL / support. Most webhosting company’s are still supporting these versions, but when will that end ? And are my scripts ready for PHP 7.2/7.3 ?

PHP 7.3 so far up to 25% faster than PHP 7.0

We are well aware that PHP 7 is at least 2x faster than PHP 5.6. However, have a look at the below Phoronix benchmark at just how much PHP 7 has improved since it’s first release at the end of 2015. PHP 7.3 is quite a bit faster than previous versions of PHP 7. PHP 7.3, so far, is up to 3x faster than PHP 5.6!

How to check if your PHP scripts are PHP 7.2 / 7.3 compatible

There are a few tools/scripts which automate the process of checking PHP 7.2 / 7.3 compatibility. Prior to writing this, I used php7cc (project no longer supported).There are however, a few other active projects:

  • php7mar – PHP 7 Migration Assistant Report (MAR). (Recommended)
  • phan – a static analyzer. PHP 7 checker.
  • phpstan – PHP Static Analysis and compatibility check.
  • There’s also PHPStorm for developers.

For example you run phan with something like:

phan --project-root-directory --progress-bar -o phan.out

or for php7mar:

php mar.php -f="/path/to/project/root/" -r="/path/to/output/"

Ronny Roethof

Ronny Roethof
Your bio goes here. It shouldn't be super long but a good two sentences or two should suffice.

Ha-Proxy PEM file order

Ha-Proxy PEM file order Continue reading

Remove all stopped containers

Published on April 06, 2016