3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = ['bar']; $xyz = 'foo'; array_unshift($a, &$xyz); $xyz = 'baz'; var_dump($a);
Output for 5.4.0 - 5.4.21
Fatal error: Call-time pass-by-reference has been removed in /in/McUsh on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected '[' in /in/McUsh on line 3
Process exited with code 255.