[ Content | View menu ]

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.

3 Comments

Write comment - TrackBack - RSS Comments

  1. Comment by David Phillips:

    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 :)

    September 12, 2008 @ 12:13
  2. Comment by Mark:

    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).

    September 14, 2008 @ 14:50
  3. Pingback from REPL i PHP – czyli Telnetem do rakiety :) | TeMPOraL's devBlog:

    [...] 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’  . [...]

    September 15, 2009 @ 09:47
Write comment