Rob Allen has posted a quick tip to his site showing how to get Phan installed on an OS X system. Phan is a static analysis tool written for PHP 7 and makes use of the new functionality that exposes the AST for the underlying language.
I use Homebrew for my local PHP installation on OS X and am currently running PHP 7.0.0 RC8.
Phan is a static analyser for PHP 7 which was written by Rasmus and then rewritten by Andrew Morrison. As it benefits from PHP 7's abstract syntax tree it can find all kinds of subtle errors, so I wanted to install it locally to have a play with it.
He shows how to get the tool installed via Composer (with a custom
repository definition) and links to the ast extension you'll need installed to let the tool work. A quick exit to your
php.ini file is then all it takes to complete the installation and let you install and run the tool from the command line.