WordPress PHP Version Upgrade Planning
A PHP upgrade is a runtime change, not just a version selector. Inventory the site's code and extensions, choose a supported target, test a representative staging copy, and prepare an application-aware rollback before switching production.
A WordPress PHP update changes the runtime that executes the site, its plugins and its theme. Choose a target that your complete application can run, not merely the newest option in a hosting menu. A safe plan records the current environment, checks support, tests important journeys on staging and makes the production switch reversible.
Version popularity can help explain why a migration deserves attention, but it cannot certify a plugin or a particular site. The decision belongs to the site owner and operator after checking their own dependencies, available support and recovery options.

Inventory the running site before choosing a target
Choose the newest supported target that the complete application can actually run, not simply the highest option in a control panel. A newer runtime improves the support position, but compatibility testing and a rollback path are necessary before production changes.
Record the PHP version serving web requests for each site, not just the version displayed by a command-line tool. A server can have different versions for its web workers, scheduled tasks and command-line jobs. Note how the host selects the runtime, which configuration applies to the site and who has permission to change it. Record extensions and relevant settings, including memory limits, upload limits and time zones, so a staging comparison does not accidentally test a different environment.
List the WordPress core version, active and inactive plugins, must-use plugins, theme and child theme, custom code, integrations and any scheduled or queue workers. An inactive extension may still matter to a later workflow; custom code may have no vendor compatibility statement at all. Identify ownership for components that nobody currently maintains. Where several sites share a server, inventory each application rather than assuming the same switch is safe everywhere.
Include payment gateways, forms, email delivery, search, caches and external services in the dependency map. Record when the site accepts orders or editorial changes and who can validate them. The purpose is not to assemble a perfect catalogue before acting: it is to find the paths that would make a silent failure expensive and to assign a tester to each path.
Read the ecosystem data in context
The chart shows the distribution returned by the WordPress.org PHP statistics API, viewed 29 November 2026. It reports percentages of sites in its statistics population, not a compatibility test or a recommendation. The last bar adds the API's separate PHP 8.4, 8.5 and 8.6 values; earlier versions below 7.4 are omitted from the plotted categories. The values are a dated snapshot and may change.
PHP versions reported by WordPress.org
Snapshot of the WordPress.org statistics population; selected versions
- 7.413.9
- 8.03.217
- 8.18.791
- 8.222.08
- 8.328.315
- 8.4–8.6 combined18.481
View chart data
| Item | percent of sites | Note |
|---|---|---|
| 7.4 | 13.9 | |
| 8.0 | 3.217 | |
| 8.1 | 8.791 | |
| 8.2 | 22.08 | |
| 8.3 | 28.315 | |
| 8.4–8.6 combined | 18.481 | 8.4: 11.291%, 8.5: 7.071%, 8.6: 0.119% |
Do not interpret a large share as evidence that a particular extension works on that version. Equally, a small share does not establish that an upgrade is unsafe. The WordPress core compatibility table concerns core; it explicitly notes that sites also run themes and plugins. Check the exact core release and each component's own support information, then exercise the combination in an environment representative of production.
WordPress's requirements page, viewed the same day, recommends PHP 8.3 or greater and explains that older supported legacy combinations can be end of life. A minimum version on a compatibility table is not a security-support guarantee. Compare any target against PHP's current support schedule, and separately ask your host whether its packages receive updates and how promptly those updates reach your site.
Choose a supported target and document exceptions
Start with a currently supported runtime offered by the hosting environment, then narrow the choice using core, plugin, theme and integration evidence. Check PHP's support status again when the actual change is scheduled: the length of useful life remaining matters more than the version label alone. A target must also have the extensions and configuration your application needs. A vendor's compatibility statement is useful input, but it does not remove the need for a site-specific test.
For every blocker, record the component, version, owner, evidence, proposed remediation and decision date. An upgrade, replacement or removal may be appropriate; a custom-code fix might need a developer. If a critical component has no safe target yet, keep the change on hold, define compensating controls with the responsible team and agree a deadline for resolving the dependency. Do not present an unsupported runtime as a permanent fix merely because the site still renders.
| Decision | Evidence to collect | Action if missing |
|---|---|---|
| Core and runtime | Exact core release, target PHP branch and host support | Check the core matrix and hosting updates |
| Plugins and theme | Installed versions, maintainer guidance and critical functions | Test, update or replace the dependency |
| Custom code | Owner, dependencies, logs and exercised workflows | Arrange review and a staged test |
| Recovery | Previous runtime, backup scope and restore procedure | Rehearse before approving the switch |
If the core version itself needs an upgrade, plan that work explicitly rather than changing multiple layers without an explanation. The WordPress update strategy covers application updates; a runtime migration needs its own compatibility and reversal decisions. Capture a baseline of application health before either change so the team can distinguish a pre-existing problem from a new one.
Test a representative staging copy
Create a current copy of the application files and database in an isolated staging environment. Protect access and handle personal data according to your organisation's rules. Configure the intended PHP branch, extensions and important limits to match the proposed production setup. Make staging clearly distinguishable from the live site and prevent it from sending real payment requests, emails, webhooks or search-index signals. Use appropriate sandbox integrations rather than placing production credentials in an exposed clone.
First verify that the copy works on its original runtime. Then change only the intended runtime and repeat the same checks. Compare web and background execution paths, including the version used by scheduled tasks and any worker process. A successful home page is only a starting point: visit representative content, sign in with appropriate test roles, edit and publish content, submit forms, process a sandbox purchase or booking, and verify search and integrations relevant to the site.
Review application and PHP error logs as well as the visible result. A warning can reveal code that needs attention even when the page appears normal; a missing background email or scheduled job can be invisible to a browser check. Record the test, expected result, actual result and responsible person. Re-test fixes on a refreshed or carefully controlled copy when the site has changed significantly since the initial clone.
Staging is a risk-reduction tool, not a guarantee. Traffic, cached state, external services and data may differ in production. Agree which issues block release, who can grant an exception and what additional checks will run after the live switch. Keep staging private and retire or refresh it under the same data-handling rules as other copies of the site.
Switch deliberately and observe the real site
Schedule a change window suited to the site's business activity and notify the people who can authorize and validate the change. Confirm the target, the actual switch mechanism, access to the previous runtime, backup availability and the person responsible for a rollback. Take a fresh backup according to the existing recovery procedure and verify that the team knows how to restore both application files and data if necessary. A backup that cannot be located or restored is not a recovery plan.
Use the host's documented per-site procedure where available. Confirm which web pool and background processes it affects; do not assume that switching a web setting also changes command-line jobs. After the change, verify the effective web runtime through a protected administrative view or the host's supported diagnostics, not a public diagnostic file that reveals configuration. Avoid leaving sensitive debug output visible to visitors.
Run the agreed critical journeys in production with care: a safe form submission, an authenticated editorial action and a sandbox or otherwise approved transaction check where available. Watch errors, response behaviour, scheduled jobs and integration delivery. Compare the findings with the baseline and assign a named observer for the agreed monitoring period. If an unexpected failure occurs, document the observed symptom and decide against the agreed rollback criteria rather than repeatedly changing settings under pressure.
Make rollback application-aware
Write down the previous PHP version and its configuration before changing anything. Returning the selector to that version can reverse the runtime change only if the previous runtime is still available and the application and its data remain compatible with it. Restart or recycle affected processes using the host's procedure if needed, then verify web requests, workers and scheduled jobs rather than assuming the old state is restored.
PHP rollback is not the same as restoring a database. If plugin updates or migrations changed stored data during the window, reverting files or restoring an older database can discard new orders, messages or editorial work. Involve the business owner in that decision; preserve the current state and transaction records, understand the recovery point and use the rehearsed restore procedure. For a busy site, a controlled maintenance window or a plan for reconciling writes may be necessary.
Record the outcome, unresolved warnings and the next support review. If the upgrade fails, keep the evidence and revise the compatibility plan instead of treating the temporary rollback as the destination. For a broader recovery checklist, see WordPress backup and restore planning. Sora Panel is not released yet. Read how it works on the homepage.
Frequently asked questions
Does WordPress core compatibility mean every plugin will work?
No. Check each plugin, theme and custom integration independently, then test the combination on a representative staging copy.
Should I select the most popular PHP version?
Not on popularity alone. Choose a version with suitable security support, hosting availability and evidence that your site's dependencies work together.
Can I roll back by changing the PHP selector?
Sometimes, if the old runtime remains available and the application and its data are still compatible. It does not undo database migrations or recover lost transactions.
Why test scheduled jobs separately?
Background jobs and command-line processes may use a different PHP runtime or configuration from the web application.
Sources
- WordPress.org PHP statistics API (viewed 2026-11-29)
- WordPress PHP compatibility and versions (viewed 2026-11-29)
- WordPress requirements (viewed 2026-11-29)
- PHP supported versions (viewed 2026-11-29)
Sora Panel is not released yet. Read how it works on the homepage.