3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class dummy { public function __toString() { unset($GLOBALS['arr2'][0]); $GLOBALS['test1'] .= "\x00\x00\x00\xff\xff\xff\x7f\x01\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00"; return '0'; } } $test1="\x00"; $arr1 = array(new dummy); $arr2 = array('dddddd'); $out = array_combine($arr1, &$arr2); var_dump($out);
Output for 5.4.0 - 5.4.17
Fatal error: Call-time pass-by-reference has been removed in /in/LYuKO on line 13
Process exited with code 255.
Output for 5.3.28 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/gt34m on line 13 array(1) { [0]=> NULL }
Output for 5.3.0 - 5.3.27
Deprecated: Call-time pass-by-reference has been deprecated in /in/LYuKO on line 13 array(1) { [0]=> NULL }