One-liner to syntax-check and strict-mode check all your PHP code

The following command does a syntax check and a strict mode check on all PHP code under /var/www/html:

find /var/www/html -name “*.php” -exec php -d display_errors=1 -d error_reporting=4095 -l {} ; 2>&1 >/dev/null #4095 means E_STRICT|E_ALL