views:

56

answers:

3

Having a python interpreter is really useful as it lets you quickly type in few commands and verify output; making it easier to understand syntax.

However, in PHP, every time I want to try something out I have to - create a PHP script, save it, run it in my browser.

Is there a shortcut that I am missing out on for PHP that would make things simpler?

+4  A: 

Use PHP Designer. It will make your job much easier.

Prasoon Saurav
I love PHPDesigner, the only drawback is, that there is no autocompletition for the SPL like in Zend-Studio.
faileN
+3  A: 

You can run php CLI in interactive mode ;)

php -a 

in interactive mode you need to type the script with start and end tags

<?php echo 'Hello!'; ?>
Bogdan
+1  A: 

Or you could use phpUnit , unit testing for php

Redlab
While I am all for UnitTesting I don't think this is what the OP is after here.
Gordon
OP? (Just trying to get a hang of the lingo here at SO :-)
Shailesh Tainwala
Original Poster, I think
Bogdan