PHP_Parser is a source code analysis tool based around a real Parser generated by PHP_ParserGenerator. The parser uses the same EBNF source that PHP uses to parse itself, modified for Lemon parser format, and it therefore as robust as PHP itself. WWW: https://pear.php.net/package/PHP_Parser