Why does the PHP version of a WordPress site matter?

PHP is the language WordPress runs on, and each PHP version only gets security fixes for a limited time, so a site on an old version stays exposed even when WordPress and every plugin are up to date. Upgrading is routine, but it can take a whole site down in one click, so it deserves a short, planned check first.

WordPress recommends PHP 8.3 or greater. It still works with PHP 7.4 and above in legacy environments, but WordPress notes that those versions have reached their official end of life and may expose your site to security vulnerabilities (WordPress requirements). PHP gives each release branch two years of active support, then two more years of fixes for critical security issues only, after which the branch reaches end of life (PHP supported versions). These are the dates for the current branches:

PHP versionSecurity fixes untilFor a WordPress site
8.1Ended 31 Dec 2025 (PHP end of life)Unsupported: upgrade now
8.231 Dec 2026 (php.net)Plan the upgrade before that date
8.331 Dec 2027The version WordPress recommends as a minimum
8.431 Dec 2028Supported
8.531 Dec 2029The newest branch

WordPress itself is rarely the problem. The core team's compatibility table lists WordPress 7.1 as working with every PHP version from 7.4 to 8.5, and the same page acknowledges that WordPress is rarely used without any theme or plugins (WordPress core handbook). Your site is WordPress plus everything installed on it, and that whole set is what has to be checked.

What usually breaks when PHP is upgraded?

The risk sits in the code around WordPress:

  • Plugins that are no longer maintained. A plugin can declare "The minimum required PHP version" in its header (WordPress plugin headers), but there is no field for the newest version it supports, so an abandoned plugin gives no warning. Its last update date tells you more.
  • Old or heavily customised themes, especially premium themes that stopped getting updates.
  • Custom code: snippets in functions.php, small custom plugins and anything a previous developer added. Nobody has tested it except whoever wrote it.

Not every message in the logs is a break. WP Engine explains that deprecation notices in the error logs after an upgrade refer to PHP features that are being replaced, and that those parts of the site will typically work for now (WP Engine PHP upgrade guide). Fatal errors need fixing before the live switch. Deprecation notices go on a list for the next upgrade.

What should a developer check before the upgrade?

  1. Record the starting point. Under Tools > Site Health, the Info tab has a Server section with the PHP setup and an export feature that copies all the information about your site to the clipboard (Site Health screen). Save it, so you know exactly what changed.
  2. Take a fresh backup of the files and the database, and confirm how to restore it. The host pages focus on testing, so I add this step myself on every upgrade.
  3. Test on a staging copy first. Kinsta recommends verifying that your theme, plugins and any custom code are compatible, and testing the change on a staging site before the live one (Kinsta: update PHP). My guide to staging sites explains how a staging copy works.
  4. Update WordPress, plugins and the theme on staging, then switch PHP there. Many compatibility fixes arrive as ordinary plugin updates.
  5. Turn on logging on staging and click through everything that matters: forms, checkout, logins, search and the admin screens your team uses. With WP_DEBUG_LOG on, the log is saved to debug.log in the content directory, usually wp-content/debug.log, and WordPress does not recommend its debug tools on live sites (Debugging in WordPress).
  6. Read the log. Fix fatal errors, list deprecation notices and replace any plugin that has no fix.
  7. Agree the rollback: who switches back, how quickly, and until when your host still offers the old version.

If logging was ever switched on for the live site, turn it off again: Site Health flags a site that writes errors to a potentially public file (Site Health screen).

Where do Kinsta, WP Engine and SiteGround switch the PHP version?

All three let you change it from the hosting dashboard, and all three can also upgrade the site on their own schedule. So the real choice is whether you test first, or the host upgrades a site nobody has tested.

Kinsta: MyKinsta PHP settings

Go to Sites, choose the site, open Tools and click Change under PHP settings, then pick a PHP version and whether Automatic PHP Updates is on (Kinsta docs). Kinsta says visitors will not experience any downtime, though the WordPress dashboard may be down for a couple of seconds, and the update usually completes within 3 minutes. Its oldest officially supported version is 8.1, and when a version reaches end of life, Kinsta automatically upgrades the site to the latest supported version.

WP Engine: User Portal PHP selector

Open the Sites page, select the environment, find PHP in the Updates section, click the version number, choose a version and confirm (WP Engine PHP guide). Before that, the PHP Test Driver lets you view the site on another version: a special cookie means only your browser sees the site on that version, and it expires after a day or when you close the browser. WP Engine also says that when a version reaches end of life it upgrades all websites automatically, and those upgrades cannot be deferred.

The Test Driver is a quick first look, not a full test. Only your own browser session runs on the new version, so I still use a staging or development copy, which WP Engine lists as the other testing option, for forms, payments and anything that runs in the background.

SiteGround: Site Tools PHP Manager

SiteGround's Managed PHP periodically updates the default PHP version on its servers and is enabled by default for new accounts. To choose a version by hand, go to Site Tools > Devs > PHP Manager and use the pencil icon in the PHP version tab. Once you do, SiteGround no longer updates that site's PHP automatically (SiteGround: Managed PHP), so a manual choice means you own every future upgrade.

Who should flip the switch, and what should you ask for?

I prefer the developer who tested on staging to switch the live site at a quiet hour and check it straight after. Ask for a short written report: the versions before and after, what was tested, what was fixed, which plugins were replaced, the deprecation notices left for next time and the rollback steps. That report is also where the next upgrade starts.

On Upwork this fits a small fixed-price contract. Upwork asks for each milestone to be clear and specific, with its amount, deliverables and deadline agreed before work starts (Upwork: milestones in fixed-price jobs), and I usually split it into the staging test with fixes, then the live switch with a next-day check.

If the site has no regular care yet, a maintenance and security plan keeps PHP on the list next to updates and backups, and server and hosting management covers hosting you run yourself. When plugins or themes need real code changes, that is WordPress development work.