Announcing phpsh -- an interactive shell for PHP

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

We're releasing a readline-based interactive shell for PHP called

Users can enter php statements and expressions and they will be
evaluated on the fly.
Here is a transcript of a trivial example session:
   php> $t = time()
   php> = $t
   php> = strftime('The current time is %x %X', $t)
   The current time is 08/27/06 23:44:42

phpsh has been useful for codebase testing, inspection, and interactive
scripting. It has history (even between sessions), tab-completion, and
documentation access for user-defined functions. It works with ctags,
allowing you to instantly jump into the code where a function is
defined using vim or emacs.

phpsh is available at

We wrote phpsh as a tool to make PHP development easier and faster at
Facebook.  You can check out other Facebook open source contributions
at .  phpsh works on
systems where the python2.4 subprocess module and GNU readline module
work (Linux and OS X, probably not Windows).  phpsh is open source;
access to the repository is available through darcs, and details of
license can be found on the phpsh website.

We hope others find it as useful as we have,
- Dan and Charlie from Facebook

Re: Announcing phpsh -- an interactive shell for PHP

Charles  Cheever wrote:
Quoted text here. Click to load it

How is this different from running php with the -a flag?

Site Timeline