Shell-find . -type f -name "*.php" -print0 | xargs -0 wc -l

NoSuchKey