Codiffy (codiffy.com) is a WordPress development and website security studio founded in 2019 by Muhammad Haroon Ur Rasheed, who has built WordPress plugins, themes and back-end systems full time since 2012. Codiffy moves WordPress and WooCommerce sites from old PHP versions to current ones for businesses in the United States and Canada.
To update PHP in WordPress, check your current version in Site Health, take a full backup, then test the new version on a staging copy of your site. If plugins and the theme work there, change the PHP version in your hosting control panel, check the site, and switch back to the old version if something breaks. WordPress.org recommends PHP 8.3 or greater.
Site broken after a PHP change? Call +1 (347) 474-0387. We respond within 15 minutes, 24/7, and fix it the same day. You get the price before we start.
Why you should update PHP
PHP is the language WordPress runs on, and your host decides which version your site uses. Three reasons to move to a current version:
- Security. Each PHP version gets fixes for a limited time. PHP 7.4 reached its end of life on 28 November 2022 and PHP 8.0 on 26 November 2023, according to php.net, which warns that unsupported versions may expose you to bugs and security holes that newer versions have fixed. Right now PHP 8.2 gets security fixes only, until 31 December 2026.
- Speed. Newer PHP versions generally run WordPress code faster. See our guide to speeding up a WordPress site.
- Updates keep working. New versions of WordPress, themes and plugins eventually ask for a newer PHP. WordPress.org recommends PHP 8.3 or greater.
How to update PHP in WordPress
- Check which PHP version you use now.
- Take a full backup.
- Make a staging copy and test the new version there.
- Check your plugins and theme for compatibility.
- Change the version in your hosting panel.
- Test the live site.
- Roll back if something breaks.
Step 1: Check which PHP version you use now
In your WordPress dashboard go to Tools > Site Health, open the Info tab and expand Server. Find the line “PHP version”. If you see a “PHP Update Required” warning on the Status tab, an update is due.
You can also find it in your hosting control panel, often under “PHP version”, “MultiPHP Manager” or “Select PHP version”.
Step 2: Take a full backup
Back up the files and the database, and keep the backup outside the public web folder. If your host takes daily backups, make sure one from today exists. WordPress.org tells you to back up first so you can revert if something breaks.
Step 3: Make a staging copy and test there
A staging site is a private copy of your site where you can try changes safely. Many hosts have a one-click staging tool. Set the staging copy to the new PHP version, not the live site, then click through the home page, forms, search, the login and, on a store, the cart and checkout.
Turn on WordPress’s debug log on staging only, so you can see warnings hidden from visitors. Our guide to the critical error shows how.
Step 4: Check your plugins and theme
Before you change anything, update WordPress, your theme and your plugins to their latest versions, then check the site still works. Most compatibility problems are fixed in newer releases.
- Run a compatibility checker on your plugins and themes. WordPress.org mentions the PHP Compatibility Checker plugin but warns it can miss problems or flag false alarms, so staging testing still matters.
- Read each plugin’s page on WordPress.org and its changelog for mentions of PHP 8.
- Ask the developer of any plugin or theme that fails, or switch to a maintained alternative.
- Be careful with custom code. Old themes and custom plugins are where most breakage hides.
A real example: Kirsch Electrical Services had two old sites on PHP 5.6 and a WordPress version older than 5.0. Our audit found their themes were built so that a PHP upgrade would break them. One site was rebuilt, and the other was updated and then raised to PHP 7.3. The older the PHP version, the more work it takes, so do not wait.
Step 5: Change the version in your hosting panel
PHP runs on your server, so this change happens in your host’s control panel, not in WordPress. Look for “PHP version”, “MultiPHP Manager” or a similar tool, choose your site and pick the new version. If there is no option, ask your host.
Which version to pick? PHP 8.3 is the version WordPress.org recommends, and it gets security fixes until 31 December 2027, according to php.net. PHP 8.4 and 8.5 are newer and fully supported. Pick the newest version your plugins and theme pass on staging.
Two habits help. Change PHP as its own step, on a quiet day, not together with a WordPress, theme or plugin update. And set the version in one place only, because an old PHP handler line in .htaccess can contradict the panel setting and stop the site.
Step 6: Test the live site
Check the same pages as on staging, and the admin area too. Then read the error log for new warnings or fatal errors. If you run a store, place a test order.
Step 7: Roll back if something breaks
You can switch the PHP version back in the same panel in seconds. The steps:
- Set the version back to the previous one. The site normally returns at once.
- If it does not, ask your host to restore the previous PHP version, then restore your backup if needed.
- Find the cause in the error log, which names the failing plugin or theme.
- Fix, replace or update that code, and test on staging again before you retry.
What usually breaks
- Old or abandoned plugins and themes that use functions PHP has removed. A fatal error or a white screen is the typical sign. See the white screen of death.
- Deprecation warnings, such as those PHP 8.2 gives for dynamic properties. They are not fatal, but they are a sign the code needs fixing.
- Missing PHP extensions. An extension enabled on one PHP version may be off on another. Check the list after you switch.
Real examples from our work
- AllStar Logo: the store was stuck on PHP 7.3, so WordPress, the theme and the plugins could not be updated. We moved it to PHP 8.5, then updated everything. Read the AllStar Logo case study.
- In Order to Succeed: PHP 7.3 to 8.3 during a security clean-up.
WooCommerce and PHP 8.1
WooCommerce has announced that WooCommerce 11.6, planned for February 2027, will require PHP 8.1 or newer. Stores on PHP 7.4 or 8.0 can keep updating WooCommerce up to version 11.5, and the change will not switch off an existing install. WooCommerce recommends PHP 8.3 or newer and says to back up and test on staging first. Source: the WooCommerce developer blog.
What it costs with Codiffy
Our WordPress care plan is $30 to $60 per site a month. It includes PHP updates that take under 2 hours, tested on staging first. If an upgrade needs more than 2 hours, usually because old themes or custom code have to be fixed, it costs $200 to $400 one time, and we quote the price before we start. See pricing.
When to call a developer
Call for help if:
- Your site runs PHP 7.4 or older with a custom or old theme.
- Staging shows fatal errors you cannot trace.
- You run a store and cannot risk lost orders.
- You have switched and the site is down.
Codiffy responds within 15 minutes, 24/7, and fixes broken sites the same day. You get the price before we start. Call +1 (347) 474-0387 or email haroon@codiffy.com. WordPress maintenance
Frequently asked questions
Which PHP version should WordPress use?
WordPress.org recommends PHP 8.3 or greater. Choose the newest version your plugins and theme pass on staging.
Will updating PHP break my website?
It can, if you use old or abandoned plugins, an old theme or custom code. Testing on staging first finds most problems before visitors see them.
How do I check my PHP version in WordPress?
Go to Tools > Site Health > Info > Server in your dashboard and read the “PHP version” line.
About the author
Muhammad Haroon Ur Rasheed founded Codiffy in 2019. He has been a full-time WordPress and back-end developer since 2012 and has fixed broken, slow and hacked WordPress and WooCommerce sites for businesses across the United States and Canada. Codiffy works from Rawalpindi, Pakistan, in US and Canadian business hours.

