How do I run php from the command line, without having to use a script as an argument.
Example with script:
> php index.php
I already know how to execute a certain function or code like this:
> php -r "echo 12346;"
But is there any way to do this interactively (as in python, for example)?
Something similar to this example:
> php
> echo 1;
> 1
> print_r(array());
> array(){}
Is there this in PHP?