Is there an static analysis tool for PHP source files? The binary itself can check for syntax errors, but I'm looking for something that does more, like:
Run php in lint-mode from the command line to validate syntax without execution:
php -l FILENAME
Higher-level static analyzers include:
Lower-level analyzers include:
Runtime analyzers, which are more useful for some things due to PHPs dynamic nature, include:
Another option is xhprof, which is similar to xdebug, but lighter, making it suitable for production servers. The tool includes a PHP-based interface.