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.0.0 - 5.6.28, 7.0.0 - 7.1.0
array(2) { [0]=> int(3) [1]=> int(4) } array(2) { [0]=> int(3) [1]=> int(4) }
Output for hhvm-3.12.0
Warning: Parameter 1 to blah() expected to be a reference, value given in /in/Krl9H on line 8 Warning: Parameter 2 to blah() expected to be a reference, value given in /in/Krl9H on line 8 Warning: Parameter 1 to blah() expected to be a reference, value given in /in/Krl9H on line 8 Warning: Parameter 2 to blah() expected to be a reference, value given in /in/Krl9H on line 8 Warning: Parameter 1 to blah() expected to be a reference, value given in /in/Krl9H on line 8 Warning: Parameter 2 to blah() expected to be a reference, value given in /in/Krl9H on line 8 Warning: Parameter 1 to blah() expected to be a reference, value given in /in/Krl9H on line 8 Warning: Parameter 2 to blah() expected to be a reference, value given in /in/Krl9H on line 8 Warning: Parameter 1 to blah() expected to be a reference, value given in /in/Krl9H on line 8 Warning: Parameter 2 to blah() expected to be a reference, value given in /in/Krl9H on line 8 Warning: Parameter 1 to blah() expected to be a reference, value given in /in/Krl9H on line 8 Warning: Parameter 2 to blah() expected to be a reference, value given in /in/Krl9H on line 8 array(2) { [0]=> int(3) [1]=> int(4) } array(2) { [0]=> int(3) [1]=> int(4) }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_diff_uassoc() in /in/Krl9H on line 8
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_diff_uassoc() in /in/Krl9H on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_diff_uassoc() in /in/Krl9H on line 8