Opened 7 months ago
Last modified 3 weeks ago
#62622 new enhancement
Bump minimum PHP version to 7.4
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 6.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description (last modified by )
This ticket tracks discussion and work on the next bump to the minimum PHP version to v7.4.
Policy / Criteria for Version Bumps
There is no official policy or criteria (ref) for handling PHP Version bumps. Pending that discussion, the following is based on the processes used until now:
- Matt is the ultimate decision maker on whether to bump the minimum PHP version.
- That discussion is initiated by the release/project leads based on several (public and private) factors.
- A general litmus test to gauge whether a version should be bumped is if the % of users (via https://wordpress.org/about/stats/) left behind by the bump is
< 5%
. - However, usage stats alone are not reason to bump the minimum PHP Version but also have a positive impact on the project/codebase/tooling/etc.
Important: Bumping the minimum PHP version (this ticket) is not the same as changing the minimum ''recommended'' version (v7.4 as of 30 Nov 2024).
Background: #58719, #51043, #57345
Data Points - Nov 2024
Hopefully, @samiamnot will continue his lovely periodic stat updates (last here), but as of 30 Nov 2024:
- PHP 7.2 usage is
2.77%
Including versions abandoned in the previous bump in WP6.6 (PHP 7.0-7.2):%4.59
. - PHP 7.3 usage is
3.28%
. (PHP 7.2 + 7.3 =6.05%
). - PHP 7.4 is at
32.83%
. On WP6.6 Release Day, that number was `39.63%`.
Note: .org Stats do not offer a cross-reference between WP/PHP versions. As such these percentages include sites that may already be (colloquially) abandoned on a previous WordPress release,but could theoretically upgrade if their plugin/theme stack supports recent WP versions.
Bumping the minimum version to v7.3 would allow for
- trailing commas in functions like
sprintf()
andarray_merge()
- removing back-compat for
array_key_first()
,array_key_last()
, andis_countable()
- possibly other things
Bumping the minimum version to v7.4 would allow for
- unpacking inside arrays
- arrow functions
- typed properties (!!)
- removing back-compat for
hash_hmac()
andhash_equals()
- possibly other things
Previously
#58719 Bumping the minimum PHP version to 7.2 in WordPress 6.6
#57345 Bumping the minimum PHP version to 7.0 in WordPress 6.3
#46594 Bumping the minimum PHP version to 5.6 in WordPress 5.2
#16917 Bumping the minimum PHP version to 5.2 in WordPress 3.2
Change History (22)
#2
@
7 months ago
- Summary changed from Bump minimum PHP version to 7.3 to Bump minimum PHP version to 7.3 or 7.4
My most recent opinion on this is that we'll be in a position to increase the minimum supported version of PHP to 7.4 in WordPress 6.9 in July 2025.
I've published some very roughly projected stats here which support this, with usage of 7.2 and 7.3 combined looking to drop below 5% around March 2025 and be close to 4% by July. Matt and Josepha have in the past been rightly concerned that bumping the minimum supported version too frequently means that in theory we could drop 15% of users across the three releases within a year, which is too much. One bump per year of 5% or less has worked well in recent years.
#3
@
7 months ago
Thanks @justlevine for the new ticket.
Updated for early Dec based on stats.
As we stand now, 5.2% of sites are on unsupported PHP versions, something that dropped 0.13% in the past month, vs 0.18% in the previous month.
7.2 + 7.3 are still dropping, but the rate slowed down this month from 0.26% last month to 0.21% this month. If this slowdown continues, @johnbillion's projection that would enable this ticket to proceed may not happen in time for v6.9.
Month/Year | PHP 7.2 | PHP 7.3 | PHP 7.2 + 7.3 |
---|---|---|---|
Jul 2023 | 6.48 | 8.16 | 14.64% |
Aug 2023 | 5.64 | 7.62 | 13.26% |
Sep 2023 | 5.55 | 7.18 | 12.73% |
Oct 2023 | 5.31 | 6.87 | 12.18% |
Nov 2023 | 5.20 | 6.51 | 11.71% |
Dec 2023 | 5.08 | 6.17 | 11.25% |
Jan 2024 | 4.79 | 5.90 | 10.69% |
Feb 2024 | 4.67 | 5.54 | 10.21% |
Mar 2024 | 4.30 | 5.11 | 9.41% |
Apr 2024 | 3.80 | 4.79 | 8.59% |
May 2024 | 3.63 | 4.52 | 8.15% |
Jun 2024 | 3.46 | 4.30 | 7.76% |
Jul 2024 | 3.33 | 4.10 | 7.43% |
Aug 2024 | 3.18 | 3.90 | 7.08% |
Sep 2024 | 3.05 | 3.73 | 6.78% |
Oct 2024 | 2.93 | 3.56 | 6.49% |
Nov 2024 | 2.83 | 3.40 | 6.23% |
Dec 2024 | 2.76 | 3.26 | 6.02% |
For historical reasons, here are the stats for no longer supported versions (as of WP 6.6) going back to PHP 5.2. This is not changing much (going down about 0.20% a month) and many are likely "abandoned" sites that are on old versions of WP.
Month/Year | PHP 5.2 | PHP 5.3 | PHP 5.4 | PHP 5.5 | PHP 5.6 | PHP 7.0 | PHP 7.1 | Total |
---|---|---|---|---|---|---|---|---|
Jan 2024 | 0.21 | 0.50 | 0.44 | 0.35 | 3.21 | 1.67 | 1.08 | 7.46% |
Feb 2024 | 0.21 | 0.49 | 0.42 | 0.35 | 3.12 | 1.62 | 1.04 | 7.25% |
Mar 2024 | 0.21 | 0.48 | 0.39 | 0.34 | 3.02 | 1.55 | 0.99 | 6.98% |
Apr 2024 | 0.20 | 0.47 | 0.38 | 0.33 | 2.93 | 1.50 | 0.95 | 6.76% |
May 2024 | 0.20 | 0.46 | 0.37 | 0.32 | 2.84 | 1.45 | 0.92 | 6.56% |
Jun 2024 | 0.20 | 0.45 | 0.36 | 0.31 | 2.76 | 1.41 | 0.89 | 6.38% |
Jul 2024 | 0.19 | 0.44 | 0.35 | 0.30 | 2.63 | 1.36 | 0.86 | 6.13% |
Aug 2024 | 0.19 | 0.43 | 0.34 | 0.29 | 2.53 | 1.31 | 0.82 | 5.91% |
Sep 2024 | 0.19 | 0.41 | 0.33 | 0.28 | 2.45 | 1.25 | 0.79 | 5.70% |
Oct 2024 | 0.18 | 0.40 | 0.32 | 0.27 | 2.38 | 1.20 | 0.76 | 5.51% |
Nov 2024 | 0.18 | 0.39 | 0.31 | 0.26 | 2.32 | 1.15 | 0.72 | 5.33% |
Dec 2024 | 0.17 | 0.39 | 0.31 | 0.26 | 2.27 | 1.11 | 0.69 | 5.20% |
#4
@
6 months ago
Updated for early Jan 2025 based on stats.
As we stand now, 5.06% of sites are on unsupported PHP versions, something that dropped 0.14% in the past month, vs 0.18% in the previous month.
7.2 + 7.3 that are slated to be dropped are still decreasing, but at a slower pace. This month from it was down 0.20%, vs 0.21 last month and 0.26% the previous month. Based on this slowdown, @johnbillion's projection that we could make the move in in v6.9 will likely be too early. I assume that by v7.0 we can make the move.
Month/Year | PHP 7.2 | PHP 7.3 | PHP 7.2 + 7.3 |
---|---|---|---|
Jul 2023 | 6.48 | 8.16 | 14.64% |
Aug 2023 | 5.64 | 7.62 | 13.26% |
Sep 2023 | 5.55 | 7.18 | 12.73% |
Oct 2023 | 5.31 | 6.87 | 12.18% |
Nov 2023 | 5.20 | 6.51 | 11.71% |
Dec 2023 | 5.08 | 6.17 | 11.25% |
Jan 2024 | 4.79 | 5.90 | 10.69% |
Feb 2024 | 4.67 | 5.54 | 10.21% |
Mar 2024 | 4.30 | 5.11 | 9.41% |
Apr 2024 | 3.80 | 4.79 | 8.59% |
May 2024 | 3.63 | 4.52 | 8.15% |
Jun 2024 | 3.46 | 4.30 | 7.76% |
Jul 2024 | 3.33 | 4.10 | 7.43% |
Aug 2024 | 3.18 | 3.90 | 7.08% |
Sep 2024 | 3.05 | 3.73 | 6.78% |
Oct 2024 | 2.93 | 3.56 | 6.49% |
Nov 2024 | 2.83 | 3.40 | 6.23% |
Dec 2024 | 2.76 | 3.26 | 6.02% |
Jan 2025 | 2.68 | 3.14 | 5.82% |
For historical reasons, here are the stats for no longer supported versions (as of WP 6.6) going back to PHP 5.2. This is not changing much (going down about 0.20% a month) and many are likely "abandoned" sites that are on old versions of WP.
Month/Year | PHP 5.2 | PHP 5.3 | PHP 5.4 | PHP 5.5 | PHP 5.6 | PHP 7.0 | PHP 7.1 | Total |
---|---|---|---|---|---|---|---|---|
Jan 2024 | 0.21 | 0.50 | 0.44 | 0.35 | 3.21 | 1.67 | 1.08 | 7.46% |
Feb 2024 | 0.21 | 0.49 | 0.42 | 0.35 | 3.12 | 1.62 | 1.04 | 7.25% |
Mar 2024 | 0.21 | 0.48 | 0.39 | 0.34 | 3.02 | 1.55 | 0.99 | 6.98% |
Apr 2024 | 0.20 | 0.47 | 0.38 | 0.33 | 2.93 | 1.50 | 0.95 | 6.76% |
May 2024 | 0.20 | 0.46 | 0.37 | 0.32 | 2.84 | 1.45 | 0.92 | 6.56% |
Jun 2024 | 0.20 | 0.45 | 0.36 | 0.31 | 2.76 | 1.41 | 0.89 | 6.38% |
Jul 2024 | 0.19 | 0.44 | 0.35 | 0.30 | 2.63 | 1.36 | 0.86 | 6.13% |
Aug 2024 | 0.19 | 0.43 | 0.34 | 0.29 | 2.53 | 1.31 | 0.82 | 5.91% |
Sep 2024 | 0.19 | 0.41 | 0.33 | 0.28 | 2.45 | 1.25 | 0.79 | 5.70% |
Oct 2024 | 0.18 | 0.40 | 0.32 | 0.27 | 2.38 | 1.20 | 0.76 | 5.51% |
Nov 2024 | 0.18 | 0.39 | 0.31 | 0.26 | 2.32 | 1.15 | 0.72 | 5.33% |
Dec 2024 | 0.17 | 0.39 | 0.31 | 0.26 | 2.27 | 1.11 | 0.69 | 5.20% |
Jan 2025 | 0.17 | 0.38 | 0.31 | 0.25 | 2.21 | 1.07 | 0.67 | 5.06% |
#5
@
5 months ago
Updated for early Feb 2025 based on WordPress stats.
For the first time in a while, the combined percentage of site on unsupported PHP versions has dropped below 5%. As we stand now, 4.96% of sites are on unsupported PHP versions, something that dropped 0.10% in the past month, vs 0.14% in the previous month.
7.2 + 7.3 that are slated to be dropped next, are still decreasing, but at a much slower pace. This month it was down 0.15%, vs 0.20 last month and 0.21% the previous month, and stands at 5.67%. Based on this slowdown, @johnbillion's projection that we could make the move in in v6.9 will likely be too early. I assume that by v7.0 we will have numbers low enough to consider making the move.
Month/Year | PHP 7.2 | PHP 7.3 | PHP 7.2 + 7.3 |
---|---|---|---|
Jul 2023 | 6.48 | 8.16 | 14.64% |
Aug 2023 | 5.64 | 7.62 | 13.26% |
Sep 2023 | 5.55 | 7.18 | 12.73% |
Oct 2023 | 5.31 | 6.87 | 12.18% |
Nov 2023 | 5.20 | 6.51 | 11.71% |
Dec 2023 | 5.08 | 6.17 | 11.25% |
Jan 2024 | 4.79 | 5.90 | 10.69% |
Feb 2024 | 4.67 | 5.54 | 10.21% |
Mar 2024 | 4.30 | 5.11 | 9.41% |
Apr 2024 | 3.80 | 4.79 | 8.59% |
May 2024 | 3.63 | 4.52 | 8.15% |
Jun 2024 | 3.46 | 4.30 | 7.76% |
Jul 2024 | 3.33 | 4.10 | 7.43% |
Aug 2024 | 3.18 | 3.90 | 7.08% |
Sep 2024 | 3.05 | 3.73 | 6.78% |
Oct 2024 | 2.93 | 3.56 | 6.49% |
Nov 2024 | 2.83 | 3.40 | 6.23% |
Dec 2024 | 2.76 | 3.26 | 6.02% |
Jan 2025 | 2.68 | 3.14 | 5.82% |
Feb 2025 | 2.63 | 3.04 | 5.67% |
For historical reasons, here are the stats for no longer supported versions (as of WP 6.6) going back to PHP 5.2. This is not changing much (going down about 0.20% a month) and many are likely "abandoned" sites that are on old versions of WP.
Month/Year | PHP 5.2 | PHP 5.3 | PHP 5.4 | PHP 5.5 | PHP 5.6 | PHP 7.0 | PHP 7.1 | Total |
---|---|---|---|---|---|---|---|---|
Jan 2024 | 0.21 | 0.50 | 0.44 | 0.35 | 3.21 | 1.67 | 1.08 | 7.46% |
Feb 2024 | 0.21 | 0.49 | 0.42 | 0.35 | 3.12 | 1.62 | 1.04 | 7.25% |
Mar 2024 | 0.21 | 0.48 | 0.39 | 0.34 | 3.02 | 1.55 | 0.99 | 6.98% |
Apr 2024 | 0.20 | 0.47 | 0.38 | 0.33 | 2.93 | 1.50 | 0.95 | 6.76% |
May 2024 | 0.20 | 0.46 | 0.37 | 0.32 | 2.84 | 1.45 | 0.92 | 6.56% |
Jun 2024 | 0.20 | 0.45 | 0.36 | 0.31 | 2.76 | 1.41 | 0.89 | 6.38% |
Jul 2024 | 0.19 | 0.44 | 0.35 | 0.30 | 2.63 | 1.36 | 0.86 | 6.13% |
Aug 2024 | 0.19 | 0.43 | 0.34 | 0.29 | 2.53 | 1.31 | 0.82 | 5.91% |
Sep 2024 | 0.19 | 0.41 | 0.33 | 0.28 | 2.45 | 1.25 | 0.79 | 5.70% |
Oct 2024 | 0.18 | 0.40 | 0.32 | 0.27 | 2.38 | 1.20 | 0.76 | 5.51% |
Nov 2024 | 0.18 | 0.39 | 0.31 | 0.26 | 2.32 | 1.15 | 0.72 | 5.33% |
Dec 2024 | 0.17 | 0.39 | 0.31 | 0.26 | 2.27 | 1.11 | 0.69 | 5.20% |
Jan 2025 | 0.17 | 0.38 | 0.31 | 0.25 | 2.21 | 1.07 | 0.67 | 5.06% |
Feb 2025 | 0.17 | 0.38 | 0.30 | 0.25 | 2.16 | 1.04 | 0.66 | 4.96% |
#6
@
5 months ago
I've tweaked my stats projection page to better account for the slowing decline in 7.2+7.3 sites.
#7
@
5 months ago
@johnbillion nice overview! Would it be possible to include PHP 8.4 as well? Would be interesting to see the progress there. But another topic :)
As we're currently at 5.67% for PHP 7.2 and PHP 7.3 i think it would be great to tell everyone and especially also hosts that it will be considered to deprecate it in v6.9. Then everyone gets enough time to prepare and the Release Leads could check with Matt to see his opinion on a drop for the versions that are already unsupported since many years.
#8
@
5 months ago
I haven't bothered trying to project changes to usage of other versions because it's not a particularly accurate projection, it's intended really to give us an idea of when support for older versions can be dropped.
I'm going to wait until 6.8 is nearer release before speaking with Matt and Mary about this, but I will.
#9
@
4 months ago
- Milestone changed from Awaiting Review to 6.9
Moving this to 6.9 for visibility. This does not mean a decision has been made, and this still depends entirely on the usage numbers. It might get bumped to 7.0.
#10
@
4 months ago
Updated for early Mar 2025 based on WordPress stats.
7.2 + 7.3 that are slated to be dropped next, are still decreasing, but slowly. This month it improved and was down 0.24%, vs 0.15% last month and 0.20% the previous month. It now stands at 5.43%. Based on this pace, @johnbillion's projection that we may be able to make the move in in v6.9 may still be possible, but I doubt that it will be likely (it may be low enough a month or two after the v6.8 release, but that may be too late).
As we stand now, 4.85% of sites are on unsupported PHP versions, something that dropped 0.11% in the past month, vs 0.10% in the previous month and 0.14% the month before that.
Month/Year | PHP 7.2 | PHP 7.3 | PHP 7.2 + 7.3 |
---|---|---|---|
Jul 2023 | 6.48 | 8.16 | 14.64% |
Aug 2023 | 5.64 | 7.62 | 13.26% |
Sep 2023 | 5.55 | 7.18 | 12.73% |
Oct 2023 | 5.31 | 6.87 | 12.18% |
Nov 2023 | 5.20 | 6.51 | 11.71% |
Dec 2023 | 5.08 | 6.17 | 11.25% |
Jan 2024 | 4.79 | 5.90 | 10.69% |
Feb 2024 | 4.67 | 5.54 | 10.21% |
Mar 2024 | 4.30 | 5.11 | 9.41% |
Apr 2024 | 3.80 | 4.79 | 8.59% |
May 2024 | 3.63 | 4.52 | 8.15% |
Jun 2024 | 3.46 | 4.30 | 7.76% |
Jul 2024 | 3.33 | 4.10 | 7.43% |
Aug 2024 | 3.18 | 3.90 | 7.08% |
Sep 2024 | 3.05 | 3.73 | 6.78% |
Oct 2024 | 2.93 | 3.56 | 6.49% |
Nov 2024 | 2.83 | 3.40 | 6.23% |
Dec 2024 | 2.76 | 3.26 | 6.02% |
Jan 2025 | 2.68 | 3.14 | 5.82% |
Feb 2025 | 2.63 | 3.04 | 5.67% |
Mar 2025 | 2.50 | 2.93 | 5.43% |
For historical reasons, here are the stats for no longer supported versions (as of WP 6.6) going back to PHP 5.2. This is not changing much (going down about 0.20% a month) and many are likely "abandoned" sites that are on old versions of WP.
Month/Year | PHP 5.2 | PHP 5.3 | PHP 5.4 | PHP 5.5 | PHP 5.6 | PHP 7.0 | PHP 7.1 | Total |
---|---|---|---|---|---|---|---|---|
Jan 2024 | 0.21 | 0.50 | 0.44 | 0.35 | 3.21 | 1.67 | 1.08 | 7.46% |
Feb 2024 | 0.21 | 0.49 | 0.42 | 0.35 | 3.12 | 1.62 | 1.04 | 7.25% |
Mar 2024 | 0.21 | 0.48 | 0.39 | 0.34 | 3.02 | 1.55 | 0.99 | 6.98% |
Apr 2024 | 0.20 | 0.47 | 0.38 | 0.33 | 2.93 | 1.50 | 0.95 | 6.76% |
May 2024 | 0.20 | 0.46 | 0.37 | 0.32 | 2.84 | 1.45 | 0.92 | 6.56% |
Jun 2024 | 0.20 | 0.45 | 0.36 | 0.31 | 2.76 | 1.41 | 0.89 | 6.38% |
Jul 2024 | 0.19 | 0.44 | 0.35 | 0.30 | 2.63 | 1.36 | 0.86 | 6.13% |
Aug 2024 | 0.19 | 0.43 | 0.34 | 0.29 | 2.53 | 1.31 | 0.82 | 5.91% |
Sep 2024 | 0.19 | 0.41 | 0.33 | 0.28 | 2.45 | 1.25 | 0.79 | 5.70% |
Oct 2024 | 0.18 | 0.40 | 0.32 | 0.27 | 2.38 | 1.20 | 0.76 | 5.51% |
Nov 2024 | 0.18 | 0.39 | 0.31 | 0.26 | 2.32 | 1.15 | 0.72 | 5.33% |
Dec 2024 | 0.17 | 0.39 | 0.31 | 0.26 | 2.27 | 1.11 | 0.69 | 5.20% |
Jan 2025 | 0.17 | 0.38 | 0.31 | 0.25 | 2.21 | 1.07 | 0.67 | 5.06% |
Feb 2025 | 0.17 | 0.38 | 0.30 | 0.25 | 2.16 | 1.04 | 0.66 | 4.96% |
Mar 2025 | 0.16 | 0.37 | 0.29 | 0.24 | 2.13 | 1.02 | 0.64 | 4.85% |
#11
@
3 months ago
Updated for early Apr 2025 based on WordPress stats.
7.2 + 7.3 that are slated to be dropped next, improved on last month's rate. This month it was down 0.27%, vs 0.24% last month and 0.15% the previous month. It now stands at 5.16%. Based on this pace it will likely move below the 5% rate within the next month. @johnbillion's projection that we may be able to make the move in in v6.9 looks very possible.
Month/Year | PHP 7.2 | PHP 7.3 | PHP 7.2 + 7.3 |
---|---|---|---|
Jul 2023 | 6.48 | 8.16 | 14.64% |
Aug 2023 | 5.64 | 7.62 | 13.26% |
Sep 2023 | 5.55 | 7.18 | 12.73% |
Oct 2023 | 5.31 | 6.87 | 12.18% |
Nov 2023 | 5.20 | 6.51 | 11.71% |
Dec 2023 | 5.08 | 6.17 | 11.25% |
Jan 2024 | 4.79 | 5.90 | 10.69% |
Feb 2024 | 4.67 | 5.54 | 10.21% |
Mar 2024 | 4.30 | 5.11 | 9.41% |
Apr 2024 | 3.80 | 4.79 | 8.59% |
May 2024 | 3.63 | 4.52 | 8.15% |
Jun 2024 | 3.46 | 4.30 | 7.76% |
Jul 2024 | 3.33 | 4.10 | 7.43% |
Aug 2024 | 3.18 | 3.90 | 7.08% |
Sep 2024 | 3.05 | 3.73 | 6.78% |
Oct 2024 | 2.93 | 3.56 | 6.49% |
Nov 2024 | 2.83 | 3.40 | 6.23% |
Dec 2024 | 2.76 | 3.26 | 6.02% |
Jan 2025 | 2.68 | 3.14 | 5.82% |
Feb 2025 | 2.63 | 3.04 | 5.67% |
Mar 2025 | 2.50 | 2.93 | 5.43% |
Apr 2025 | 2.39 | 2.77 | 5.16% |
For historical reasons, here are the stats for no longer supported versions (as of WP 6.6) going back to PHP 5.2. This is not changing much and many are likely "abandoned" sites that are on old versions of WP. As we stand now, 4.67% of sites are on unsupported PHP versions, something that dropped 0.18% in the past month, vs 0.11% last month and 0.10% the month before that. This improvement is nice to see.
Month/Year | PHP 5.2 | PHP 5.3 | PHP 5.4 | PHP 5.5 | PHP 5.6 | PHP 7.0 | PHP 7.1 | Total |
---|---|---|---|---|---|---|---|---|
Jan 2024 | 0.21 | 0.50 | 0.44 | 0.35 | 3.21 | 1.67 | 1.08 | 7.46% |
Feb 2024 | 0.21 | 0.49 | 0.42 | 0.35 | 3.12 | 1.62 | 1.04 | 7.25% |
Mar 2024 | 0.21 | 0.48 | 0.39 | 0.34 | 3.02 | 1.55 | 0.99 | 6.98% |
Apr 2024 | 0.20 | 0.47 | 0.38 | 0.33 | 2.93 | 1.50 | 0.95 | 6.76% |
May 2024 | 0.20 | 0.46 | 0.37 | 0.32 | 2.84 | 1.45 | 0.92 | 6.56% |
Jun 2024 | 0.20 | 0.45 | 0.36 | 0.31 | 2.76 | 1.41 | 0.89 | 6.38% |
Jul 2024 | 0.19 | 0.44 | 0.35 | 0.30 | 2.63 | 1.36 | 0.86 | 6.13% |
Aug 2024 | 0.19 | 0.43 | 0.34 | 0.29 | 2.53 | 1.31 | 0.82 | 5.91% |
Sep 2024 | 0.19 | 0.41 | 0.33 | 0.28 | 2.45 | 1.25 | 0.79 | 5.70% |
Oct 2024 | 0.18 | 0.40 | 0.32 | 0.27 | 2.38 | 1.20 | 0.76 | 5.51% |
Nov 2024 | 0.18 | 0.39 | 0.31 | 0.26 | 2.32 | 1.15 | 0.72 | 5.33% |
Dec 2024 | 0.17 | 0.39 | 0.31 | 0.26 | 2.27 | 1.11 | 0.69 | 5.20% |
Jan 2025 | 0.17 | 0.38 | 0.31 | 0.25 | 2.21 | 1.07 | 0.67 | 5.06% |
Feb 2025 | 0.17 | 0.38 | 0.30 | 0.25 | 2.16 | 1.04 | 0.66 | 4.96% |
Mar 2025 | 0.16 | 0.37 | 0.29 | 0.24 | 2.13 | 1.02 | 0.64 | 4.85% |
Apr 2025 | 0.16 | 0.36 | 0.28 | 0.23 | 2.04 | 0.98 | 0.62 | 4.67% |
#12
@
3 months ago
- Description modified (diff)
- Summary changed from Bump minimum PHP version to 7.3 or 7.4 to Bump minimum PHP version to 7.4
#13
@
3 months ago
@johnbillion, It is my understanding that 6.9 will not be released until at least early 2026. That should take the guessing out of this move since by that time 7.2+7.3 will likely be under 4%. With PHP 7.4 currently at 29.93% (the most popular PHP version of WordPress sites as of this point), I can't imagine making PHP 8.0 the minimum version for a few years.
#15
@
8 weeks ago
The milestone was reached. As of some point in the past 12 hours, PHP 7.2 usage was down to 2.31% and PHP 7.3 down to 2.68% for a combined 4.99%.
#16
@
8 weeks ago
Thanks for keeping on top of this @samiamnot !
Perhaps we can bring this up for early decision? Would be a nice turn of events to be able to announce the version drop this far in advance.
#17
@
8 weeks ago
As we now know that the next WordPress version will be released by earliest in the next year it would be amazing to make the decision and then use this time to tell everyone that WordPress 6.9 will drop PHP 7.2 + 7.3 early. This way theme authors, plugin authors and WP developers can prepare early.
As PHP 7.4 is still huge in usage and even if it takes one year to get WP 6.9 out will not be close to be dropped. So there wouldnt be a need to reconsider later.
#18
@
8 weeks ago
Yeah it's safe to say there won't be any objection to increasing the minimum supported version to 7.4 for WordPress 6.9 given that it won't be released this year.
However I don't think we should start making any changes to trunk to remove support for 7.2 and 7.3 just yet. We are looking at potentially 9+ months of minor releases that will need to continue supporting 7.2, and if commits for minor releases are plucked from trunk then it just adds extra work to ensure the point releases remain compatible. Maybe we bump the minimum support version in trunk in about 6 months?
This is all assuming the new release schedule remains in place.
This ticket was mentioned in Slack in #core by justlevine. View the logs.
8 weeks ago
#20
@
8 weeks ago
Updated for early May 2025 based on WordPress stats.
7.2 + 7.3 that are slated to be the next PHP versions no longer supported by WordPress, dropped below the 5% threshold and now stand at 4.97%. I would love to see @johnbillion update his projections. We have at least 8 months until the next release and there is probably not a good reason to make an early post about this expected move.
Month/Year | PHP 7.2 | PHP 7.3 | PHP 7.2 + 7.3 |
---|---|---|---|
Jul 2023 | 6.48 | 8.16 | 14.64% |
Aug 2023 | 5.64 | 7.62 | 13.26% |
Sep 2023 | 5.55 | 7.18 | 12.73% |
Oct 2023 | 5.31 | 6.87 | 12.18% |
Nov 2023 | 5.20 | 6.51 | 11.71% |
Dec 2023 | 5.08 | 6.17 | 11.25% |
Jan 2024 | 4.79 | 5.90 | 10.69% |
Feb 2024 | 4.67 | 5.54 | 10.21% |
Mar 2024 | 4.30 | 5.11 | 9.41% |
Apr 2024 | 3.80 | 4.79 | 8.59% |
May 2024 | 3.63 | 4.52 | 8.15% |
Jun 2024 | 3.46 | 4.30 | 7.76% |
Jul 2024 | 3.33 | 4.10 | 7.43% |
Aug 2024 | 3.18 | 3.90 | 7.08% |
Sep 2024 | 3.05 | 3.73 | 6.78% |
Oct 2024 | 2.93 | 3.56 | 6.49% |
Nov 2024 | 2.83 | 3.40 | 6.23% |
Dec 2024 | 2.76 | 3.26 | 6.02% |
Jan 2025 | 2.68 | 3.14 | 5.82% |
Feb 2025 | 2.63 | 3.04 | 5.67% |
Mar 2025 | 2.50 | 2.93 | 5.43% |
Apr 2025 | 2.39 | 2.77 | 5.16% |
May 2025 | 2.30 | 2.67 | 4.97% |
For historical reasons, here are the stats for no longer supported versions (as of WP 6.6) going back to PHP 5.2. This is not changing much and many are likely "abandoned" sites that are on old versions of WP. As we stand now, 4.53% of sites are on unsupported PHP versions, something that dropped 0.14% in the past month.
Month/Year | PHP 5.2 | PHP 5.3 | PHP 5.4 | PHP 5.5 | PHP 5.6 | PHP 7.0 | PHP 7.1 | Total |
---|---|---|---|---|---|---|---|---|
Jan 2024 | 0.21 | 0.50 | 0.44 | 0.35 | 3.21 | 1.67 | 1.08 | 7.46% |
Feb 2024 | 0.21 | 0.49 | 0.42 | 0.35 | 3.12 | 1.62 | 1.04 | 7.25% |
Mar 2024 | 0.21 | 0.48 | 0.39 | 0.34 | 3.02 | 1.55 | 0.99 | 6.98% |
Apr 2024 | 0.20 | 0.47 | 0.38 | 0.33 | 2.93 | 1.50 | 0.95 | 6.76% |
May 2024 | 0.20 | 0.46 | 0.37 | 0.32 | 2.84 | 1.45 | 0.92 | 6.56% |
Jun 2024 | 0.20 | 0.45 | 0.36 | 0.31 | 2.76 | 1.41 | 0.89 | 6.38% |
Jul 2024 | 0.19 | 0.44 | 0.35 | 0.30 | 2.63 | 1.36 | 0.86 | 6.13% |
Aug 2024 | 0.19 | 0.43 | 0.34 | 0.29 | 2.53 | 1.31 | 0.82 | 5.91% |
Sep 2024 | 0.19 | 0.41 | 0.33 | 0.28 | 2.45 | 1.25 | 0.79 | 5.70% |
Oct 2024 | 0.18 | 0.40 | 0.32 | 0.27 | 2.38 | 1.20 | 0.76 | 5.51% |
Nov 2024 | 0.18 | 0.39 | 0.31 | 0.26 | 2.32 | 1.15 | 0.72 | 5.33% |
Dec 2024 | 0.17 | 0.39 | 0.31 | 0.26 | 2.27 | 1.11 | 0.69 | 5.20% |
Jan 2025 | 0.17 | 0.38 | 0.31 | 0.25 | 2.21 | 1.07 | 0.67 | 5.06% |
Feb 2025 | 0.17 | 0.38 | 0.30 | 0.25 | 2.16 | 1.04 | 0.66 | 4.96% |
Mar 2025 | 0.16 | 0.37 | 0.29 | 0.24 | 2.13 | 1.02 | 0.64 | 4.85% |
Apr 2025 | 0.16 | 0.36 | 0.28 | 0.23 | 2.04 | 0.98 | 0.62 | 4.67% |
May 2025 | 0.16 | 0.35 | 0.27 | 0.22 | 1.99 | 0.94 | 0.60 | 4.53% |
This ticket was mentioned in Slack in #core by johnbillion. View the logs.
4 weeks ago
#22
@
3 weeks ago
Updated for early June 2025 based on WordPress stats.
7.2 + 7.3 that are slated to be the next PHP versions no longer supported by WordPress, dropped below the 5% threshold last month when it reached 4.97%. It now dropped to 4.78%. We have at least 7 months until the next release and these numbers will continue to drop.
Month/Year | PHP 7.2 | PHP 7.3 | PHP 7.2 + 7.3 |
---|---|---|---|
Jul 2023 | 6.48 | 8.16 | 14.64% |
Aug 2023 | 5.64 | 7.62 | 13.26% |
Sep 2023 | 5.55 | 7.18 | 12.73% |
Oct 2023 | 5.31 | 6.87 | 12.18% |
Nov 2023 | 5.20 | 6.51 | 11.71% |
Dec 2023 | 5.08 | 6.17 | 11.25% |
Jan 2024 | 4.79 | 5.90 | 10.69% |
Feb 2024 | 4.67 | 5.54 | 10.21% |
Mar 2024 | 4.30 | 5.11 | 9.41% |
Apr 2024 | 3.80 | 4.79 | 8.59% |
May 2024 | 3.63 | 4.52 | 8.15% |
Jun 2024 | 3.46 | 4.30 | 7.76% |
Jul 2024 | 3.33 | 4.10 | 7.43% |
Aug 2024 | 3.18 | 3.90 | 7.08% |
Sep 2024 | 3.05 | 3.73 | 6.78% |
Oct 2024 | 2.93 | 3.56 | 6.49% |
Nov 2024 | 2.83 | 3.40 | 6.23% |
Dec 2024 | 2.76 | 3.26 | 6.02% |
Jan 2025 | 2.68 | 3.14 | 5.82% |
Feb 2025 | 2.63 | 3.04 | 5.67% |
Mar 2025 | 2.50 | 2.93 | 5.43% |
Apr 2025 | 2.39 | 2.77 | 5.16% |
May 2025 | 2.30 | 2.67 | 4.97% |
Jun 2025 | 2.22 | 2.56 | 4.78% |
For historical reasons, here are the stats for no longer supported versions (as of WP 6.6) going back to PHP 5.2. This is not changing much and many are likely "abandoned" sites that are on old versions of WP. As we stand now, 4.38% of sites are on unsupported PHP versions, something that dropped 0.15% in the past month.
Month/Year | PHP 5.2 | PHP 5.3 | PHP 5.4 | PHP 5.5 | PHP 5.6 | PHP 7.0 | PHP 7.1 | Total |
---|---|---|---|---|---|---|---|---|
Jan 2024 | 0.21 | 0.50 | 0.44 | 0.35 | 3.21 | 1.67 | 1.08 | 7.46% |
Feb 2024 | 0.21 | 0.49 | 0.42 | 0.35 | 3.12 | 1.62 | 1.04 | 7.25% |
Mar 2024 | 0.21 | 0.48 | 0.39 | 0.34 | 3.02 | 1.55 | 0.99 | 6.98% |
Apr 2024 | 0.20 | 0.47 | 0.38 | 0.33 | 2.93 | 1.50 | 0.95 | 6.76% |
May 2024 | 0.20 | 0.46 | 0.37 | 0.32 | 2.84 | 1.45 | 0.92 | 6.56% |
Jun 2024 | 0.20 | 0.45 | 0.36 | 0.31 | 2.76 | 1.41 | 0.89 | 6.38% |
Jul 2024 | 0.19 | 0.44 | 0.35 | 0.30 | 2.63 | 1.36 | 0.86 | 6.13% |
Aug 2024 | 0.19 | 0.43 | 0.34 | 0.29 | 2.53 | 1.31 | 0.82 | 5.91% |
Sep 2024 | 0.19 | 0.41 | 0.33 | 0.28 | 2.45 | 1.25 | 0.79 | 5.70% |
Oct 2024 | 0.18 | 0.40 | 0.32 | 0.27 | 2.38 | 1.20 | 0.76 | 5.51% |
Nov 2024 | 0.18 | 0.39 | 0.31 | 0.26 | 2.32 | 1.15 | 0.72 | 5.33% |
Dec 2024 | 0.17 | 0.39 | 0.31 | 0.26 | 2.27 | 1.11 | 0.69 | 5.20% |
Jan 2025 | 0.17 | 0.38 | 0.31 | 0.25 | 2.21 | 1.07 | 0.67 | 5.06% |
Feb 2025 | 0.17 | 0.38 | 0.30 | 0.25 | 2.16 | 1.04 | 0.66 | 4.96% |
Mar 2025 | 0.16 | 0.37 | 0.29 | 0.24 | 2.13 | 1.02 | 0.64 | 4.85% |
Apr 2025 | 0.16 | 0.36 | 0.28 | 0.23 | 2.04 | 0.98 | 0.62 | 4.67% |
May 2025 | 0.16 | 0.35 | 0.27 | 0.22 | 1.99 | 0.94 | 0.60 | 4.53% |
Jun 2025 | 0.15 | 0.34 | 0.26 | 0.22 | 1.93 | 0.91 | 0.57 | 4.38% |
Thanks @justlevine for your work on this ticket and pushing further to get WP more into modern php versions. It would be great to get an early approve for this as it gives hosters, developers & webmasters an early headsup on whats going to be needed / possible for core, themes & plugins on the next WP Release.
To give a deeper insight here you can find a timeline with the recent drop - the pause in between - and a possible drop in the upcoming version.
1 Dec 2019
As the PHP 7.2 Usage seems way below the requested benchmark this could be the easiesr way to get an agreemeent on dropping this. The combined Usage of PHP 7.2/7.3 is still above the 5% threshold but could change until the release. I‘d still be in favor to drop both at the same time and inform everyone as early as possible. That way hosters maybe could already mass migrate a lot of their older WP-Sites. Happy to help here in the efforts to get this further.
An important comment in my view from @jrf about the big effort in maintaining WP running PHP cross-version see https://core.trac.wordpress.org/ticket/58719
To help maintainers here to get a proper solution i‘d support a version increase of php 7.2 & 7.3.