When a new version comes then it becomes a very tedious task to migrate.
I have recently used following ubuntu shell script (or you can create a similar one for windows) to check syntax errors in all of the codebase.
#!/bin/bash
cd /home/bhagvan/restapi
for FILE in `find . -name "*.php"`
do
php -l $FILE;
done