PHP compatibility

We have some older client sites, some developed in Freeway, which use an old version of PHP. Can anyone point me to tools to evaluate what code would need to be changed to upgrade to a new version of PHP?

I haven’t used it myself but the PHPCompatibility “sniffs” for PHP CodeSniffer seems to be the way to go for this sort of thing. It doesn’t look enormously complicated to use but will require at least basic knowledge of using the command line.

The readmes on their GitHub pages have more detailed instructions of their installation and usage but essentially the process appears to be: download both, set CodeSniffer config so it knows about PHPCompatibility and run CodeSniffer on the directory containing your code.