3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('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/KM3O8 on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/KM3O8 on line 5 array(2) { [0]=> &string(3) "baz" [1]=> string(3) "bar" }