Is there a command line php shell available for windows? I looking for something similar to the python shell, that will allow me to open and immediately begin executing code.>
Another simple variant, influenced by other answers. Create and run the following cmd-script:
@echo off :loop php.exe -r "while (true) { eval (fgets (STDIN) ); echo PHP_EOL; }" goto loop
Immediate execution, Ctrl+C for exit. Insert correct path before "php.exe".