Created
February 5, 2014 15:35
-
-
Save philsturgeon/8826220 to your computer and use it in GitHub Desktop.
PHP - So close, but yet so far.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ python | |
Python 2.7.5 (default, Oct 21 2013, 17:28:33) | |
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
[>>> [1, 3, 5] + [345, 6] | |
[1, 3, 5, 345, 6] | |
>>> | |
$ php -a | |
Interactive shell | |
php > [1, 3, 5] + [345, 6]; | |
php > var_dump( [1, 3, 5] + [345, 6]); | |
array(3) { | |
[0] => | |
int(1) | |
[1] => | |
int(3) | |
[2] => | |
int(5) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You probably want this:
Boris, A tiny, but robust REPL for PHP.
https://github.com/d11wtq/boris