Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does PHP have anything like Ruby's irb?

Tags:

php

If I want to try out something new in Ruby or Javascript, I love getting immediate feedback from irb or the JS console in Firebug.

Is there anything like that for PHP?

Update

As @bernie pointed out, such tools are called REPLs - "Read-eval-print loop"

like image 532
Nathan Long Avatar asked Mar 08 '10 19:03

Nathan Long


1 Answers

Run php -a in the command-line. But this does not work on Windows.

For Windows, you may want to try phpa-norl.

like image 115
sutch Avatar answered Sep 19 '22 04:09

sutch