3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function foo() { return array(1, 2, 3); } var_dump(array_pop(foo())); var_dump(array_pop(array(1, 2, 3)));
based on CGO6q
Output for 4.3.2 - 5.4.34
Fatal error: Only variables can be passed by reference in /in/bdIQn on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Only variables can be passed by reference in /in/bdIQn on line 6