PHP Version Stats

Written on 2023-01-11

Join over 14k subscribers on my mailing list. I write about PHP news, share programming content from across the web, keep you up to date about what's happening on this blog, my work on Tempest, and more.

You can subscribe by sending an email to brendt@stitcher.io.

Hi there! It's time for my biyearly summary of which PHP versions are used across the community!

Twice a year, I look at composer's download statistics and crunch that data into some nice graphs. It's of course important to note that composer only represents a part of the PHP community, so this data isn't a 100% accurate representation of PHP as a whole, but it gives an interesting look at PHP nevertheless.

You can read the full post here, but I also wanted to share some key points in this email.

In this edition, I was pleasantly surprised to see a significant growth in PHP 8.1 adoption. I was wondering how PHP 8.1 adoption would relate to PHP 7.1 adoption when it was released, and I think it's fair to say there's a significant difference.

All time evolution

This chart shows the version evolution over time per version, and you can see how the green line of PHP 8.1 rises, and compare it to blue PHP 7.1 line back in 2016. There's a 7% difference between the two, which I would say is a significant number!

Another interesting takeaway is that more than 25% of projects are still running PHP 7.4 — which isn't supported anymore, as of last year.

Evolution of version usage

This data beautifully visualizes the division within the PHP community: one part is keeping up with modern PHP, while another one stays helplessly behind. I know there are many reasons to stay behind — often driven by business requirements and constraints — but it's crucial to realise that a lot of PHP projects are in fact running insecure and slow versions in production because of it.

One big misconception I often hear is how difficult it is to upgrade to modern PHP versions. In my experience, it has never been as easy as it is today. We now have tools like Rector to automate the actual upgrade, and static analysers like PHPStan that'll let you know if anything's wrong after upgrading.

I really believe we need to embrace these tools, much more than we already do today.

I'm doing more than just shouting it from the rooftops though: I sat down and upgraded all of my projects to PHP 8.2 already. I documented the process for all of you to see:

From what I can tell, the upgrade went super smooth, and I'm really happy to already be on PHP 8.2.

How about you? Are you already on PHP 8.2? What's holding you back? Let me know!

Until next time!

Brent

Join over 14k subscribers on my mailing list. I write about PHP news, share programming content from across the web, keep you up to date about what's happening on this blog, my work on Tempest, and more.

You can subscribe by sending an email to brendt@stitcher.io.

Noticed a tpyo? You can submit a PR to fix it.
HomeRSSNewsletterDiscord© 2025 stitcher.io