I've created a PHP4 grammar for the Java based SableCC parser generator.
As there is no PHP language specification I can't guarantee its correctness but it seems to work on most files I've fed to it. It should make working on parsing PHP for various tasks a lot easier (loads easier than using the bison mess) but it's also only for Java.