# This will run over every single PHP file …

- Link: https://cagrimmett.com/micro/ba32074ea2/
- Published: 2023-03-03T15:27:21-05:00
- Author: Chuck Grimmett

This will run over every single PHP file on the site and check it for syntax errors
using the current version of PHP:

    ```wp-block-code
    find -L /srv/htdocs -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
    ```

Useful for testing PHP upgrades.

h/t [Tony Hegyes](https://profiles.wordpress.org/ahegyes/)

## Comments

### By: Note: You may find PHP Parallel Lint useful too. I w…

- Link: https://jeremyfelt.com/notes/88621677901662/
- Published: 2023-04-01T17:52:07-04:00

This Article was mentioned on [jeremyfelt.com](https://jeremyfelt.com/notes/88621677901662/)
