Mavericks PHP versions issue
try

/usr/local/php5/bin/php --version


If you want that php to become the default when you type php at the command line, run this:

echo "alias php='/usr/local/php5/bin/php'"&gt;&gt;~/.bash_profile


then close your terminal and open a new one or run

. ~/.bash_profile