3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = range(0,1000000); $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/n02jg on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Deprecated: Call-time pass-by-reference has been deprecated in /in/n02jg on line 5 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/n02jg on line 3
Process exited with code 255.