At a glance
PHP is the language WordPress and WooCommerce run on. Each PHP version gets security fixes for a fixed time, then none. PHP 8.2’s security support ends on 31 December 2026. After that, newly found holes in PHP 8.2 stay open. Moving to PHP 8.3 or 8.4 is usually quick, but a store has one thing a blog doesn’t: a checkout that must keep working. Here is how to do it without finding out from a customer.
Step 1: Check what you run today
In WordPress, go to WooCommerce > Status. The System status report shows your PHP version, your WordPress and WooCommerce versions, and every active plugin with its version. Copy the report; you’ll want it later. Tools > Site Health also shows the PHP version and warns when it’s out of date.
Step 2: Check that your plugins and theme are ready
- Update WordPress, WooCommerce, every plugin and the theme first, on your current PHP version. Most PHP 8.3 and 8.4 fixes ship in normal plugin updates.
- Look for plugins that haven’t been updated in over a year. They’re the most likely to fail. Find a maintained replacement before you switch.
- Custom code (a child theme’s functions.php, a custom plugin) needs a developer’s eye. PHP 8 versions turn some old warnings into errors.
Step 3: Back up, then make a staging copy
Take a full backup (files and database) and make sure you can restore it. Then make a staging copy: a private clone of your store on the same host. Most hosts have a one-click staging tool. Turn off outgoing emails on staging, and put payment gateways in test mode, so no customer gets a test email and no card is charged.
Step 4: Switch PHP on staging and watch the log
Change the PHP version for the staging site in your hosting panel. Turn on error logging (WP_DEBUG and WP_DEBUG_LOG in wp-config.php, with WP_DEBUG_DISPLAY off). Then click through the store and read wp-content/debug.log. Deprecation notices can wait. Fatal errors and warnings from the checkout can’t.
Step 5: Test the paths that make money
- Browse the shop, search, filter and open product pages (simple and variable).
- Add to cart, change quantities, apply a coupon.
- Check out as a guest and as a logged-in customer, with each payment method in test mode.
- Check the order emails, invoices and the order in the admin.
- Log in to My Account and view an order.
- In the admin: edit a product, refund a test order, open the reports.
- Go to WooCommerce > Status > Scheduled Actions and look for new failed actions (subscriptions, emails, feeds).
Write down anything that breaks, fix it on staging, and test again.
Step 6: Go live at a quiet hour
Pick your quietest hour. Take a fresh backup, switch the live site’s PHP version, then run the shortest version of Step 5 straight away: one product, one cart, one test-mode checkout or a small real order you refund.
Step 7: Know your rollback
If checkout breaks after the switch, set the PHP version back in your hosting panel. That takes a minute and undoes the change. Then fix the problem on staging. Don’t restore a backup unless data was damaged, because a restore loses the orders placed since.
Which version: 8.3 or 8.4?
Choose the newest version that your host offers and that every plugin on your store supports. PHP 8.3 is the safe choice for most stores today. PHP 8.4 is fine if all your plugins list it. Both are well ahead of the 2026 deadline.
Signs you should get help
- Custom code you didn’t write, or a developer who’s no longer around.
- A host without staging.
- Fatal errors on staging that point inside a plugin.
- A store that can’t afford an hour of broken checkout.
Was this page helpful?
Thanks: every answer helps us improve this page.