PHP is the programming language WordPress and WooCommerce run on. Every PHP version gets security fixes for a fixed number of years, and on December 31, 2026, PHP 8.2 stops receiving them. According to WordPress.org’s own statistics, about 22% of WordPress sites run PHP 8.2 today, and another 31% already run versions that stopped getting security fixes earlier. From January 1, that adds up to more than half of all WordPress sites.

This guide explains what “end of life” means in practice, how to check which version your site runs, which version to move to, and how to upgrade without breaking anything.

What “end of life” means

The PHP project supports each version in two stages. First comes two years of active support, with bug fixes and security fixes. Then come two years of security fixes only. After that the version is end of life: when a new vulnerability is found, the PHP project fixes it in the supported versions and not in yours.

Your site won’t stop working on January 1. Nothing switches off. What changes is the risk over time:

  • New vulnerabilities stay open. Any security flaw found in PHP 8.2 after the end of 2026 is fixed only in newer versions. This isn’t hypothetical: the critical PHP2Shell flaws of October 2026 were fixed for 8.2 and newer, and not at all for 8.1 and older.
  • Plugins move on. Plugin and theme developers gradually require newer PHP versions, so staying behind eventually means you can’t install the updates that fix their security problems either.
  • Hosts move on. Some hosts charge extra to keep old PHP versions running, or upgrade them on a schedule of their own, which is a worse time to find out what breaks than one you choose.

How many WordPress sites are affected

WordPress.org publishes the PHP versions reported by WordPress sites. On November 29, 2026:

  • PHP 8.3: 28.3% of sites. Security fixes until the end of 2027.
  • PHP 8.2: 22.1%. Security fixes end on December 31, 2026.
  • PHP 7.4: 13.9%. No security fixes since November 2022.
  • PHP 8.4: 11.3%. Security fixes until the end of 2028.
  • PHP 8.1: 8.8%. No security fixes since the end of 2025.
  • PHP 8.5: 7.1%. Security fixes until the end of 2029.
  • Everything older: about 8.4% combined, including PHP 8.0, 7.x and 5.x.

Add up 8.2 and everything older and you get about 53% of WordPress sites on a PHP version with no security support from January 1.

How to check your PHP version

You don’t need server access. In WordPress:

  • Go to Tools → Site Health in the WordPress admin.
  • Open the Info tab and expand Server.
  • The PHP version line shows what your site runs right now.

Your hosting control panel shows it too, usually under a heading like “PHP version” or “PHP settings”. That is also where you will change it.

Which version to move to

WordPress recommends PHP 8.3 or newer. WordPress 6.8 and later fully supports PHP 8.4, and WordPress 6.9 and 7.0 fully support PHP 8.5. The question is really how far ahead you want to be:

  • PHP 8.3 is the smallest jump from 8.2, but it only gets security fixes until the end of 2027, so you will be doing this again in a year.
  • PHP 8.4 is supported until the end of 2028 and is a sensible target for most sites.
  • PHP 8.5 is supported until the end of 2029. Choose it if your plugins and theme are actively maintained and you have tested them on it.

The limit is almost never WordPress itself. It is the oldest plugin or theme you depend on. WordPress.org plugin pages list the minimum PHP version a plugin needs, but not the newest version it has been tested on, so the only reliable answer is to test.

How to upgrade safely

  • Back up the site and the database, and make sure you know how to restore them.
  • Update WordPress, the theme and every plugin first, on your current PHP version. Most PHP compatibility fixes arrive as ordinary updates.
  • Make a staging copy (most hosts offer one-click staging) and switch only the copy to the new PHP version.
  • Test what earns you money: checkout, contact and quote forms, logins, search, and anything that runs on a schedule, such as emails, feeds and backups.
  • Read the error log. Warnings about deprecated code are early notice of what will break in the next version.
  • Switch the live site at a quiet time, test the same things again, and keep the previous version selected in your notes in case you need to switch back.

The bigger picture

PHP is one layer. Most vulnerabilities in WordPress sites are in plugins, not in PHP or WordPress itself. Our guide to where WordPress and WooCommerce security risk really comes from covers the rest. If you would rather have someone look at all of it at once (PHP, plugins, theme, hosting and updates), that is exactly what a WordPress website audit does.

Common questions

Will my site go down on January 1?

No. PHP 8.2 keeps running. It just stops getting security fixes, so the risk grows with every vulnerability found after that date.

Can my host upgrade PHP for me?

Usually it is a setting you can change yourself in the hosting panel. Some hosts upgrade old versions automatically on their own schedule. Either way, test on a staging copy first.

Is WooCommerce affected?

Yes. WooCommerce is a WordPress plugin, so it runs on whatever PHP version the site runs. Stores also tend to have more plugins, such as payments, shipping and invoices, so they have more to test.