tempest Want to connect with me and many other PHP enthusiasts? Join the Tempest Discord!

PHP version stats: June, 2025

Welcome back to another blog post about PHP's version usage across the community. You can read the previous edition here, but I'll also include historic data in this post.

These posts always start with a disclaimer: I'm working with the data available. So these charts aren't a 100% accurate representation of the PHP community as a whole, but they are an accurate representation of one of the most prominent parts of PHP: the packagist ecosystem.

Let's see what has changed the last half-year, and also check out how PHP 8.4 is being adopted half a year after its release.

This blog post was sponsored by Private Packagist - the private Composer repository from the creators and maintainers of Composer & Packagist.

# Usage Statistics

Let's start by looking at the percentage of PHP versions being used today. I've omitted all versions that don't have more than 1% usage:

Version 2024-01 2024-07 2025-01 2025-06
7.2 2.5% 2.0% 1.6% 1.6%
7.3 3.2% 1.9% 1.5% 1.4%
7.4 13.6% 10.2% 7.6% 6.9%
8.0 7.2% 5.4% 3.4% 3.3%
8.1 35.2% 26.1% 18.1% 13.4%
8.2 29.4% 32.3% 28.6% 24.8%
8.3 6.4% 19.9% 32.7% 34.0%
8.4 0.0% 0.0% 5.1% 13.7%

Visualizing this data looks like this:

Evolution of version usage

What stands out is that PHP 8.4 has a slightly worse adoption rate compared to previous PHP releases: 13.6% after half a year:

Version Usage after 6 months
8.0 15.0%
8.1 21.6%
8.2 15.6%
8.3 16.7%
8.4 13.7%

I've been thinking about why PHP 8.4 has slower adoption compared to previous releases. After all, PHP 8.4 is a pretty exciting release with features like property hooks, new without parenthesis, and asymmetric visibility. Maybe that's actually the reason why less people are upgrading to PHP 8.4: too many new and shiny things might feel overwhelming.

Although, I don't think that's the whole of the story. When I discussed this question during a livestream, people mentioned that the lack of QA tooling support is blocking them from updating to PHP 8.4. Indeed, PHP CS Fixer, for example, is still working on PHP 8.4 support, and that's going pretty slow. I also remember PHPStan taking a while before PHP 8.4 support was added.

Then, there are open source packages that might factor in as well, although we'll discuss those separately further down this post. First, let's combine all the historical data into one big graph visualizing PHP's usage evolution over time:

All time evolution

This blog post was sponsored by Private Packagist - the private Composer repository from the creators and maintainers of Composer & Packagist.

# Required versions

An interesting data point is to analyse the minimal required version of the 1000 most popular packages on Packagist. This data gives a good indication of how much PHP's open source community is pushing projects forwards. There are a lot of things to say about these numbers, which I did in a video, check it out if you'd like!

An important note is that I've switched from using Nikita's popular package analyser to Adrian's new packagist analyser. This tool is much faster and saves me a lot of time. There might be some subtle differences in version parsing, though (ie. the script I hacked on top of Nikita's analyser might have had a bug or two). So I reckon that some differences here are due to that change. However, Adrian's analyser uses composer's version parser, so we can be pretty certain the new numbers are the most accurate ones.

Two other things to mention are these:

  1. This tables shows the minimum required version. That means that packages with a minimal version of, for example, 8.0, could also support PHP 8.1, PHP 8.2, PHP 8.3, and PHP 8.4.
  2. If you count the numbers, you'll notice there are some differences between each year. Not every package lists a valid version string.
Version 2024-01 2024-07 2025-01 2025-06
5.3 58 50 52 28
5.4 28 26 26 39
5.5 16 15 15 7
5.6 30 29 31 18
7.0 24 24 25 27
7.1 100 93 101 71
7.2 123 118 123 87
7.3 49 42 45 59
7.4 87 80 81 95
8.0 126 123 128 106
8.1 154 184 194 234
8.2 135 153 171 187
8.3 0 4 4 26
8.4 - - 0 0

It's easiest to visualize this data into a chart for a relative comparison, so that we can see changes over time:

Minimal PHP requirement over time

My conclusions from this graph are still the same, though: more than 50% of top PHP packages support PHP versions that are completely outdated without security releases. I think the PHP community as a whole would really benefit if packages more aggressively pushed towards only using supported PHP versions.

It's a tricky topic, and it's what I discussed in depth in that video I mentioned earlier, so definitely check it out if you want to:

That was this time's look at the stats. I'm always eager to hear from you, so let me know your thoughts either via mail or Discord.

Noticed a tpyo? You can submit a PR to fix it. If you want to stay up to date about what's happening on this blog, you can subscribe to my mailing list: send an email to brendt@stitcher.io, and I'll add you to the list.