A PHP version update moves your website’s server from one release of the PHP language to a newer one, so the site keeps receiving security fixes and runs on supported, faster code. You do it safely by checking compatibility on a copy of the site first, updating themes, plugins and custom code that break, switching the live server in a quiet hour and keeping a quick way back. This guide explains what happens when PHP is outdated, the end-of-life dates that matter, the steps, how long it takes and the mistakes to avoid.
Last updated: 23 November 2026.
What is PHP and why does its version matter?
PHP is the programming language that runs on the server behind most content management systems, including WordPress, Drupal, Joomla, Magento and many custom sites. Each version is supported for a fixed period: first with bug and security fixes, then with security fixes only, then not at all.
When a version reaches end of life, newly discovered vulnerabilities in PHP itself are no longer fixed. The site may keep working for months, but it does so on a foundation nobody is repairing.
At Odduel, a creative and technology agency in Barcelona and São Paulo, PHP updates are a routine part of our maintenance and support service: planned, tested on a copy and logged.
In short: check which PHP version your site runs, compare it with the official support dates, test the next supported version on a staging copy, fix what breaks, switch production with a backup ready, then monitor errors for a few days. Repeat roughly every year or two.
What happens if PHP is outdated?
Running an unsupported PHP version carries several risks:
- Security exposure. New vulnerabilities in PHP are no longer patched for that version.
- Plugin and theme incompatibility. Developers drop support for old versions, so updates stop installing or start failing.
- Slower pages. Newer PHP releases generally run the same code faster and with less memory.
- Hosting pressure. Hosting providers retire old versions, sometimes forcing a switch at a moment you did not choose.
- Compliance questions. Under the GDPR, organisations must take appropriate technical measures to protect personal data; knowingly running unsupported software that handles form submissions or customer accounts is hard to defend.
Which PHP versions are supported, and until when?
The PHP project publishes its support dates on its supported versions page. According to that page, PHP 8.1 stopped receiving security fixes on 31 December 2025, PHP 8.2 receives security fixes until 31 December 2026, PHP 8.3 until 31 December 2027 and PHP 8.4 until 31 December 2028.
| Version | Status in late 2026 | What to do |
|---|---|---|
| 7.x and 8.0 | End of life for years | Update as a priority |
| 8.1 | End of life since 31 December 2025 | Update now |
| 8.2 | Security fixes only, ending 31 December 2026 | Plan the update this quarter |
| 8.3 | Security fixes only, until 31 December 2027 | Fine for now; plan the next step |
| 8.4 and newer | Supported | Target version for updates |
Always check the official page before planning, because dates are set by the PHP project and the table above only summarises them.
How do you check which PHP version your site uses?
There are several quick ways:
- Your hosting control panel usually shows the PHP version per site and lets you change it.
- In WordPress, Tools > Site Health > Info > Server shows the PHP version.
- Your developer or host can confirm it from the server with one command.
Check each site separately: a server can run different PHP versions for different sites.
While you are there, note two other things: the PHP extensions the site uses, such as image or database extensions, and the PHP version used by scheduled tasks on the command line. Both must match the new version after the update, and both are easy to overlook. Write the findings down; they become the starting point of the update plan and of the test list for staging.
What are the steps in a PHP version update?
- Take a full backup of files and database, and confirm it can be restored.
- List everything that runs code: CMS core, theme, plugins or modules, custom code, scheduled tasks and any scripts outside the CMS.
- Update the CMS, themes and plugins to their latest versions on the current PHP version first. Many compatibility problems disappear at this step.
- Create a staging copy of the site on the same server type, running the target PHP version.
- Run a compatibility scan of custom code and plugins with a static analysis tool that checks PHP compatibility.
- Test the site on staging: every template, forms, search, checkout, account areas, admin screens, scheduled tasks and email sending.
- Read the error log on staging; deprecation notices show what will break in a later version.
- Fix or replace what fails: update custom code, replace abandoned plugins.
- Switch production in a quiet hour, with the previous PHP version still installed for a quick rollback.
- Monitor the error log, uptime and key journeys for several days.
Our website maintenance checklist shows where this fits among the other recurring tasks.
How long does a PHP update usually take?
For a well-maintained site with up-to-date plugins and little custom code, the update itself is short and most of the time goes into testing. Sites with abandoned plugins, heavily customised themes or old custom code can take much longer, because each incompatibility must be fixed or replaced. Jumping several versions at once, such as from 7.4 to 8.4, usually takes longer than regular single steps, because changes accumulate.
| Site situation | Effort | Main work |
|---|---|---|
| Up-to-date CMS and plugins, little custom code | Small | Testing on staging |
| Several outdated plugins | Medium | Updates and replacements |
| Custom theme or plugins written years ago | Larger | Code changes and retesting |
| Very old PHP (7.x or older) | Largest | Staged jump, possibly a partial rebuild |
What are the most common mistakes?
- Switching production first and testing afterwards.
- No working backup, or one that was never tested.
- Ignoring deprecation notices, which become fatal errors in the next major version.
- Keeping abandoned plugins that will never support newer PHP.
- Forgetting scheduled tasks and command-line scripts, which may use a different PHP binary than the website.
- Not checking extensions: some PHP extensions must be installed again for the new version.
- Updating once every five years, which turns a routine job into a project.
What best practices keep PHP updates easy?
- Update little and often. Move to each new supported version within its first year.
- Keep plugins few and maintained. Every plugin is code you depend on.
- Watch the error log monthly for deprecation notices.
- Use staging for every update, not only for PHP.
- Write custom code to current standards, with automated tests where possible.
- Track support dates in your maintenance calendar, alongside certificate renewals and licence expiries.
Security is wider than PHP; our guide to WordPress security covers the other layers.
Should a small business do this itself?
A small business can check its PHP version and, on simple sites with a good host, may switch versions from the control panel after a backup. The risk is in what you cannot see: a form that silently stops sending, a payment step that fails, a scheduled export that no longer runs. If the site takes orders, bookings or enquiries, have someone test on a copy first. A maintenance plan that includes PHP updates usually costs less than fixing a broken site in a hurry; our article on website maintenance cost explains what such plans cover.
Questions people ask
What happens if my website runs an outdated PHP version?
The site may keep working, but newly found security flaws in that PHP version are no longer fixed, plugins and themes gradually stop supporting it, and pages run slower than they would on a newer release. Hosting providers also retire old versions, which can force an unplanned switch and unexpected breakage at a bad moment.
How do I update PHP safely?
Back up the site, update the CMS, theme and plugins first, then test the target PHP version on a staging copy. Check every key page, form and checkout, read the error log, fix or replace what fails, then switch production in a quiet hour with a rollback ready. Monitor errors for several days afterwards.
How long does a PHP version update take?
For a well-maintained site with current plugins and little custom code, the switch is quick and most of the time goes into testing. Sites with outdated plugins, old custom themes or a jump across several versions take longer, because each incompatibility must be fixed. Regular, single-version updates keep the job short.
Which PHP version should my website use?
Use a version that is still supported by the PHP project, ideally one with at least a year of security support left. Check the official supported versions page on php.net, confirm your CMS, theme and plugins support it, and test it on a staging copy before switching the live site.
Will updating PHP break my WordPress site?
It can, if a plugin, theme or custom code is not compatible with the new version. Updating everything first and testing on a staging copy finds these problems before visitors do. Most well-maintained plugins support current PHP versions; abandoned ones are the usual cause of errors and should be replaced.
Check your site’s PHP version today and compare it with the official support dates: if it is 8.2 or older, plan the update now. When you want it tested, switched and monitored for you, see our maintenance and support service or tell us about your site.


