I\'m using Ubuntu 12.04 64 bit and I want to use the PHP interactive shell:
php -a
But it doesn\'t seem to work very well, a lot of syntax
Try installing http://www.phpsh.org/ it is probably the easiest solution.
Steps: (assuming dependency's installed)
git clone https://github.com/facebook/phpsh
cd phpsh
sudo python setup.py install
phpsh