3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(array_unshift(array('key'=>'val'), array(0=>array('key1'=>'val1'), 1=>array('key2'=>'val2'))));
Output for 4.3.2 - 5.4.28
Fatal error: Only variables can be passed by reference in /in/GHf0j on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Only variables can be passed by reference in /in/GHf0j on line 2