$ less ~/blog/a-php-shell.txt
-rw-r--r-- cesar Jul 02 2010 a-php-shell.txt
ARCHIVED · written in 2010. Kept as it was; some of it may be out of date.
A PHP Shell

We do a lot of development in PHP here at Easytech. Many times you need to test a bit of PHP code. If you played around with python you surely used the python shell. Fortunately the people at Facebook have created a similar shell for PHP (ironically written in python!). You can find it here: http://www.phpsh.org/. From there you can access the GIT repository or download a tgz or zip file.
Currently I couldn’t find a DEB package for Ubuntu. If you want to install it just follow the following steps (you need python installed)
$ cd ~/Devel/PHP (o donde lo quieran tirar)
$ wget http://github.com/facebook/phpsh/tarball/master
$ tar zxvf facebook-phpsh-*
$ cd facebook-phpsh-*
$ sudo python setup.py install
thats it! To test some PHP weirdness…
$ phpsh
Starting php
type 'h' or 'help' to see instructions & features
php> var_dump( 1 == '1' )
bool(true)
php>