WordPress PHP Version: How to Check and Update It on Any Host
By WP Vanguard Team
Your WordPress PHP version is the version of PHP, the language WordPress is written in, that your server uses to run your site. You don't update it from the WordPress dashboard. It's set by your host, or by you if you run your own server. This guide shows you how to check it in about a minute, which version to pick, and how to change it on the hosts most WordPress sites use.
Here's the short answer for anyone in a hurry. Run PHP 8.3 or 8.4. Treat PHP 8.2 as the bare minimum, because it stops getting security fixes on December 31, 2026. Anything older gets no security fixes at all, and that includes the critical PHP flaws patched on October 21.
On this page
8.1 or older gets no security fixes today, and 8.2 stops on December 31: together 60% of sites. WordPress.org stats, October 22, 2026.
How to check your WordPress PHP version
You don't need a developer for this. Pick whichever of these suits you.
From the WordPress dashboard (easiest). Go to Tools > Site Health, click the Info tab, then open the Server section. The line that says "PHP version" is the one your site really runs. The Status tab on the same screen also warns you when the version is out of date.
From your hosting panel. Every host on the list below shows the current version on the same screen where you change it.
From the command line (advanced). If you use WP-CLI, wp eval 'echo PHP_VERSION;' prints a version. Be careful with it, because it reports the PHP your terminal uses, and on many servers that's a different install from the one serving your site. Site Health reads the version from inside a real web request, so trust it when the two disagree.
Write down the full number, such as 8.3.36, not just 8.3. The last part is the patch level, and it tells you whether your host has applied the latest security fixes.
Which PHP version WordPress needs
WordPress itself recommends PHP 8.3 or newer on its requirements page. It will still install on PHP 7.4, but that minimum exists for old servers that can't move. It isn't a recommendation.
| Your WordPress PHP version | What to do |
|---|---|
| 7.x, 8.0 or 8.1 | Update now. No security fixes at all. |
| 8.2 | Update before December 31, 2026. |
| 8.3 | Fine until the end of 2027. |
| 8.4 | Best default for most sites today. |
| 8.5 | Fine once your plugins and theme are tested on it. |
For the full timeline, including PHP 8.6 arriving on November 19, see our guide to the latest PHP version and end-of-life dates.
Key finding
Most hosts let you change the PHP version yourself in under a minute. The safe way is to take a backup, try the new version on staging, then switch the live site and check it.
Before you update PHP
A PHP update rarely breaks WordPress core, which supports PHP 8.1 through 8.5 in its current releases. When something breaks, it's almost always an old plugin or theme. Five minutes of preparation saves a bad afternoon:
- Take a backup of files and database, or confirm your host's daily backup is recent.
- Update WordPress, plugins and themes first. Newer releases fix most PHP compatibility problems.
- Look for abandoned plugins. A plugin with no update in two years is the most likely thing to break. Our guide to abandoned and closed plugins shows how to spot them.
- Use staging if your host offers it. Switch the staging copy first and click around.
- Check whether you can go back. Most hosts let you switch back to the old version. Hostinger doesn't let you downgrade outside the same session, and WP Engine removes old versions entirely, so test before you switch there.
How to update PHP on shared hosting and control panels
These steps come from each host's own documentation, linked in every row. Menus change, so if a screen looks different, follow the host's link.
| Host or panel | Where to change it |
|---|---|
| cPanel | MultiPHP Manager: tick your domain, pick from the PHP Version menu, click Apply. If you can't find it, your host has hidden it, so ask support. |
| Plesk | Websites & Domains, your domain, PHP. Pick the version and click OK. |
| DirectAdmin | Domain Setup page, PHP version selector. |
| Hostinger | Websites, Dashboard next to the site, PHP Configuration, pick the version, Update. Offers 8.2 to 8.5. |
| SiteGround | Site Tools, Devs, PHP Manager, the pencil icon next to the PHP version. |
| Bluehost | Websites, Manage Site, Settings tab, PHP Version, Change PHP Version, Apply. |
| GoDaddy Managed WordPress | My Products, Managed Hosting for WordPress, Manage All, the site's Settings, Production Site, PHP version, Change. |
| GoDaddy cPanel hosting | In the hosting's Settings, under server settings, next to PHP Version. |
| IONOS | Hosting, the PHP tile, tick your domains, Change PHP version. |
SiteGround deserves a note. Its Managed PHP option, on by default for new accounts, moves your site to a newer PHP once SiteGround considers it mature. If you picked a version by hand, SiteGround leaves it alone, which means nobody moves you off an old version unless you do it.
How to update PHP on managed WordPress hosting
Managed hosts handle the server, but you still choose the version on most of them.
| Host | Where to change it | Automatic updates |
|---|---|---|
| Kinsta | MyKinsta, Sites, your site, Tools, PHP settings, Change | On by default, moves you up when a version reaches end of life |
| WP Engine | User Portal, Sites, the environment, Updates, PHP, click the version | Forced. Old versions are removed and upgrades can't be deferred |
| WordPress.com | Hosting Dashboard, your site, Settings, Server, PHP, Save | Required updates are applied for you |
| Pressable | Sites, your site, PHP Version dropdown | Not stated |
| Flywheel | Your site, Advanced tab, PHP control in the right sidebar | Not stated. New sites start on 8.4 |
| Pantheon | Set php_version in pantheon.yml and commit it |
Moved automatically at removal, with 90 days' notice |
| Cloudways | Server level under Server Management, Settings & Packages. Per-application switching is in preview | Not stated |
Automatic upgrades sound like the end of the matter, but they cut both ways. A forced jump to a new PHP version can break an old plugin overnight with no warning on your side. Keep an eye on your host's emails, and keep your plugins current so the jump is uneventful.
How to update PHP on your own server (advanced)
On a VPS or dedicated server, the PHP update is yours. Server panels make it a dropdown: SpinupWP has it under the site's Settings, GridPane under the site's PHP tab, and RunCloud in the web application's settings.
Without a panel, on Ubuntu with the widely used ondrej/php repository (Debian uses packages.sury.org):
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php8.4-fpm php8.4-mysql php8.4-curl php8.4-gd \
php8.4-mbstring php8.4-xml php8.4-zip php8.4-intl php8.4-imagick
Before you switch, copy any custom settings such as memory_limit and upload_max_filesize from your old php.ini into /etc/php/8.4/fpm/php.ini. Then point Nginx at the new FPM socket in your site's server block:
fastcgi_pass unix:/run/php/php8.4-fpm.sock;
Test the config, reload Nginx, and switch the command-line PHP so WP-CLI and cron jobs run the same version:
sudo nginx -t && sudo systemctl reload nginx
sudo update-alternatives --set php /usr/bin/php8.4
On AlmaLinux or Rocky 8 and 9 with the Remi repository:
sudo dnf module reset php
sudo dnf module enable php:remi-8.4
sudo dnf update
On Docker, change the image tag, for example from wordpress:php8.2-fpm to wordpress:php8.4-fpm, and redeploy.
Two things people forget. Restart PHP-FPM after any update, because running workers keep the old code in memory. And turn off expose_php in php.ini, so your server stops telling everyone its exact PHP version in the X-Powered-By header.
After you update: what to check
Spend five minutes on the live site straight after the switch:
- Load the home page, a post and a page while logged out.
- Log in and open the dashboard, the editor and your main plugin screens.
- Test anything that takes input or money: contact forms, checkout, membership sign-up.
- Open Tools > Site Health and confirm the new version shows.
- Check the PHP error log for new fatal errors. A burst of deprecation notices is normal and harmless. Fatal errors aren't.
If something breaks, switch back to the previous version from the same screen, then update or replace the plugin that caused it. Developers can scan a codebase ahead of time with PHPCompatibilityWP for PHP_CodeSniffer, which flags code that won't run on a chosen version.
Check your site
Our free scan at wpvanguard.com reports the PHP version your server announces and tells you whether it's missing the latest security fixes. It also checks your plugins against known vulnerabilities and walks through the rest of our WordPress security checklist. If you look after many sites, the weekly patch list keeps the plugin side in view.
References
- WordPress requirements
- PHP compatibility and WordPress versions
- PHP supported versions
- WordPress.org PHP version statistics
- PHP security release, October 21, 2026
- Host documentation is linked in each table row above.
Related reading
Get weekly WordPress security tips
Vulnerability alerts, plugin updates, and security guides. No spam. Unsubscribe any time.