Daniel Kisantal Legacy PHP modernization

PHP 8 upgrade for legacy applications

From PHP 5.6 or 7.x to PHP 8.5, one deployable step at a time. Your application keeps running and your team keeps shipping.

Why upgrade now

PHP 7.4 has had no security fixes since November 2022, PHP 8.0 since November 2023, PHP 8.1 since the end of 2025. PHP 8.2 follows on 31 December 2026. Hosting providers raise prices for old runtimes or drop them, and many Composer packages no longer install on them.

PHP release lines and their official security support, as of 5 December 2026.
VersionSecurity fixes untilStatus
PHP 5.6End of life
PHP 7.4End of life
PHP 8.0End of life
PHP 8.1End of life
PHP 8.2Security fixes only
PHP 8.3Security fixes only
PHP 8.4Active support
PHP 8.5Active support
PHP 8.6Active support

What breaks between PHP 5, 7 and 8

Most of the work is a long list of small, well-known changes. Some examples that show up in almost every legacy codebase:

  • The mysql_* extension is gone since PHP 7.0. Every query moves to PDO or mysqli, which is also the moment to fix SQL injection.
  • ereg(), split(), each() and create_function() are removed.
  • PHP 8.0 changed how strings and numbers compare: 0 == "a" is now false. Silent logic changes like this are why tests come first.
  • Passing null to built-in functions such as strlen() or str_replace() is deprecated since 8.1, a warning that fills logs in old code.
  • Dynamic properties are deprecated since 8.2, common in older models and form classes.
  • Curly brace string offsets, old-style constructors and $php_errormsg no longer work.
  • Many warnings became exceptions, so error handling that once printed a notice can now stop a request.

Tools I use

  • Rector for automated, reviewable refactoring between PHP versions.
  • PHPStan to find type errors and dead code before they reach production.
  • PHPCompatibility (10.x) rules for PHP_CodeSniffer to list version-specific problems.
  • End-to-end tests (WebdriverIO, Playwright or Codeception) around the critical flows.
  • Docker so the old and the new runtime can run side by side during the move.

What you get

  • A short audit and a fixed-scope plan before any work starts.
  • Your application running on PHP 8.5, deployed in steps, with no long freeze.
  • A test suite you keep, plus updated, maintained dependencies.
  • Security issues found on the way, fixed or documented. See the security audit.

Ask about your upgrade

Questions

Can we jump straight from PHP 5.6 to PHP 8.5?

The runtime can, the code usually cannot. I fix the code for each major step in order (7.x, then 8.x) because the deprecation warnings of one version are the hard errors of the next. The server only changes once the code runs clean on the target.

Will PHP 8 make our application faster?

Usually yes. PHP 8 is clearly faster than PHP 5 for typical web workloads, and OPcache and JIT help further. The bigger wins often come from fixing slow queries found along the way.

What if our dependencies have no PHP 8 version?

Abandoned packages are replaced with maintained ones, or forked and patched when there is no alternative. This is part of the audit, so it is in the plan and the price from the start.