How to change the PHP version for WordPress, and what to check first
· The AYT team · 5 min read

A WordPress site's PHP version is changed from your hosting panel, not from WordPress. You can see it in wp-admin under Tools → Site Health → Info → Server. WordPress recommends PHP 8.3 or newer. Before you switch, make a backup, update your plugins and theme, and test the new version on a staging copy. If errors appear, you switch back from the same place in seconds.
Which PHP version to choose
Each PHP version gets two years of regular updates and then two years of security updates only. After that it gets nothing, and any vulnerability found then stays open. The situation on 4 December 2026, according to php.net:
| PHP version | Security updates until | Notes |
|---|---|---|
| 8.1 and older | ended | change it as soon as you can |
| 8.2 | 31 December 2026 | a few weeks left |
| 8.3 | 31 December 2027 | the minimum version WordPress recommends |
| 8.4 | 31 December 2028 | a good choice for most sites |
| 8.5 | 31 December 2029 | compatible with WordPress 7.0 and 7.1 |
| 8.6 | 31 December 2030 | released 19 November 2026; WordPress doesn't list it in its compatibility table yet |
According to the WordPress compatibility table, WordPress 7.0 and 7.1 (the current version) run on PHP 7.4 to 8.5. WordPress core is only part of it: your plugins and theme also have to support the version you pick.
Our recommendation: PHP 8.4 for most sites, or 8.3 if an important plugin doesn't support 8.4 yet. If you're on 8.2 or older, plan the switch now.
How to find your current version
In wp-admin, open Tools → Site Health. If the version is old, WordPress shows a warning right on the "Status" tab. The exact version is on the "Info" tab, in the "Server" section. You can also see it in your hosting panel, in the domain's PHP settings.
Before you change the version
- Make a full backup of the site (files and database). See the WordPress backup guide.
- Update WordPress, every plugin and the theme. Most errors after a PHP change come from old plugins that their authors have already fixed in newer versions.
- Look for abandoned plugins with no updates for over a year. Replace those before the switch, not after.
- If you have custom code (your own theme, a plugin a developer built for you), ask whether it has been tested on the new version.
- Test the new version on a staging site, if your host allows a different PHP version on staging.
How to change the PHP version from your host
The steps vary a little between panels, but the idea is the same:
- Sign in to your hosting panel and open the PHP versions page (in cPanel it's called MultiPHP Manager).
- Tick the site's domain.
- Pick the new version from the list and apply it.
- Open the site in a private window: the home page, a few inner pages, wp-admin.
- Test the forms and, for a store, the cart and checkout.
- Check the PHP error log over the next few hours, once real visitors have used the site.
The domain's PHP settings (memory_limit, upload_max_filesize and others) can be tied to the version. After the switch, check they are still what you had. Details in the articles on memory_limit and upload_max_filesize.
If errors appear after the switch
First, switch back to the old version from the same screen. The site recovers at once, and you look for the cause without pressure.
Then read the error log. The type of message matters:
PHP DeprecatedandPHP Warning: warnings. The site works, but the code uses something that will go away. Tell the plugin's author.PHP Fatal error: the site or a page stops. The message names the file, and its path tells you the plugin (wp-content/plugins/plugin-name/...) or the theme.
Common examples when moving from PHP 7 to PHP 8: Call to undefined function each() or create_function(), functions removed in PHP 8.0. A plugin that still uses them hasn't been updated in years and needs replacing.
If you see a blank page or a 500 error, follow the 500 error guide.
Frequently asked questions
Does a newer PHP make the site faster?
Usually, yes: each PHP 8 version brought performance improvements. The real gain depends on the site; a site that's slow because of a plugin or large images stays slow. See why a WordPress site is slow.
Can different sites run different PHP versions?
Yes, with most hosts you pick the version per domain. That helps when an old site needs more time to move, while the others can already run on a new version.
What if a plugin I need doesn't work on the new PHP?
Ask the author whether an update is coming. If the plugin is abandoned, look for an alternative. You can stay on an older version for a while, but not past the date it stops getting security updates.
PHP versions on AYT hosting
On AYT you choose the PHP version for each site, from those installed on the server, and change it any time from the panel's PHP versions page. Each account runs its own isolated PHP, with OPcache and JIT on PHP 8. You change the php.ini settings (memory_limit, upload_max_filesize, max_execution_time and others) and the PHP extensions from the panel too.

If you want to test first, create a staging copy from the WordPress Toolkit. The plans are on the WordPress hosting page.
