3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $order = [299084, 298958,192813,293366,292751]; $package = [183240,292751,293366,299084,298958]; var_dump(array_diff($first, $second));
based on nW5sF
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.6
Notice: Undefined variable: first in /in/cCXLc on line 6 Notice: Undefined variable: second in /in/cCXLc on line 6 Warning: array_diff(): Argument #1 is not an array in /in/cCXLc on line 6 NULL
Output for hhvm-3.15.4
Notice: Undefined variable: first in /in/cCXLc on line 6 Notice: Undefined variable: second in /in/cCXLc on line 6 Warning: array_diff() expects parameter 1 to be an array or collection in /in/cCXLc on line 6 NULL