3v4l.org

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