PHP 8.4 and WordPress: What to Test Before Upgrading
WordPress sites rely on PHP to run, so a PHP upgrade can affect how the site behaves, even when WordPress itself remains unchanged.
PHP 8.4 may bring useful improvements, but compatibility issues in plugins, themes, or custom code can disrupt everyday tasks.
That’s why testing before upgrading matters to anyone who manages a WordPress site: it helps uncover problems before they reach visitors.
Here’s what to check before moving to PHP 8.4.
Check Your Host Supports PHP 8.4
Before changing your WordPress site to PHP 8.4, check that your hosting provider supports it. Hosting provider support can vary by plan, so don’t assume every account includes the latest PHP version.
Check compatibility
- Sign in to your hosting dashboard and look for a PHP version or PHP settings page. Review the available versions, and confirm that PHP 8.4 appears.
- If you can’t find the option, check your host’s help pages or contact support. Ask whether your plan supports PHP 8.4, whether you can switch versions yourself, and if any limits apply.
- Review your host’s notes about the switch, including required extensions and any account-specific steps.
Before making changes, check your WordPress requirements and ask whether your host recommends a particular PHP configuration.
Don’t switch until you know how to select the version and reach support if the setting isn’t available.
Back Up Your WordPress Site
Before you upgrade, back up your WordPress files and export your database.
Then check that the backup is complete and usable, so you can restore your site if something goes wrong.
Back Up WordPress Files
To reduce the risk of losing your site during the PHP 8.4 upgrade, back up its files and database first.
- Use your hosting control panel’s file manager or an SFTP client to download your WordPress files. Include the entire site directory, especially
wp-content, which contains your themes, plugins, and uploads. - Save the copy somewhere outside your hosting account, such as your computer or secure cloud storage. Confirm the download completed and check that key folders and files are present.
- If you use a child theme or custom code, make sure those files are included. Don’t rely on a backup stored only on the same server, since a server problem could affect both copies.
A complete file backup supports file restoration if the upgrade causes problems, and media recovery if uploads go missing.
Keep the backup until you’ve tested the updated site.
Export Your Database
Your database stores posts, pages, comments, settings, and other site content, so export a copy before changing PHP versions. A Database export gives you a way to restore content if an upgrade causes problems.
You can use your host’s control panel, a database tool such as phpMyAdmin, or a trusted WordPress backup plugin.
- Find your database name and access details in your hosting panel or WordPress configuration.
- In phpMyAdmin, select the correct database, choose Export, and use the quick SQL option unless you need custom settings.
- Save the SQL snapshot to your computer, not only on the server. Give it a clear filename with your site name and the date.
If your host offers a database download, follow its instructions and note which database you exported. Keep the file alongside your WordPress file backup.
Verify Backup Integrity
A saved backup only helps if its files are complete and readable, so check the archive and database export before changing PHP. Backup archive validation confirms your copy isn’t damaged; a restoration drill shows you can use it.
| Check | What to do | Pass condition |
|---|---|---|
| Archive | List or test files | No errors |
| Database | Open the SQL export | Tables and content appear |
| Size | Compare with prior backups | No unexplained drop |
| Contents | Check uploads and plugins | Expected folders exist |
Don’t rely on a successful upload message alone. Extract the archive to a temporary folder, then inspect key files, such as wp-config.php and your uploads. Import the database into a separate test database, never over your live site. Confirm the site loads in staging, and keep the verified backup somewhere separate from your hosting account. If any check fails, create a fresh backup before upgrading PHP.
Test the Upgrade on a Staging Site
Before changing the live site, test the PHP 8.4 upgrade on a staging copy. Use your verified backup to create a separate site, then match the live site’s files, database, plugins, theme, and server settings as closely as possible. A production-like staging environment helps you find issues without affecting visitors.
Test the upgrade
- Ask your host to switch the staging site to PHP 8.4, or change its PHP version in your hosting panel.
- Browse key pages, submit forms, test search, and check the WordPress dashboard. Try important plugin features, too.
- Review error logs and watch for warnings, broken layouts, or failed tasks. Fix problems on staging, then repeat your checks.
Treat the test as a production deployment rehearsal. Record each step and allow time to resolve issues before scheduling the live change.
Check Your WordPress Version and Requirements
Next, check which WordPress version your site runs and confirm its PHP requirements, since compatibility depends on both. In your dashboard, open Updates to see your installed version.
You can also find it in the site’s source code or read the version number in WordPress files, if you have server access. These version identification methods help when the dashboard isn’t available.
Then compare your version with the official WordPress release history and requirements page. Check whether your release supports PHP 8.4, and note any minimum PHP version or recommended version listed.
If your site runs an old WordPress release, update WordPress first on your staging site, then verify the version again. Don’t assume a recent PHP version guarantees support for every older WordPress release. Keep a note of your current versions before making changes.
Test Plugins for PHP 8.4 Compatibility
With your WordPress version confirmed, check whether each plugin supports PHP 8.4 before changing your live site. Plugin PHP Compatibility depends on more than a plugin’s age, so verify support with its developer and test it yourself.
- List every active plugin, including must-use plugins, and note its version.
- Check each plugin’s release notes, support page, or changelog for PHP 8.4 compatibility. Contact the developer if details are unclear.
- Create a staging copy, switch it to PHP 8.4, then test key tasks such as checkout, forms, and login.
- Review your PHP error log for warnings, fatal errors, and messages about removed or deprecated features. This Deprecated Function Audit can reveal problems a quick visual check misses.
Update, replace, or disable plugins that fail testing. Retest after changes, and keep a backup before upgrading production.
Check Your Theme and Custom Code
Plugins aren’t the only code that can cause problems on PHP 8.4; your theme and custom code need testing too. Start by checking your theme’s release notes and support pages for PHP 8.4 updates or known issues. This gives you a first look at theme compatibility, but you’ll still need to test your site.
Check your theme and code
- Update your theme on a staging site, then review key pages, menus, forms, and mobile layouts. Look for broken features, warnings, or unexpected changes.
- Run a Custom code audit. Search your child theme, snippets, and site-specific plugins for old PHP patterns, then test each feature they support.
- Check your PHP error log after using the site. Fix errors with help from a developer if needed.
Keep notes on what you test and any fixes, so you can retest them later.
Upgrade WordPress to PHP 8.4
Once your theme and custom code pass testing, upgrade PHP on your hosting account, starting with your staging site if you have one.
Use your host’s control panel to select PHP 8.4, then save the change. If the option isn’t available, ask your provider when they plan to offer it.
Don’t change PHP and WordPress versions at the same time, so you can identify which change causes a problem.
- Back up your site and database before changing the PHP version.
- Confirm your host supports PHP 8.4 and lets you switch versions yourself.
- Apply the change to staging first, keeping your live site on its current version.
- Schedule the live upgrade for a quiet period, and note how to restore the previous PHP version.
PHP 8.4 performance and error handling improvements may benefit your setup, but compatibility should guide your timing.
Check Your Site After the Upgrade
After switching PHP to 8.4, check your site before making any other changes. Test the front end and WordPress admin on desktop and mobile.
After switching to PHP 8.4, check your site on desktop and mobile before making any other changes.
Open key pages, submit forms, search your content, and confirm images and menus load correctly.
Check key tasks
Run through your checkout flow from product selection to payment confirmation. Use a test payment method, and verify that order emails arrive.
If you run a membership or booking site, test sign-ups, renewals, and account access too.
Review your error logs for new warnings or fatal errors. Check your host’s PHP logs and WordPress tools, then note the time and page when an issue appears.
Retest any affected feature.
Ask a colleague or a few customers to try common tasks, and watch for problems you might miss. Gather user feedback, fix clear issues, and keep a record of changes before updating plugins or themes.
Frequently Asked Questions
What Is PHP, and Why Does Its Version Matter for WordPress?
PHP is a server side scripting language that powers WordPress features. You’ll find PHP syntax fundamentals in themes and plugins; your PHP version matters because it affects compatibility, security, performance, and whether your site works reliably.
How Long Will PHP 8.4 Receive Security Updates?
According to the PHP support schedule, PHP 8.4 receives security updates through December 31, 2028. Check the PHP 8.4 security support timeline and PHP 8.4 end of life dates before planning upgrades, so you can keep your server protected and supported.
Can I Switch Back to an Older PHP Version After Upgrading?
Yes, you can switch back if your host supports it. Review Rollback Options first, and weigh Downgrade Risks: older PHP may lack security fixes or compatibility. Back up your site, then test everything after changing versions.
Will Upgrading PHP 8.4 Improve My Site’s Speed?
PHP 8.4 may speed up your site, but benchmark results don’t guarantee gains. Your hosting performance factors, plugins, theme, and database often matter more, so test your site before upgrading.
Does PHP 8.4 Change How WordPress Handles Data Privacy?
PHP 8.4 doesn’t change WordPress privacy features or personal data handling by itself. You’ll still manage consent, retention, and data requests through WordPress and your plugins; test compatibility to make certain those tools continue working correctly.
- PHP compatibility
- Website testing
- WordPress maintenance
About the author
Vladimir Mrkela
Senior WordPress Developer
I’m a senior WordPress developer and co-founder of Pixel Industry. I’ve spent more than 12 years building websites, custom plugins, and integrations for all kinds of projects. I enjoy working on complex architecture, solving tricky problems, and sharing what I learn along the way.