PHP upgrade service for business applications
PHP 8.1 stopped getting security fixes on 31 December 2025, and PHP 8.2 stops on 31 December 2026. We upgrade legacy PHP applications to PHP 8.4 with tests, a staging copy and releases you can roll back.
- while (list($k, $v) = each($items)) { ... }+ foreach ($items as $k => $v) { ... }- $fn = create_function('$a', 'return $a * 2;');+ $fn = fn(int $a): int => $a * 2;- if ($total == "abc") { ... } // true in PHP 7+ if ($total === 0) { ... } // explicit in PHP 8
Why PHP upgrades get put off, and why that stops working
An old PHP app often works fine, so upgrading feels like risk with no reward. Then the hosting provider announces it's dropping the old version, a security scanner fails your site, or a payment provider changes its requirements. Upgrading under a deadline is when things break.
The jump from PHP 5 or 7 to PHP 8 changes how the language behaves: functions have been removed, type handling is stricter, and old database code may not run at all. Older framework versions usually need upgrading too. None of this is hard to fix when it's planned. It's painful when it's discovered in production.
What's included
- An automated compatibility scan of your whole codebase
- A staging copy running the new PHP version
- Fixes for removed functions, deprecations and type errors
- Framework and library upgrades where needed
- Smoke tests for your most important user journeys
- A go-live plan with a tested rollback
How we upgrade PHP safely
Scan
We run static analysis tools such as PHPCompatibility and Rector across the code to list every incompatibility before changing anything.
Stage
We build a copy of the app on the target PHP version, with production-like data, and capture how key pages behave today.
Fix in batches
Changes go in small, reviewed batches. Each batch is tested against the recorded behaviour.
Release
We switch production over at a quiet time, watch the error logs closely, and keep the old version ready to restore.
PHP versions and their support dates
Each PHP version gets two years of active support, then two years of security fixes only. After that, no more patches. These dates are from the official PHP project.
- PHP 7.4 and older: no security fixes since November 2022 or earlier
- PHP 8.0: security fixes ended 26 November 2023
- PHP 8.1: security fixes ended 31 December 2025
- PHP 8.2: security fixes end 31 December 2026
- PHP 8.3: security fixes until 31 December 2027
- PHP 8.4: security fixes until 31 December 2028
We normally recommend PHP 8.4 as the target. It gives you the longest supported window that your hosting and libraries are likely to handle well today.
Common things that break
- Database code written for the old
mysql_*functions, removed in PHP 7.0 - Functions such as
each()andcreate_function(), removed in PHP 8.0 - Comparisons between strings and numbers, which behave differently from PHP 8.0
- Passing null to built-in functions, deprecated in PHP 8.1
- Dynamic properties on classes, deprecated in PHP 8.2
- Old versions of CakePHP, CodeIgniter, Laravel, Zend Framework and Composer libraries that don't support PHP 8
Upgrade now, add AI later
A supported PHP version is also the foundation for anything new. Once the app is current, it's straightforward to add AI features or move it to modern cloud hosting.
PHP upgrade questions
What happens if we stay on PHP 8.2 after December 2026?
The site keeps running, but newly discovered security vulnerabilities in PHP 8.2 won't be fixed by the PHP project. Some Linux distributions and paid services back-port fixes for a while, but hosting providers typically start forcing upgrades, sometimes with little notice.
How long does a PHP upgrade take?
For a small application, it can take one to three weeks. Large or framework-heavy systems take longer. The scan in the health check gives you a fixed quote before any work starts.
Will the upgrade change how the app looks or works?
No. The goal is identical behaviour on a supported version. Any change you'd notice is treated as a bug, unless you've asked for improvements at the same time.
Our app uses an old framework. Do we need to rewrite it?
Rarely. Most framework upgrades can be done in steps, version by version, with the app working at each step.