Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Which GUI applications can execute short PHP snippets directly? Instead of having to create a temporary file and run it on the command-line or in the browser, I'd like to write some code in an editor, click "Run" and see the results directly (preferrably with a dump of all local variables).

I find that the PHP interactive shell is way too basic.

It seems like a very simple application idea, so there should be several small utilities that do this. Do you know of any?

(I'm mostly interested in Linux applications, but feel free to suggest applications on other platforms as well, for other fellow super users.)

share|improve this question

closed as off-topic by Tog, harrymc, Kevin Panko, Moses, Mokubai Jun 17 '14 at 20:57

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking product, service, or learning material recommendations are off-topic because they become outdated quickly and attract opinion-based answers. Instead, describe your situation and the specific problem you're trying to solve. Share your research. Here are a few suggestions on how to properly ask this type of question." – Tog, harrymc, Kevin Panko, Moses, Mokubai
If this question can be reworded to fit the rules in the help center, please edit the question.

php -e (executes code directly from argument) and var_dump() goes a long way in practice, I find. Typically PHP applications depend on some sort of input in form of request variables. In that case a browser is the most obvious way for output. Since the request must go through the web server, you cannot get a variable dump without specifying this output in the code with var_dump() or similar (massive security hole otherwise). In case you just need to test various functions to see how they respond to simple arguments, php -e is nice. – Daniel Andersson May 7 '12 at 12:13

See Seven great PHP IDEs compared, which compares:
Eclipse (PHP IDE Project or PHPEclipse), Komodo, PHP Designer, PhpED, PHPEdit, Zend Studio.

You can run php snippets in vim, if you like : Vim Productivity Tips for PHP Developers, and also VIM as a PHP IDE. Simpler than that and you have the console with "php -a", more complex than that is an IDE.

share|improve this answer
can any of them evaluate php snippets? – Nifle Dec 2 '10 at 11:55
I can't find the answer to my question at that site, care to elaborate? – Christian Davén Dec 2 '10 at 11:56
An IDE can help write, run, debug and publish php files. Isn't this what you are looking for? Snippets must be stored somewhere. – harrymc Dec 2 '10 at 12:11
Haha, you misunderstood completely. I'm not asking how to develop in PHP, but how to run snippets in something like an interactive console. Please re-read the question. – Christian Davén Dec 2 '10 at 12:30
You did ask in your question to be reminded of IDEs. If all you are looking for is a console, just use "php -a". – harrymc Dec 2 '10 at 12:38

I have created a web console for this: PHP Wonsole.

There is also a Mac OS X utility called Phöpher.

share|improve this answer
11 months ago... – Arjan Dec 2 '10 at 12:02

Not the answer you're looking for? Browse other questions tagged .