Upgrading Legacy to the Latest PHP Version
summary
Claims a proven upgrade path for codebases up to four million lines, moving 5.3–5.6 to PHP 7 then 8 without feature-freeze by: running static analysis with PHPCompatibility and Exakat to get file/line issues, using eval3and4.org to compare runtime behavior, writing high-level characterization tests with Cypress, and shipping small polyfills or reimplementations (example: an each shim and the mcrypt-compat package) so the app keeps working while tests turn green and edge cases get fixed.
AI-written summary · about
chapters (16)
- 0:00Upgrading legacy PHP code
- 2:53Compatibility issues with PHP
- 5:04Solutions for compatibility problems
- 7:42Exakat for compatibility checks
- 9:26Testing across PHP versions
- 12:20Handling removed functions like each()
- 15:11Upgrading dependencies
- 18:47Replacing discontinued extensions
- 24:35Migrating from MySQL to MySQLi/PDO
- 28:05High-level tests for legacy apps
- 32:37Cypress for integration testing
- 37:10Prioritizing features for upgrades
- 39:38Key takeaways for PHP upgrades
- 42:06Q&A: Going live with PHP versions
- 44:39Q&A: Rebuilding vs refactoring
- 46:53Q&A: Finding old PHP versions








