Sebastian Bergmann's Blog: Using HipHop for Static Analysis
Note: This article was originally published at PHPDeveloper on 27 July 2010.
HipHop for PHP, the source code transformer that turns PHP code into C++ code that can then be compiled with g++, can also be used for static code analysis to find problems in PHP source code.
He includes a script that creates an XML document that both Checkstyle and PHP_CodeSniffer can use to check for a valid format on his sample "CodeErrors.js" file. He includes the script to create this XML file.