Menu

How to test a WordPress site on a new PHP version before upgrading
📰

How to test a WordPress site on a new PHP version before upgrading

DEV Community: php·Markus Delos Santos·about 6 hours ago
#srpULTR8
#devto#dev#wordpress#version#staging
Long article (1351 words) — no AI summary yet.
Reading 0:00
15s threshold

You want to move WordPress to a newer PHP version, but core support doesn't tell you if your themes or plugins will work. Back up and update everything first, switch PHP on a staging site, and log errors before touching live. Here's the exact order to test the upgrade without breaking your live site.

Check your current PHP version and WordPress core support

Start by checking which PHP version your site runs today. From the WordPress Dashboard, open Tools > Site Health and select the Info tab. Expand the Server section and scroll down to PHP version.

If that number is PHP 8.3 or higher, you don't need to update PHP right now. Anything lower is below the recommended version and runs on an outdated and insecure PHP version, so it's time to update.

Each PHP release branch gets two years of active support from its initial stable release. After those two years, it gets two more years for critical security issues only. Once four years are up, the branch reaches end of life and is no longer supported.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.