How to write PHP in terminal

If you like to play around in terminal; with php you may like this article
write this command in your command prompt or any terminal you are using

php -a

php shell.png

To exit just enter

cmd + c