How to run the interactive PHP shell from the command line interface?

Just use the PHP CLI program with the option -a as follows:

php -a