Skip to content

WordPress and PHP 8.2: what happens on December 31, 2026

Your hosting provider announces it will switch off PHP 8.2, or you read that the version expires at the end of the year. Your website is working, so why change anything? Because from January 1, 2027, every new vulnerability in PHP 8.2 stays open, and your hosting provider will switch off the version sooner or later. Whether your website survives the move to PHP 8.4 is rarely decided by WordPress itself, but by the plugins and the theme that have piled up over the years.

By Dimitri König6 min read

PHP versions with end of security updates and share of WordPress installations
VersionSecurity updates untilTime leftStatus
PHP 8.6latest 8.6.0released Nov 19, 2026SupportedDec 31, 20301,498 days left1,498 days leftSupported
PHP 8.5latest 8.5.13released Nov 20, 2025Supported6.5% of WordPress installationsDec 31, 20291,133 days left1,133 days leftSupported6.5% of WordPress installations
PHP 8.4latest 8.4.28released Nov 21, 2024Supported10.7% of WordPress installationsDec 31, 2028768 days left768 days leftSupported10.7% of WordPress installations
PHP 8.3latest 8.3.37released Nov 23, 2023Security updates only27.9% of WordPress installationsDec 31, 2027402 days left402 days leftSecurity updates only27.9% of WordPress installations
PHP 8.2latest 8.2.36released Dec 8, 2022Support ending soon22.6% of WordPress installationsDec 31, 202637 days left37 days leftSupport ending soon22.6% of WordPress installations
PHP 8.1latest 8.1.34released Nov 25, 2021No longer supported9.1% of WordPress installationsDec 31, 2025expiredexpiredNo longer supported9.1% of WordPress installations
PHP 8.0latest 8.0.30released Nov 26, 2020No longer supported3.3% of WordPress installationsNov 26, 2023expiredexpiredNo longer supported3.3% of WordPress installations
PHP 7.4latest 7.4.33released Nov 28, 2019No longer supported14.4% of WordPress installationsNov 28, 2022expiredexpiredNo longer supported14.4% of WordPress installations
Shares according to wordpress.org (api.wordpress.org/stats/php), retrieved on November 10, 2026. Versions older than PHP 7.4 combined: 5.3%.Data: endoflife.date and php.net Supported Versions, retrieved Nov 24, 2026. Time left calculated on Nov 24, 2026.

What changes for PHP 8.2 on December 31, 2026?

PHP 8.2 was released in December 2022. Since the end of 2024, the version has only received security updates, and on December 31, 2026, those end too. From January 1, 2027, no more official fixes will be released for PHP 8.2.

Your WordPress website works exactly the same after PHP 8.2 reaches end of support. What changes is the risk: every newly discovered vulnerability in PHP 8.2 stays open, and your hosting provider will switch off the version sooner or later.

With some Swiss hosting providers, PHP 8.2 is only available until the end of 2026; others keep it longer or for an extra fee. Each Swiss hosting provider’s PHP deadlines are in the article PHP end of life. The PHP vulnerabilities of October 2026 showed that a hosting provider can also switch the PHP version without notice: at the time, several hosting providers moved applications to a new PHP version without any transition period.

How many WordPress websites does the end of support for PHP 8.2 affect?

WordPress.org publishes which PHP versions WordPress installations run on, counted during the regular update check. As of November 10, 2026:

  • 22.6 percent run on PHP 8.2 and lose security support at the end of 2026.
  • 32.2 percent run on PHP 8.1 or older and already have no security support today, including 14.4 percent on PHP 7.4.
  • 45.2 percent run on PHP 8.3, 8.4 or 8.5.

From January 2027, according to the wordpress.org figures, more than half of all WordPress installations, 54.8 percent, will be running on a PHP version without security updates.

WordPress websites on PHP 7.2 or 7.3 face an additional problem: since WordPress 7.0, PHP 7.4 is the minimum. They are stuck on WordPress 6.9, and WordPress officially only supports the latest version, which as of November 2026 is 7.1.4.

The WordPress core is rarely the problem when switching PHP versions

WordPress itself is ready for new PHP versions early. According to the core team’s handbook, WordPress is compatible with PHP 8.4 from version 6.7 and with PHP 8.5 from 6.9. For PHP 8.6, the core team has declared support from WordPress 7.2, due on December 8, 2026. WordPress recommends PHP 8.3 or newer.

The hurdle in switching a WordPress website’s PHP version is everything that has been added over the years. According to Patchstack, 11,334 new vulnerabilities were reported in the WordPress ecosystem in 2025, 91 percent of them in plugins. The same plugins decide whether your website survives the PHP switch:

  • Plugins nobody maintains anymore. They were written for the PHP version of their day and won’t get any more adjustments.
  • Premium plugins and themes with an expired license. Updates are only available with a valid license. If the license was in the agency’s name, your website hasn’t received anything since the agency left, including adjustments for new PHP versions.
  • Custom code. The former agency’s custom plugins or code in the theme’s functions.php. Nobody has tested it with a new PHP version since the agency left.
  • Old page builder versions. A builder that hasn’t been updated in years carries the entire layout and is itself a likely source of errors.
  • Missing PHP extensions. As of PHP 8.4, the IMAP extension is no longer part of PHP. Plugins that fetch email via IMAP then need a replacement, or a hosting provider that offers the extension separately.

The step from PHP 8.2 to PHP 8.3 or 8.4 is small for most WordPress code. Many changes first show up as warnings in the error log rather than as crashes. PHP 8.2, for example, deprecated dynamic properties, which fills the log with older plugins.

The big break comes if your WordPress website still runs on PHP 7.4: with PHP 8.0, functions were removed entirely, and old plugins fail with a fatal error. What to do after such a fatal error is covered in the article Getting your web application running again.

How the PHP upgrade of a WordPress website is planned

A PHP upgrade of a WordPress website from PHP 8.2 to PHP 8.4 takes seven steps:

  1. Take stock. WordPress, PHP and database version, all plugins and themes with their version, origin (wordpress.org, premium or custom-built), last update and license. Much of this is under Tools → Site Health → Info.
  2. Backup off the server. Files and database, with a restore that has been tried at least once.
  3. A copy with the new PHP version. A staging environment with PHP 8.4, not the live server. Many hosting providers offer staging directly in the panel.
  4. Check the code automatically. Tools such as PHPCompatibilityWP find places in the plugin and theme code that no longer run on the new PHP version.
  5. Click through what matters. Contact form, login, members’ area, cart and checkout, newsletter sign-up, integrations. With WP_DEBUG_LOG, errors and warnings go to a log file instead of appearing on the website.
  6. Update or replace plugins. On the staging copy first: install updates, replace abandoned plugins, adapt custom code.
  7. Switch live, with a way back. The switch in the hosting panel happens at a quiet time, and the error log is watched closely for a few days afterward. As long as your hosting provider still offers PHP 8.2, the way back stays open.

The target version for a WordPress website on PHP 8.2 is usually PHP 8.4, with security updates until the end of 2028. If an important plugin isn’t ready yet, PHP 8.3, covered until the end of 2027, is a clean intermediate step.

The switch to PHP 8.4 will hardly make your WordPress website faster: why that is, is explained in the article Does a PHP upgrade make the application faster?.

How much work is the PHP upgrade?

The work for a WordPress website’s PHP upgrade depends on three things: how many plugins are installed, how much custom code is in there and how long it has been since anyone updated anything. A lean website with maintained plugins often switches without a single change to the code. A website with custom plugins, an old page builder and a shop needs more. The work then lies in replacing and adapting, not in switching the PHP version.

If your WordPress website runs a WooCommerce shop connected to an ERP, the PHP upgrade belongs in the same test run as the shop updates. What such a test run looks like is in the article Taking over a WooCommerce shop with an ERP integration.

When nobody knows your WordPress website

The PHP upgrade of a WordPress website gets difficult when the agency is gone and nobody knows which plugin does what and where custom code is hiding. Unique-P’s Takeover Assessment clarifies exactly that with its WordPress review module: versions, plugins, licenses, custom code and a plan for the PHP upgrade, with a fixed price for the implementation.

After the upgrade, ongoing maintenance from Unique-P keeps WordPress, plugins and PHP up to date on a fixed schedule, so the next deadline doesn’t catch you off guard again. How taking over a WordPress website works is on the WordPress website takeover page.

Sources

  1. [1]Supported Versions · php.net
  2. [2]WordPress-Installationen nach PHP-Version · WordPress.org, retrieved November 10, 2026
  3. [3]Requirements · WordPress.org
  4. [4]PHP Compatibility and WordPress Versions · Make WordPress Core, Handbuch
  5. [5]Dropping support for PHP 7.2 and 7.3 · Make WordPress Core, January 9, 2026
  6. [6]WordPress 7.1.4 (Release Notes) · WordPress.org, October 28, 2026
  7. [7]State of WordPress Security in 2026 · Patchstack
  8. [8]Migrating from PHP 8.1.x to PHP 8.2.x, Deprecated features · php.net
  9. [9]Migrating from PHP 8.3.x to PHP 8.4.x, Removed Extensions · php.net
  10. [10]PHPCompatibilityWP · PHPCompatibility, GitHub
  11. [11]PHP Benchmarks: 8.5 vs 8.4, 8.3 and 7.4 · Tideways, November 19, 2025

Frequently asked questions.

Will my WordPress website keep running after December 31, 2026?

Yes, your WordPress website keeps running after December 31, 2026, as long as your hosting provider offers PHP 8.2. But no more security fixes will be released for PHP 8.2 itself. Every vulnerability discovered after that stays open, and your hosting provider will switch off the version sooner or later, some as early as the end of 2026.

Deadlines at Swiss hosting providers

Which PHP version should my website move to?

Your WordPress website should move to PHP 8.4 if the plugins and the theme allow it, with security updates until December 31, 2028. PHP 8.3 is covered until the end of 2027 and is a sensible intermediate step if a plugin isn’t ready yet. WordPress itself recommends PHP 8.3 or newer. PHP 8.5 is worth it as soon as all plugins and the theme run on it.

Which WordPress version is needed for PHP 8.4?

According to the WordPress core team’s handbook, WordPress is compatible with PHP 8.4 from version 6.7 and with PHP 8.5 from 6.9. PHP 8.6, released on November 19, 2026, is to be officially supported from WordPress 7.2, planned for December 8, 2026. WordPress 7.1, the current version as of November 2026, makes sense anyway, because WordPress officially only supports the latest version.

How do I find out which PHP version my website uses?

Your WordPress website’s PHP version is shown in the WordPress admin under Tools → Site Health → Info, in the “Server” section. Your hosting provider’s panel shows it too, usually along with the PHP versions it still offers.

A plugin is no longer being developed. What then?

For a WordPress plugin that is no longer being developed, there are three ways: a maintained plugin that does the same thing, adapting the old plugin yourself and maintaining it in your repository, or rebuilding the feature as a small custom plugin. Which way fits depends on how much logic and how much data depend on the plugin. Simply letting the abandoned plugin keep running is not a solution: if a vulnerability is found in it, no fix will come.

Will my website get faster with PHP 8.4?

A WordPress website gets hardly any faster with PHP 8.4. In measurements by Tideways, WordPress performed about the same across the PHP 8 versions; only PHP 7.4 managed about 5 percent fewer requests per second. The PHP upgrade is worth it for the security updates. If your website is slow, it’s usually down to plugins, database queries or missing caching.

Does a PHP upgrade make the application faster?