Downloads:

Grammar

Php grammar to build AST php.g
Php tree grammar to build tree walker phpTree.g

View Support page on how to build java files from grammar and ANTLR tool.

Tool

Tool that builds AST and tree walker from java files created by ANTLR with grammar files.
It also print the AST for each child of input php file.
File types available:
PhpParser.zip
PhpParser.tar.gz

View Support page on how to build and run the tool.