Skip to content

Instantly share code, notes, and snippets.

@philsturgeon
Created February 5, 2014 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philsturgeon/8826220 to your computer and use it in GitHub Desktop.
Save philsturgeon/8826220 to your computer and use it in GitHub Desktop.
PHP - So close, but yet so far.
$ 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)
}
@stevelacey
Copy link

You probably want this:

Boris, A tiny, but robust REPL for PHP.
https://github.com/d11wtq/boris

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment