By Greg Nowak. Updated 20 November 2026.
Your WordPress homepage can look perfectly healthy while the PHP version underneath it has stopped receiving security fixes. Equally, switching PHP versions can leave the homepage working while breaking enquiries, checkout or scheduled imports. For a business, both situations deserve attention.
A sensible upgrade starts with three decisions: which supported version suits the whole site, what must pass testing, and how the team will recover if production behaves differently. Here is how I would approach it.
WordPress’s minimum is not a maintenance policy
The official WordPress requirements recommend PHP 8.3 or newer, while allowing legacy installations to run on PHP 7.4 and warning about end-of-life software. Compatibility tells you whether WordPress can run; it does not tell you whether the underlying runtime still receives fixes.
There are also two separate compatibility questions. WordPress core may support your target PHP version, but your theme, plugins, custom code and server extensions must work with it too. A hosting control panel offering a version is only the beginning of that assessment.
Which PHP version should you choose now?
As of 20 November 2026, PHP 8.2 is approaching its upstream security-support deadline. The PHP support calendar gives the following dates. The recommendations are my starting point for planning, subject to testing.
| PHP branch | Security support ends | Upgrade decision |
|---|---|---|
| 8.2 | 31 December 2026 | Arrange an upgrade; use only as a short bridge. |
| 8.3 | 31 December 2027 | Fallback where a dependency blocks newer branches. |
| 8.4 | 31 December 2028 | Practical candidate where dependencies are ready. |
| 8.5 | 31 December 2029 | First candidate to assess for a longer maintenance window. |
| 8.6 | 31 December 2030 | Evaluate separately; confirm WordPress and dependency compatibility. |
The current WordPress compatibility table lists PHP versions through 8.5, including compatibility with WordPress 7.1. It does not yet list 8.6. That omission is not proof of incompatibility, but it leaves a gap to resolve before choosing it for production.
I would assess 8.5 first, then 8.4 if a dependency prevents that move. If you settle on 8.3, record the blocker, who will resolve it and when you will review it. Avoid turning a temporary compromise into another forgotten server setting.
Find out what you are actually upgrading
Give one person responsibility for coordinating hosting access, developer fixes, business testing and deployment. That might be your operations lead, agency or an external project manager. Everyone should know who can approve the switch and who can reverse it.
For each site, record WordPress, plugin and theme versions, custom code, required PHP extensions and the PHP version serving web requests. Check command-line scripts and scheduled jobs separately: they can use a different PHP executable. Also identify shared hosting configurations where one runtime change affects several sites.
List abandoned plugins and unavailable vendors early. A dependency with no credible upgrade path needs a repair or replacement decision, with time allowed for testing.
Test business outcomes, not just pages
Create a protected staging copy with representative content, matching PHP extensions and relevant server settings. Prevent indexing and live emails, payments, webhooks or other external writes. Update dependencies and test on staging before changing production.
Keep the acceptance checklist short enough to use, but specific enough to catch expensive failures:
- Enquiries and sales: submit forms, verify notifications and CRM delivery, and complete checkout using test payment credentials.
- Publishing: log in with relevant roles, edit and publish content, upload images and check previews.
- Background work: run scheduled publishing, imports, exports, queues and integrations.
- Technical health: inspect PHP logs, failed requests and response times against a comparable baseline.
A form’s success message does not prove its email arrived. Ask the people who handle enquiries, orders and publishing to confirm the outcomes they depend on. Assign failures to a plugin, custom code or configuration issue, fix the cause and repeat the affected checks. Record deprecation notices for maintenance even when they do not block deployment.
Give developers an earlier compatibility check
For teams maintaining custom plugins or themes, automated tests can expose problems before manual acceptance testing. The Playground CLI PHPUnit guide documents isolated runs with selectable PHP and WordPress versions. From a plugin directory with Composer dependencies installed and a configured PHPUnit suite, the existing example remains useful:
npx @wp-playground/cli@latest php --auto-mount --php=8.5 --wp=7.0 -- /wordpress/wp-content/plugins/MY_PLUGIN/vendor/bin/phpunit -c /wordpress/wp-content/plugins/MY_PLUGIN/phpunit.xml.distReplace MY_PLUGIN and the configuration path. Set --wp to the WordPress release you intend to deploy, and repeat with other required PHP versions. The guide currently documents PHP 7.4–8.5. Playground complements staging; it cannot establish that production extensions and external services behave correctly.
Prepare rollback before the production switch
Confirm that backups can be restored. Write down the runtime and configuration changes, cache handling, acceptance checks and rollback triggers. Keep the previous runtime available during the observation period, and have someone with the necessary access available to act.
Separate the PHP switch from unrelated application or database changes where practical. Reverting PHP does not undo a plugin’s database migration. Restoring yesterday’s database may also discard today’s orders, enquiries or editorial changes, so agree how new data will be protected.
For an agency portfolio, start with a lower-risk site before expanding the rollout. Repeat critical journeys immediately after deployment, then monitor errors and integrations long enough to cover relevant scheduled jobs. Save the findings and checklist for the next upgrade.
Get a clear upgrade plan
If your host, agency and internal team need help agreeing the next step, I can assess the installation, investigate compatibility blockers and coordinate testing and rollout. You should leave with a justified target version, named repair owners and a recovery plan. Contact Greg to discuss your WordPress PHP upgrade.
Related on GrN.dk
- PHP 8.2 Support Ends in December: Audit Your CMS Estate
- How to Check Whether a PHP Constant Is Defined (Without Breaking Production)
- PHP 8.2 Support Ends in December: A Practical Upgrade Plan for CMS Hosts
Need help with this kind of work?
Discuss your WordPress PHP upgrade Get in touch with Greg.