How to update PHP on a WordPress site (before PHP 8.2 support ends)

To update PHP on a WordPress site, check your current version under Tools > Site Health > Info > Server, take a backup, update WordPress, your theme and plugins, then switch to a newer PHP version in your hosting control panel (or ask your host to do it). If your site is on PHP 8.2 or older, do it this month: PHP 8.2 stops getting security fixes on 31 December 2026.

It sounds technical, but for most small business sites it’s a setting you change, not code you write. This guide walks through each step, which version to pick, and what to do if something looks wrong afterwards.

What is PHP, and why does the version matter?

PHP is one of the programming languages WordPress is built on. It runs on your hosting company’s server, not on your computer, which is why your host decides which versions you can use.

AdvertisementLooking after and fixing your website · Article topDesk kit worth a look: see our top picks

Each PHP version is supported for a set time. According to the official PHP supported versions page (checked 29 November 2026), a version first gets active support, with bug and security fixes, then a period of security-only fixes, and then nothing at all. Once a version reaches end of life, any new security holes found in it won’t be fixed.

WordPress.org gives two main reasons to keep PHP up to date in its guide to updating PHP: your site may be faster, because PHP becomes more efficient with each version, and it will be more secure.

Which PHP versions are still supported?

Here’s where things stand, from the PHP project’s own dates (checked 29 November 2026):

PHP versionActive support endsSecurity support ends
8.231 Dec 202431 Dec 2026
8.331 Dec 202531 Dec 2027
8.431 Dec 202631 Dec 2028
8.531 Dec 202731 Dec 2029
8.631 Dec 202831 Dec 2030

PHP 8.6 was released on 19 November 2026, so it’s very new. Anything older than 8.2, such as 7.4, 8.0 or 8.1, is already past the end of its security support.

Which version should you choose?

WordPress’s own advice has two levels. Its requirements page recommends PHP 8.3 or greater (checked 29 November 2026). Its hosting handbook (last updated 24 November 2026), which is written for hosts and developers, goes further and recommends PHP 8.4 or later for live sites. It says PHP 8.4 is fully supported by WordPress 6.7 and later, and PHP 8.5 by WordPress 6.9 and later.

For most small business sites, we’d aim for PHP 8.4 if your host offers it. It has security support until the end of 2028, so you won’t be doing this again next year. PHP 8.3 is fine as a step if a plugin isn’t ready for 8.4, but its security support ends in December 2027. We wouldn’t make PHP 8.6 the first choice yet, because it has only just been released.

Whatever you pick, the steps below are the same.

Step 1: How do you check which PHP version your site uses?

In your WordPress dashboard, go to Tools > Site Health, open the Info tab, and expand the Server section. Look for PHP version.

You may also have seen a “PHP Update Required” or “PHP Update Recommended” notice in your dashboard or in Site Health. WordPress shows these when your version is below what it recommends.

If your site is already on PHP 8.4 or 8.5, you don’t need to do anything for now. If it’s on 8.3, you have until the end of 2027, but it’s worth planning the move. If it’s on 8.2 or older, carry on.

Step 2: Take a backup you can actually restore

Before changing anything, make a full backup of your site, covering both the files and the database. WordPress.org says this is the first thing to do, because a backup lets you put the site back exactly as it is now if something goes wrong.

Check where the backup is stored and how you’d restore it. Our guide to WordPress backups you can actually restore explains what a good backup looks like and how to test it.

Note the PHP version you’re on now. If you ever need to restore the backup, WordPress.org says you’ll need to switch PHP back to that version first.

Step 3: Update WordPress, your theme and your plugins

Go to Dashboard > Updates and update everything. Then check your site still works as expected: click through the main pages, send a test message through your contact form and, if you take bookings or payments, test those too.

Newer releases of themes and plugins are far more likely to work with newer PHP versions, so this step does a lot of the work for you.

Step 4: Are your plugins and theme still maintained?

WordPress.org suggests checking when each plugin and your theme were last updated, on their WordPress.org page or the developer’s website. If something hasn’t been updated in a long time, or the developer can’t confirm it works with newer PHP, look for an actively maintained alternative.

This is also a good moment to remove plugins you no longer use. Every plugin you don’t need is one fewer thing that could clash with the new version. Our guide to looking after a WordPress website covers this kind of regular tidy-up.

If your host offers a staging site, a private copy of your website, switch PHP there first and test before touching the live site. WordPress.org recommends doing this when it’s available.

Step 5: How do you change the PHP version with your host?

PHP runs on your hosting server, so the change happens in your hosting account, not in WordPress. How you do it depends on your host.

  • If your host has a control panel, look for a setting called something like PHP version or PHP configuration, choose the new version for your website, and save. Hosting panels differ, and we couldn’t confirm a current official Hostinger help page for this step (their published URLs returned a 404 when checked on 29 November 2026), so we haven’t given click-by-click paths for one host.
  • If you can’t find it, WordPress.org keeps a list of hosts that have published instructions, linked from its update PHP guide. Or contact your host and ask them to move your site to PHP 8.4.

If your site is on a managed plan, or someone else looks after it, ask them to make the change and tell you when it’s done.

Step 6: Test your site straight away

Once the switch is made, check the same things you checked in Step 3:

  • The home page and your main service pages load properly.
  • Your contact form sends, and the message arrives.
  • Any booking, shop or payment features work.
  • You can still log in to the dashboard.
  • Tools > Site Health shows the new PHP version.

Do this while you have time to deal with any problems, not just before you close for the day.

What if something breaks?

Most sites switch without trouble, but WordPress.org is clear that it can’t guarantee every theme and plugin will work.

If something looks wrong, switch PHP back to your previous version in the same setting, or ask your host to do it. That usually puts things right straight away and gives you time to find the cause, which is often an old plugin or theme. Update or replace it, then try the switch again.

If you need to restore your backup, ask your host to set PHP back to the version you noted in Step 2 first, then restore. If the site still won’t load at all, contact your host or a WordPress developer. Our upcoming guide Website not working? will cover the first checks to make.

Frequently asked questions

How do I check my PHP version in WordPress?

Go to Tools > Site Health, open the Info tab, expand Server, and look for PHP version.

What happens if I stay on PHP 8.2 after 31 December 2026?

Your site won’t stop working on 1 January. But PHP 8.2 will no longer get security fixes, so any new vulnerabilities found in it won’t be patched. That leaves your site more exposed over time, which is why WordPress recommends using a supported version.

Can updating PHP break my website?

It can, usually because an old theme or plugin hasn’t been updated to work with newer PHP. Taking a backup, updating everything first and testing straight after the switch keeps the risk low, and you can switch back if needed.

Should I go straight to PHP 8.5?

You can if your host offers it and your theme and plugins support it. WordPress’s hosting handbook says PHP 8.5 is fully supported by WordPress 6.9 and later. For most small business sites, PHP 8.4 is a sensible, well-tested choice with security support until the end of 2028.

Will updating PHP make my site faster?

It may. WordPress.org says each new PHP version tends to be more efficient. If speed is a concern, our guide to speeding up a slow WordPress website covers other changes that make a difference.

Is an old PHP version a security risk?

Yes, once it’s past the end of security support, because new holes won’t be fixed. It’s not the only risk, though. If your site has been hacked before, see our guide to a hacked WordPress site that keeps coming back.

Next steps

Open Tools > Site Health on your site today and check your PHP version. If it’s 8.2 or older, book half an hour this week: take a backup, update everything, switch to PHP 8.4 and test. It’s one of the quickest security wins you’ll make this year.

Dates and recommendations were checked on 29 November 2026 against the PHP project’s supported versions page and WordPress.org’s requirements, hosting handbook (last updated 24 November 2026) and update-PHP guide. Hosting control panels differ, so follow your host’s instructions where they differ from ours.

The markdesigns Team

Sources

PHP: Supported Versions (checked 29 November 2026). WordPress requirements (checked 29 November 2026). WordPress hosting handbook: server environment (last updated 24 November 2026; checked 29 November 2026). WordPress.org: Update PHP (checked 29 November 2026).

AdvertisementLooking after and fixing your website · Article bottomEnvato Elements – unlimited graphic assets