Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

PHP repl is actually php -a


Note that this is not a traditional repl in the style of of Python or IRB that evaluates each line individually. With php -a you have to enter an entire script, and then exit to run it, and which point you can no longer interact with the variables, etc. Also it's super backwards in that you need to add <?php tags to turn interpretation on.

If you really want a repl that's useful for PHP check out http://www.phpsh.org/ by Facebook.


No, you can do evaluation line by line, but it isn't exactly nice. Just typing php forces you to type in the entire script.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: