PHP 8: Only 3% installed it. Here’s why.

This morning, I read a comment by one of our online community members discussing some of the reasons behind the slow adoption of PHP 8. One member stated that it’s due to PHP compatibility issues across new releases. In contrast, another put it down to the fact that important software/frameworks did not support PHP 8 until recently. I think there is truth to both those reasons and that they tie into each other.

php8 upgrade now!

PHP 8 was released in November 2020, and as of May 2022, only about 3% of PHP-based websites currently use it! However, it has indeed taken a lot of software/frameworks a long time to reach full PHP 8 support—for example, WordPress, Magento, MediaWiki, Joomla, and others mentioned by Syndesi. In addition, going forward, Microsoft will not support PHP 8.

The slow adoption of PHP 8. Why?

Maybe PHP’s lifecycle is too fast for organizations to keep up with? That’s one of the questions that came to mind when I discovered that more than half of all PHP websites are STILL running PHP 7, which loses security support in six months.

Well, not really. It’s not just a PHP problem. It’s across the board. The enterprise space hates upgrading and wants to stay on a currently-installed version as long as possible. This is an issue facing many, from Windows 8 to MySQL 8 to RHEL 8. Maybe it’s something about version ‘8’s‘?? lol

Companies are hesitant to upgrade for anxiety of compatibility issues and service disruptions, so they delay upgrades instead. When the upgrade urgency becomes critical, that’s when some companies and small business websites start thinking about upgrading. Still, some just let things run with older, slower and less secure releases as they cling to some security offered by backports.

Have a look at:

Why upgrade to PHP 8?

php 8 jit benchmark

Source: php.watch/articles/jit-in-depth – PHP 8’s JIT is fast!

If you would like to upgrade to PHP 8 now, read this: PHP 8 Compatibility Check and Performance Tips.

PHP 7 was at least 2x faster than PHP 5.6. As for PHP 7 vs. PHP 8, the improvements are not as drastic but based on many benchmarks; it’s more than enough to be worthwhile. In addition to speed, PHP 8 delivers new features such as the much anticipated Just In Time (JIT) compiler (see above benchmark), other performance optimizations, and built-in/core JSON support, to name a few.

Conclusion

It’s essential to keep PHP up to date from a security standpoint. Faster PHP performance is significant in addition to security because end-users are becoming less tolerant of slow websites and applications. According to various benchmarks around the web, PHP 8 is considerably faster than PHP 7. In closing, it’s time to upgrade your applications to PHP 8!

So why only 3% of PHP websites have installed PHP 8? Well, it comes down to the culture of the industry. It’s not just a PHP problem.

_____

This is a follow-up article to 78% of the web powered by PHP (3% on PHP 8).

Tags: , ,

Discussion

  1. Microsoft not supporting PHP 8 is a pretty big deal in and of itself.

  2. I think it comes down to people mostly using shared hosting and the previous would be the most stable for them. For people who self-host, they are more likely to use 8.0/8.1 and have a fallback in place if something doesn’t run on the newer version.

  3. Yea, that’s definitely part of it as well.

  4. I was going to say similar to Glitch.

    Most people I know don’t host themselves but use a provider who does it for them. Even businesses do this. Heck, I would for a company which manages websites for people and we up-sell those hosting services and make a profit from it.

    I think things will change though and maybe they are anticipating it.

  5. Companies are hesitant to upgrade for anxiety of compatibility issues and service disruptions, so they delay upgrades instead.

    No this is not the main reason. The process of upgrading the PHP version is an engineering investment that virtually doesn’t pay off but a risk management. The whole process of converting or porting the codebase, setting up new environments, testing it, etc. is NOT cheap and it doesn’t change anything to the end-user nor the clients using the served website. Basically, there is no time for this.

    Knowing that, I think PHP historically did a great job of minimizing compatibility issues between PHP versions, especially between minor versions. But going to PHP 8.x from 7.x comes with a set of now removed deprecated features and a new set of deprecations.

    Anyway, case in point, the ratio of cost vs gain here is completely in the RED.



Top ↑