Phan looks really interesting, and I need to look deeper into it as stuff moves over to PHP 7.

For your file list, though, I'd add the -i case-insensitive flag to your grep command, since <?PHP Is still valid, and otherwise you're likely to miss things.