PHP REPL
Mark Mzyk | August 26, 2008
I’ve mentioned before that I think programming languages should have a REPL (Read-Eval-Print-Loop).
Unfortunately, PHP does not have one natively. However, I just discovered that Facebook has opened sourced a REPL for PHP – so now you can test out your PHP code without needing to write and run a script.
Working in Python, I’ve found Python’s REPL highly convenient, so I’m going to start using Facebook’s PHP REPL for when I have to work in PHP.
Ironically, Facebook’s PHP REPL is implement in Python. I can commiserate: given the choice between Python and PHP, I’d go with Python.
Filed in: Languages,Programming.
I wrote another one, phpa, in PHP: http://david.acz.org/phpa/
(actually, you could say they wrote another one, since mine was around first
Thanks for the heads up David – it’s always good to see the options that are available. I’ll try to give phpa a try when I get the chance (I’ve bee coding mostly Python lately).
[...] phpsh to projekt Facebook’a, będący Open-Source i napisany głównie… w Pythonie. Szczegóły pod adresem: http://www.phpsh.org/ Całość wykonana jest bardzo ładnie i dobrze wykorzystuje możliwość wyświetlania w konsoli kolorowego tekstu. Po rozpakowaniu na serwerze działa po prostu ‘z marszu’ . [...]