3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 'foo'; $b = 'bar'; $array = [&$a, $b]; var_dump($array); array_map(function($item){ }, &$array); var_dump($array);
Output for 5.4.0 - 5.4.25
Fatal error: Call-time pass-by-reference has been removed in /in/ucqIB on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '[' in /in/ucqIB on line 5
Process exited with code 255.