Just wondering, is it possible to create an interactive shell, using PHP alone. I mean something like you have with databases, python, etc.
If it is, how?
I know the questioner didn't want the second option, but for those that wanted the second option as I did, in addition to phpsh, PHP also has it's own shell:
phpsh
Just run php -a.
php -a