3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function blah(&$a, &$b) { $a = 0; $b = 0; return -1; } $x = array(3, 4); var_dump(array_diff_uassoc(&$x, array(5, 6, 7), 'blah')); var_dump($x);
Output for 5.4.0 - 5.4.15
Fatal error: Call-time pass-by-reference has been removed in /in/3jC21 on line 8
Process exited with code 255.
Output for 5.3.25, 5.3.27 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/HpTd5 on line 8 array(2) { [0]=> int(3) [1]=> int(4) } array(2) { [0]=> int(3) [1]=> int(4) }
Output for 5.3.0 - 5.3.24, 5.3.26
Deprecated: Call-time pass-by-reference has been deprecated in /in/3jC21 on line 8 array(2) { [0]=> int(3) [1]=> int(4) } array(2) { [0]=> int(3) [1]=> int(4) }