Make WordPress Core

Opened 14 months ago

Closed 5 days ago

Last modified 4 days ago

#62622 closed enhancement (fixed)

Bump minimum PHP version to 7.4

Reported by: justlevine's profile justlevine Owned by: johnbillion's profile johnbillion
Milestone: 7.0 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch has-unit-tests
Focuses: Cc:

Description (last modified by johnbillion)

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:

  1. Matt is the ultimate decision maker on whether to bump the minimum PHP version.
  2. That discussion is initiated by the release/project leads based on several (public and private) factors.
  3. 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%.
  4. 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() and array_merge()
  • removing back-compat for array_key_first(), array_key_last(), and is_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() and hash_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 (48)

#1 @masteradhoc
14 months ago

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.

WordPress Version Minimum PHP Version PHP EOL (of dropped version) since Date* Comment / PHP Version Number dropped
WP 6.6PHP 7.210 Jan 2019
1 Dec 2019
PHP 7.0 and PHP 7.1 Support was dropped
WP 6.7PHP 7.2- no change
WP 6.8PHP 7.330 Nov 2020 PHP 7.2 Support will be dropped

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.

#2 @johnbillion
14 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.

Last edited 14 months ago by johnbillion (previous) (diff)

#3 @samiamnot
14 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/YearPHP 7.2PHP 7.3PHP 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/YearPHP 5.2PHP 5.3PHP 5.4PHP 5.5PHP 5.6PHP 7.0PHP 7.1Total
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 @samiamnot
13 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/YearPHP 7.2PHP 7.3PHP 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/YearPHP 5.2PHP 5.3PHP 5.4PHP 5.5PHP 5.6PHP 7.0PHP 7.1Total
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 @samiamnot
11 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/YearPHP 7.2PHP 7.3PHP 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/YearPHP 5.2PHP 5.3PHP 5.4PHP 5.5PHP 5.6PHP 7.0PHP 7.1Total
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 @johnbillion
11 months ago

I've tweaked my stats projection page to better account for the slowing decline in 7.2+7.3 sites.

#7 @masteradhoc
11 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 @johnbillion
11 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 @johnbillion
11 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 @samiamnot
11 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/YearPHP 7.2PHP 7.3PHP 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/YearPHP 5.2PHP 5.3PHP 5.4PHP 5.5PHP 5.6PHP 7.0PHP 7.1Total
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 @samiamnot
10 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/YearPHP 7.2PHP 7.3PHP 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/YearPHP 5.2PHP 5.3PHP 5.4PHP 5.5PHP 5.6PHP 7.0PHP 7.1Total
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 @johnbillion
9 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 @samiamnot
9 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 @samiamnot
9 months 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 @justlevine
9 months 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.

Last edited 9 months ago by justlevine (previous) (diff)

#17 @masteradhoc
9 months 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 @johnbillion
9 months 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.


9 months ago

#20 @samiamnot
9 months 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/YearPHP 7.2PHP 7.3PHP 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/YearPHP 5.2PHP 5.3PHP 5.4PHP 5.5PHP 5.6PHP 7.0PHP 7.1Total
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.


8 months ago

#22 @samiamnot
8 months 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/YearPHP 7.2PHP 7.3PHP 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/YearPHP 5.2PHP 5.3PHP 5.4PHP 5.5PHP 5.6PHP 7.0PHP 7.1Total
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%

#23 @samiamnot
7 months ago

Updated for early July 2025 based on WordPress stats.

7.2 + 7.3 that are slated to be the next PHP versions no longer supported by WordPress, continued dropping anow reached 4.63%. We have at least 6 months until the next release and these numbers will continue to drop.

Month/YearPHP 7.2PHP 7.3PHP 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%
Jul 2025 2.16 2.47 4.63%

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.26% of sites are on unsupported PHP versions, something that dropps about 0.12% per month.

Month/YearPHP 5.2PHP 5.3PHP 5.4PHP 5.5PHP 5.6PHP 7.0PHP 7.1Total
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%
Jul 2025 0.15 0.34 0.26 0.21 1.87 0.88 0.56 4.26%

This ticket was mentioned in Slack in #core-committers by masteradhoc. View the logs.


7 months ago

This ticket was mentioned in PR #9181 on WordPress/wordpress-develop by @johnbillion.


7 months ago
#25

  • Keywords has-patch has-unit-tests added

This ticket was mentioned in Slack in #core by justlevine. View the logs.


6 months ago

This ticket was mentioned in Slack in #hosting by justlevine. View the logs.


6 months ago

#28 @johnbillion
6 months ago

  • Owner set to johnbillion
  • Status changed from new to accepted

#29 @masteradhoc
6 months ago

Thanks @johnbillion!
Great to see this getting accepted. If anything is needed let me know, happy to help.

#30 @samiamnot
6 months ago

Updated for early August 2025 based on WordPress stats.

7.2 + 7.3 that are slated to be the next PHP versions no longer supported by WordPress, continued dropping and reached 4.53%. This is a reduction of 0.10% since last month, the smallest drop in the two years I have been tracking this.

Month/YearPHP 7.2PHP 7.3PHP 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%
Jul 2025 2.16 2.47 4.63%
Aug 2025 2.11 2.42 4.53%

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.20% of sites are on unsupported PHP versions, something that dropped 0.06% in the past month, the smallest change since I started tracking this.

Month/YearPHP 5.2PHP 5.3PHP 5.4PHP 5.5PHP 5.6PHP 7.0PHP 7.1Total
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%
Jul 2025 0.15 0.34 0.26 0.21 1.87 0.88 0.56 4.26%
Aug 2025 0.15 0.33 0.25 0.21 1.85 0.86 0.55 4.20%

#31 follow-up: @matt
6 months ago

Let's hold off on this for 6.9 but revisit after.

#32 @justlevine
5 months ago

Let's hold off on this for 6.9 but revisit after.

@matt is there a particular reason or concern that you're able to share? Perhaps there's a middle ground or a different way we as contributors can address it?

As I see it:

  • The current v7.2 limitation is becoming more and more of a tooling headache (which makes it an AI Agent headache too), and the ability to start inlining class properties also has a _huge_ impact on AI accuracy (both for core contribs and downstream usage).
  • 7.4+ is a [mostly non-negotiable prerequisite for the PHP AI Client, and will also either slow development/adoption on the MCP/Abilities API/Experiments or become a blocker on getting them into core.

Conversely,

  • The work to bump is negligible and (AFAIK) already done
  • We have ~4 months to announce the bump in advance. We've never had that much lead time to warn people.
  • Waiting to WP7.0 means the earliest it'll start to have a real effect is WP7.1, which is a lifetime in the current era of subsidized-compute LLMs.

My educated guess from previous trends says v6.9 is the difference between us being able to hit a minimum PHP8.0 by WP v7.5 - which (assuming AI doesn't completely upend things and/or we don't decide to leave behind 5% of the web) will be critical by that point.

Last edited 5 months ago by justlevine (previous) (diff)

#33 @samiamnot
4 months ago

Updated for early September 2025 based on WordPress stats.

7.2 + 7.3 that are slated to be the next PHP versions no longer supported by WordPress, continued dropping and reached 4.39%. This is a reduction of 0.14% since last month.

Month/YearPHP 7.2PHP 7.3PHP 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%
Jul 2025 2.16 2.47 4.63%
Aug 2025 2.11 2.42 4.53%
Sep 2025 2.05 2.34 4.39%

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.09% of sites are on unsupported PHP versions, something that dropped 0.10% in the past month, the smallest change since I started tracking this.

Month/YearPHP 5.2PHP 5.3PHP 5.4PHP 5.5PHP 5.6PHP 7.0PHP 7.1Total
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%
Jul 2025 0.15 0.34 0.26 0.21 1.87 0.88 0.56 4.26%
Aug 2025 0.15 0.33 0.25 0.21 1.85 0.86 0.55 4.20%
Sep 2025 0.15 0.33 0.25 0.20 1.80 0.84 0.53 4.10%

#34 @johnbillion
4 months ago

Interesting tidbit: PHP 7.4 is no longer the most used version of PHP. It's just been overtaken by 8.2.

https://i.imgur.com/U9DUdyq.png

#35 @samiamnot
4 months ago

@johnbillion , I am curious to see how quickly 7.4 will drop down to the point it can be dropped. Likely not for a number of years.

This ticket was mentioned in Slack in #core by justlevine. View the logs.


4 months ago

#37 in reply to: ↑ 31 @johnbillion
4 months ago

Replying to matt:

Let's hold off on this for 6.9 but revisit after.

@matt I think this change should go ahead in 6.9. The goal of increasing the minimum supported version of PHP is only ever to ensure the long term maintainability of WordPress. This ticket, like its forebears, contains plenty of statistical analysis and reasoning in favour of dropping support for PHP 7.2 and 7.3. The only data point that is not in favour of this change is your brief comment.

We're already seeing the negative effects of continuing to support PHP 7.2. For example, the AI team are building libraries for cutting edge technology but are constrained by the syntax of -- and tooling that needs to be compatible with -- a version of PHP that was released 8 years ago and is used by 2% of sites.

If you're still not in favour of this change then please drop your concerns in a comment here. If you've changed your mind then I'll go ahead and ensure this change is made in time for beta 1.

#38 @samiamnot
3 months ago

Updated for early October 2025 based on WordPress stats.

7.2 + 7.3 that are slated to be the next PHP versions no longer supported by WordPress, continued dropping and reached 4.25%. This is a reduction of 0.14% since last month. If the current pace continues, we will be below 4% by the time WP 6.9 is released in early December, and it will likely drop below the percentage of sites already abandoned with the dropped support for PHP 5.2 - 7.0 in WP 6.6.

Month/YearPHP 7.2PHP 7.3PHP 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%
Jul 2025 2.16 2.47 4.63%
Aug 2025 2.11 2.42 4.53%
Sep 2025 2.05 2.34 4.39%
Oct 2025 1.99 2.26 4.25%

For historical reasons, here are the stats for no longer supported versions (support removed in WP 6.6). This is not changing much and many are likely "abandoned" sites that are on old versions of WP. As we stand now, 3.98% of sites are on unsupported PHP versions, something that dropped 0.12% in the past month. Since Jan, we dropped a full percentage point, something pretty significant.

Month/YearPHP 5.2PHP 5.3PHP 5.4PHP 5.5PHP 5.6PHP 7.0PHP 7.1Total
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%
Jul 2025 0.15 0.34 0.26 0.21 1.87 0.88 0.56 4.26%
Aug 2025 0.15 0.33 0.25 0.21 1.85 0.86 0.55 4.20%
Sep 2025 0.15 0.33 0.25 0.20 1.80 0.84 0.53 4.10%
Oct 2025 0.14 0.32 0.24 0.20 1.76 0.81 0.51 3.98%

#39 @johnbillion
3 months ago

  • Milestone changed from 6.9 to 7.0

#40 @bradshawtm
3 months ago

Based on the milestone change, it sounds like this is not going to make it in WP 6.9, which is disappointing for the variety of reasons mentioned above.

  • Can we be sure the bump to 7.4 will be in WP 7.0 (5.5 years past PHP 7.2's end-of-life)?
  • Are there any plans in place to drop PHP 7.4 support (currently 3 years past end-of-life)?

Maintaining full support in core (and plugins following core) for 9 major versions of a language is quite a tall order. Plugins often have the added burden of maintaining things for a version or two behind of WP core.

#41 @samiamnot
3 months ago

@bradshawtm , as you can see in WordPress stats, PHP 7.4 currently accounts for 24.1% of all active WordPress sites. It will likely take years before that is low enough to drop.

#42 @bradshawtm
3 months ago

I agree that it'll be a while before PHP 7.4 can be dropped, but if there are no plans or tentative target dates, there's also little incentive for hosts to upgrade.

On the other hand, if there are tentative plans on some roadmap, even a few years out, the upgrade rate will organically increase more rapidly and outreach to hosts is easier to do.

PHP is releasing a new version every year, and we're not dropping old versions nearly as quickly; ideally there'd be a goal to narrow that gap rather than let it continue to widen.

The good news is that PHP 7.4 has dropped by more than 8.5 points in the last 11 months, though this will rate will level out over time without some reason for that momentum to continue.

Last edited 3 months ago by bradshawtm (previous) (diff)

#43 @samiamnot
2 months ago

Updated for early November 2025 based on WordPress stats.

7.2 + 7.3 that are slated to be the next PHP versions no longer supported by WordPress, continued dropping and reached 4.12%. This is a reduction of 0.13% since last month. If the current pace continues, we will be below 4% by the time WP 6.9 is released in early December.

Month/YearPHP 7.2PHP 7.3PHP 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%
Jul 2025 2.16 2.47 4.63%
Aug 2025 2.11 2.42 4.53%
Sep 2025 2.05 2.34 4.39%
Oct 2025 1.99 2.26 4.25%
Nov 2025 1.93 2.19 4.12%

For historical reasons, here are the stats for no longer supported versions (support removed in WP 6.6). This is not changing much and many are likely "abandoned" sites that are on old versions of WP. As it stands now, 3.90% of sites are on unsupported PHP versions, something that dropped 0.08% in the past month. Since Jan, it dropped a full percentage point, something pretty significant.

Month/YearPHP 5.2PHP 5.3PHP 5.4PHP 5.5PHP 5.6PHP 7.0PHP 7.1Total
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%
Jul 2025 0.15 0.34 0.26 0.21 1.87 0.88 0.56 4.26%
Aug 2025 0.15 0.33 0.25 0.21 1.85 0.86 0.55 4.20%
Sep 2025 0.15 0.33 0.25 0.20 1.80 0.84 0.53 4.10%
Oct 2025 0.14 0.32 0.24 0.20 1.76 0.81 0.51 3.98%
Nov 2025 0.14 0.32 0.24 0.19 1.72 0.79 0.50 3.90%

#44 @samiamnot
7 weeks ago

PHP 7.2 + 7.3 combined now stands at 3.99%. A nice milestone to have reached shortly before the 6.9 release.

#45 @samiamnot
6 weeks ago

Updated for early December 2025 based on WordPress stats.

7.2 + 7.3 that are slated to be the next PHP versions no longer supported by WordPress, continued dropping and reached 3.98%. This is a reduction of 0.14% since last month.

Month/YearPHP 7.2PHP 7.3PHP 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%
Jul 2025 2.16 2.47 4.63%
Aug 2025 2.11 2.42 4.53%
Sep 2025 2.05 2.34 4.39%
Oct 2025 1.99 2.26 4.25%
Nov 2025 1.93 2.19 4.12%
Dec 2025 1.87 2.11 3.98%

For historical reasons, here are the stats for no longer supported versions (support removed in WP 6.6). This is not changing much and many are likely "abandoned" sites that are on old versions of WP. As it stands now, 3.80% of sites are on unsupported PHP versions, something that dropped 0.1% in the past month. Since Jan, it dropped 1.26%, something pretty significant.

Month/YearPHP 5.2PHP 5.3PHP 5.4PHP 5.5PHP 5.6PHP 7.0PHP 7.1Total
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%
Jul 2025 0.15 0.34 0.26 0.21 1.87 0.88 0.56 4.26%
Aug 2025 0.15 0.33 0.25 0.21 1.85 0.86 0.55 4.20%
Sep 2025 0.15 0.33 0.25 0.20 1.80 0.84 0.53 4.10%
Oct 2025 0.14 0.32 0.24 0.20 1.76 0.81 0.51 3.98%
Nov 2025 0.14 0.32 0.24 0.19 1.72 0.79 0.50 3.90%
Dec 2025 0.14 0.31 0.23 0.19 1.68 0.77 0.48 3.80%

#46 @samiamnot
12 days ago

Updated for early Jan 2026 based on WordPress stats.

7.2 + 7.3 that are slated to be the next PHP versions no longer supported by WordPress, continued dropping and reached 3.87%. This is a reduction of 0.11% since last month.

The percentage of sites on unsupported PHP versions (PHP 5.2 - 7.3) stands at 7.61% of sites. Many are old abandoned sites that are unlikely to be updated.

Month/YearPHP 7.2PHP 7.3PHP 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%
Jul 2025 2.16 2.47 4.63%
Aug 2025 2.11 2.42 4.53%
Sep 2025 2.05 2.34 4.39%
Oct 2025 1.99 2.26 4.25%
Nov 2025 1.93 2.19 4.12%
Dec 2025 1.87 2.11 3.98%
Jan 2026 1.82 2.05 3.87%

For historical reasons, here are the stats for no longer supported versions (support removed in WP 6.6). This is not changing much and many are likely "abandoned" sites that are on old versions of WP. As it stands now, 3.74% of sites are on unsupported PHP versions, something that dropped 0.06% in the past month. Since Jan 2025, it dropped 1.32%.

Month/YearPHP 5.2PHP 5.3PHP 5.4PHP 5.5PHP 5.6PHP 7.0PHP 7.1Total
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%
Jul 2025 0.15 0.34 0.26 0.21 1.87 0.88 0.56 4.26%
Aug 2025 0.15 0.33 0.25 0.21 1.85 0.86 0.55 4.20%
Sep 2025 0.15 0.33 0.25 0.20 1.80 0.84 0.53 4.10%
Oct 2025 0.14 0.32 0.24 0.20 1.76 0.81 0.51 3.98%
Nov 2025 0.14 0.32 0.24 0.19 1.72 0.79 0.50 3.90%
Dec 2025 0.14 0.31 0.23 0.19 1.68 0.77 0.48 3.80%
Jan 2026 0.14 0.31 0.23 0.19 1.65 0.75 0.47 3.74%

#47 @johnbillion
5 days ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 61459:

General: Increase the minimum supported version of PHP to 7.4.

Props justlevine, masteradhoc, samiamnot, matt, bradshawtm, 4thhubbard, desrosj, jorbin, westonruter, peterwilsoncc, johnbillion

Fixes #62622

#48 @masteradhoc
4 days ago

We'll continue on #64494 to get the supported version higher then 7.4 when the time is right.

Note: See TracTickets for help on using tickets.