3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(array_udiff([0,1,2,3,4], [2,3,5], function($a, $b){ return $a <=> $b; }));
Output for 7.0.0 - 7.2.0
array(3) { [0]=> int(0) [1]=> int(1) [4]=> int(4) }
Output for 5.4.11 - 5.6.28
Parse error: syntax error, unexpected '>' in /in/SVVCr on line 4
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/SVVCr on line 3
Process exited with code 255.