Learning how to update PHP version in WordPress is simpler than most site owners expect, and it is one of the highest-value maintenance jobs you can do in under an hour. PHP is the programming language WordPress runs on, and its version quietly decides how fast your site loads and how safe it is from attacks. Running an old version is like driving on bald tyres: everything feels fine until the day it suddenly is not.
This guide walks you through the whole process in plain language, in the order an experienced site owner would actually do it. You will learn what matters, what you can safely ignore, and which mistakes to avoid, so you can finish the job with confidence and a website that works the way it should.
Why Your PHP Version Matters So Much
Each new PHP release runs WordPress noticeably faster than the one before it, with PHP 8 versions handling far more visitors on the same hosting than old PHP 7 releases. On a busy site that speed difference shows up directly in page load times, and on a quiet site it shows up as headroom you will be glad to have on the day a post gets shared widely.
Speed is only half the story, because old versions also stop receiving security patches. Once a PHP version reaches end of life, new vulnerabilities in it are never fixed, and your site becomes an easier target every month you stay on it. WordPress itself now requires a modern PHP minimum and will warn you in the dashboard when your version is outdated, and hosts increasingly retire old versions entirely — so updating on your schedule beats being forced into it on theirs.

- Newer PHP runs WordPress significantly faster on the same hosting.
- Old PHP versions receive no security fixes once they reach end of life.
- WordPress warns about outdated PHP directly in the dashboard.
- Hosts eventually retire old versions, so a planned update beats a forced one.
Before You Touch Anything: Check and Prepare
Start by finding your current version. In your WordPress dashboard, go to Tools, then Site Health, then the Info tab — your PHP version is listed there, along with any compatibility concerns WordPress has spotted. The same screen lists your themes and plugins, which are the components most likely to dislike a sudden version jump.
Update WordPress core, your themes, and every plugin fully before changing PHP, because current software is built for current PHP and old code is the main cause of breakage. While you are there, check that your theme and key plugins state support for PHP 8.x. If a plugin has been abandoned by its developer — no updates in a year or more, no reply on its support forum — replace it before the switch rather than after a crash. An abandoned plugin is a problem waiting for a trigger, and a PHP update is a very effective trigger.
Then take a full backup: files and database together, stored somewhere other than the server itself. If anything breaks, you can roll the PHP version back in the same panel in under a minute, but the backup protects you if the breakage is less obvious and only discovered days later. A backup turns every mistake in this guide into a five-minute inconvenience instead of a genuine emergency, and it costs almost nothing to maintain.
- Check your PHP version under Tools, then Site Health, then Info.
- Update WordPress core, themes, and plugins fully before switching.
- Confirm your key plugins state support for PHP 8.x.
- Replace abandoned plugins before the switch, not after a crash.
- Take a complete backup, stored off the server, before changing anything.
How to Update PHP Version in WordPress: Step by Step
PHP is a server setting, so the change happens in your hosting panel, not inside WordPress itself. Most hosts offer a PHP selector or MultiPHP manager, and the whole job takes a few minutes once you know where to look. Work through these steps in order:
- Log in to your hosting panel. This is usually cPanel, Plesk, or your host’s own dashboard — the place you manage domains and email, not your WordPress admin.
- Find the PHP selector. Look for “PHP Selector”, “MultiPHP Manager”, “Select PHP Version”, or a PHP setting under your domain’s advanced options. If you cannot find it, your host’s help pages will name it, or support can point you to it.
- Select your domain. On hosts with several sites, PHP is set per domain, so double-check you are changing the right one before touching anything.
- Choose the newest stable version your site supports. In 2026 that is commonly PHP 8.2 or 8.3. Pick a stable release, not an experimental or beta version — your live site is not the place to test one.
- Apply the change and wait a minute. The switch usually takes effect within a minute or two. Your site may be briefly unavailable during the change, which is normal.
- Load your homepage in a private browser window. If it loads normally, the switch worked. If you see an error page, you have found a compatibility problem — see the fix section below.
- Check Site Health again. WordPress should now report the new version and stop warning you about PHP.
If your host shows no PHP selector at all, ask support to make the change. It is a routine request they handle daily, and most hosts will do it for you within minutes. Some managed WordPress hosts update PHP automatically and simply tell you afterwards — in that case your job is the preparation and testing, not the switch itself.

Testing Your Site After the Switch
A homepage that loads is a good sign, not a finished test. Browse your site the way a visitor would: homepage, a few posts, your menus, search, and your contact forms — submit one and confirm the message arrives. Log into the dashboard and look for warnings, and check the pages your visitors use most, not just the ones you remember.
On a store, run a full test checkout from adding a product to the confirmation page, because checkout touches payment code, email, and order handling — the exact areas where old plugin code tends to fail. If your store runs WooCommerce, it is also worth reviewing your hosting setup while you are in maintenance mode; our guide to the best WordPress hosting for a WooCommerce store explains what a store needs from its host beyond a current PHP version.
Most compatibility problems announce themselves immediately as error messages or broken layouts. The quiet ones — a form that submits but never delivers, a plugin that silently stops working — are why you test like a stranger instead of glancing at the homepage. Do this check on your phone too, logged out, clicking the same links your visitors use every day. Problems that are invisible in the dashboard often show themselves at once in a real visit.
- Test pages, menus, search, and forms as a visitor would.
- Run a full test checkout on a WooCommerce store.
- Check the dashboard for new warnings after the switch.
- Repeat the test on your phone, logged out.
If Something Breaks: Roll Back and Fix It on Staging
If the site shows errors after the switch, do not panic. Note the exact error message, then switch PHP back to the previous version in the same hosting panel to restore service — the change is reversible in about a minute, which makes the whole update far less risky than it sounds.
With the live site safe again, identify the incompatible plugin or theme by testing on a staging site, where visitors are not affected. Disable plugins one at a time on staging until the error disappears, then update or replace the culprit and repeat the PHP switch there. Once staging passes cleanly, repeat the switch on the live site with confidence.
The usual culprits are old plugins with outdated code. A site that cannot run current PHP is telling you something important about the health of its components, and the fix is almost always to update or replace them rather than to stay on old PHP. If a step fails twice, contact your host’s support team with a clear description of what you tried — they deal with this exact situation every day, and it often saves hours of frustration.

If the error you hit is a white screen or a server error rather than a plugin warning, it may not be PHP at all. Our guide on how to fix the WordPress 500 internal server error walks through the other common causes, including file permissions and corrupt configuration files.
- Roll back to the previous PHP version first to restore the live site.
- Identify the culprit on a staging copy, away from visitors.
- Update or replace the incompatible plugin or theme.
- Repeat the switch on staging, then on the live site.
Frequently Asked Questions
What PHP version should WordPress use in 2026?
A current PHP 8.x release, ideally 8.2 or 8.3, balances speed, security support, and plugin compatibility. Avoid brand-new experimental versions and anything in the PHP 7 range, which is end of life.
Will updating PHP break my site?
It can, if a theme or plugin contains old code, which is why you update everything first, back up, and test. Most well-maintained sites switch without a single visible problem.
How do I change PHP back if something breaks?
Return to the same PHP selector in your hosting panel and choose the previous version. The change is reversible in about a minute, which makes the whole update far less risky than it sounds.
Why does my dashboard still warn about PHP after updating?
Caching is the usual reason, so clear your site and browser cache and check Site Health again. Also confirm you changed the version for the correct domain, since multi-site hosts set PHP per domain.
How often should I check my PHP version?
Check it whenever you update WordPress or your host announces a PHP change, and at least twice a year as routine maintenance. Staying one stable release behind the newest is a reasonable, low-risk habit.
A Quick Word on Staying Current
You now have a clear, tested path through updating your PHP version from start to finish. None of the steps require advanced technical skills; they require patience, a good backup habit, and the willingness to test your work before declaring it done.
Work through the steps in order, check your results as a real visitor would, and keep notes as you go — even a few lines recording what you changed and when makes it far easier to undo a mistake, explain the problem to a support team, or repeat the same process on another website. If your site earns money or handles customer enquiries, schedule this work for your quietest hours and tell anyone affected what you are doing. A calm, planned change with a backup ready is almost always safer than a rushed fix attempted in the middle of a busy day.

