3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr1 = [1,2,3,4,5,6]; $arr2 = [1,2,4,5]; $arr3 = [1,2,3,5]; $arr4 = array(); var_dump(array_values(array_diff($arr1,$arr2)));
based on tk1hv
Output for 5.4.2 - 7.2.0
array(2) { [0]=> int(3) [1]=> int(6) }
Output for 5.3.17 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/4v3m1 on line 3
Process exited with code 255.