Search code examples
phpmysqlphp-7php-5.3migrate

Proper steps to migrate PHP 5.6 code into PHP 7.3


we have developed previously in house system based on PHP 5.6 now we want to upgrade same code into PHP 7.3, we have not used any PHP framework we are using core way to write code means we are not using ANY PHP framework. what are the proper steps to migrate PHP 5.6 code into PHP 7.3


Solution

  • Look through the migration guides at php.net

    Have a look particularly at:

    • Backward incompatible changes
    • Deprecated features
    • Changed functions

    Go through each of the migration guides and check to make sure that any of the function and extensions that are changed/removed and make sure they are not used in your program.

    I would then also test in a testing environment to ensure that all is working correctly still (would turn debugging on for this).