Skip to content
Blog

Which PHP version should WordPress run?

Which PHP version should your WordPress site run? How to choose between PHP 8.3 and 8.5, test it on staging, and what happens when a version retires.

The WP Waterfall team · Guides

PHP is the language WordPress is written in, and the version your site runs decides its speed and its safety. This guide answers which PHP version WordPress should run today, how to try a newer one without risk, and what WP Waterfall does when a version stops getting security fixes.

Which PHP version should WordPress run today?

The newest one your plugins support. On WP Waterfall you can pick any version from 8.3 to 8.5, and a new site starts on 8.5. Newer versions get security fixes for longer. The only reason to stay back is a plugin or theme that breaks on the new version.

PHP 8.1 reached end of life in December 2025. End of life means no more security fixes, so you cannot pick it for a new site or move a site to it. The last day of security fixes for PHP 8.2 is December 31, 2026, and WP Waterfall closed it to new sites the same way. A site that moves in from a host that runs 8.1 or 8.2 may keep its version, so the move changes one thing at a time. WP Waterfall removes both versions on March 31, 2027, and the PHP card shows the day.

The PHP card lists the versions you can pick and the day an old one leaves.

How do I try a newer version safely?

Change it on staging first. Staging is a private copy of your site that search engines cannot see.

  1. Open the site, pick staging in the top bar, and choose Tools.
  2. On the PHP card, click Modify, then Change version, and pick 8.5.
  3. Save, and wait for the job to finish.

Then click around: the home page, a product or a post, wp-admin, and anything a plugin draws. Check the PHP log on the Logs tab for new warnings. A warning about a "deprecated" feature means a plugin uses something PHP will remove later. It still runs, and it is a hint to update that plugin.

When staging looks right, make the same change on live. WP Waterfall takes a system snapshot first and keeps it for 48 hours. Then it asks your home page on the new version. If the page answers with a server error, WP Waterfall switches back by itself and shows you the reason. Most often the reason is one plugin or theme that has not been updated for the new version.

The version change runs as a job, and the home page check decides whether it stays.

What usually breaks on a newer PHP?

Old code. A common example on PHP 8.2 and later is a plugin that sets a property on an object without declaring it first:

class Cart_Totals {
    // A declared property is fine on every PHP version.
    public float $subtotal = 0;
}

$totals = new Cart_Totals();
$totals->subtotal = 42.5;   // fine
$totals->discount = 2.5;    // a deprecation warning on 8.2, because nothing declared it

A warning is not a crash. A plugin that calls a function PHP removed is a crash, and that is the case the home page check catches. Either way, the fix is the same: update the plugin, or replace it with one that is maintained.

What happens when a version retires?

Turn on "Upgrade automatically before a version reaches end of life" in the Modify dialog. The day after a version stops getting security fixes, WP Waterfall moves the site to the next supported version, runs the same home page check, and rolls back if it fails. Sites on a version that is leaving get an email 60 days before and again in the last week, so nothing happens by surprise.

Many sites can change at once. Tick them in the Sites list and pick the action, and WP Waterfall runs one job per site and shows each result. More on the PHP settings is in Change PHP settings.

What to do next

Open the PHP card of your staging environment and pick PHP 8.5 today. If it holds up for a week, move live.

Read next

Try what you just read about.

See it in your own dashboard.