Validate the syntax of PHP files in a directory
Answer:
To validate the syntax of PHP files in a directory, to check if any syntax error so we can fix them before they really happen at runtime.
You would need to have the GNU parallel installed in order to use the command below.
# find -type f -name '*.php' | parallel php -l