r/PHPhelp • u/ichranakhader • Oct 25 '26
I need advice on upgrading a legacy PHP application.
Hi ,
I need advice on upgrading a legacy PHP application.
The application is currently running on:
- PHP 5.4.7
- Apache 2.4.3
- Windows Server
The application is quite old, and I'm trying to determine whether it is feasible to upgrade directly to PHP 8.x or if the effort required to remediate compatibility issues would make a full rewrite a better option.
I am looking for guidance on:
- How to assess the application's upgrade readiness
- Common compatibility issues when moving from PHP 5.4 to PHP 8.x
- Recommended upgrade path (incremental vs. direct migration)
- Tools or approaches to identify deprecated functions and libraries
- Criteria for deciding whether to upgrade or rebuild the application
Any advice or experience with similar legacy PHP migrations would be greatly appreciated.
Thanks.