3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo = [5, 6, 7]; $bar = new ArrayObject(&$foo); $bar[] = 8; var_dump($foo);
Output for 5.4.0 - 5.4.23
Fatal error: Call-time pass-by-reference has been removed in /in/eDOfc on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '[' in /in/eDOfc on line 3
Process exited with code 255.