3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $itemList = array( array(0), array(1), array(0,1), array(0,1,2,3,4), array(new stdClass), array(new stdClass, new stdClass), array(new stdClass, new stdClass, new stdClass) ); function doCompare($a, $b){ return $a === $b; }; foreach ($itemList as $item) { var_dump(array_udiff($item, $item)); }
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_udiff(): at least 3 parameters are required, 2 given in /in/KTfak on line 18 NULL Warning: array_udiff(): at least 3 parameters are required, 2 given in /in/KTfak on line 18 NULL Warning: array_udiff(): at least 3 parameters are required, 2 given in /in/KTfak on line 18 NULL Warning: array_udiff(): at least 3 parameters are required, 2 given in /in/KTfak on line 18 NULL Warning: array_udiff(): at least 3 parameters are required, 2 given in /in/KTfak on line 18 NULL Warning: array_udiff(): at least 3 parameters are required, 2 given in /in/KTfak on line 18 NULL Warning: array_udiff(): at least 3 parameters are required, 2 given in /in/KTfak on line 18 NULL
Output for hhvm-3.10.0 - 3.12.0
Warning: array_udiff() expects exactly 3 parameters, 2 given in /in/KTfak on line 18 NULL Warning: array_udiff() expects exactly 3 parameters, 2 given in /in/KTfak on line 18 NULL Warning: array_udiff() expects exactly 3 parameters, 2 given in /in/KTfak on line 18 NULL Warning: array_udiff() expects exactly 3 parameters, 2 given in /in/KTfak on line 18 NULL Warning: array_udiff() expects exactly 3 parameters, 2 given in /in/KTfak on line 18 NULL Warning: array_udiff() expects exactly 3 parameters, 2 given in /in/KTfak on line 18 NULL Warning: array_udiff() expects exactly 3 parameters, 2 given in /in/KTfak on line 18 NULL
Output for 5.0.0 - 5.2.17
Warning: Wrong parameter count for array_udiff() in /in/KTfak on line 18 NULL Warning: Wrong parameter count for array_udiff() in /in/KTfak on line 18 NULL Warning: Wrong parameter count for array_udiff() in /in/KTfak on line 18 NULL Warning: Wrong parameter count for array_udiff() in /in/KTfak on line 18 NULL Warning: Wrong parameter count for array_udiff() in /in/KTfak on line 18 NULL Warning: Wrong parameter count for array_udiff() in /in/KTfak on line 18 NULL Warning: Wrong parameter count for array_udiff() in /in/KTfak on line 18 NULL
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_udiff() in /in/KTfak on line 18
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_udiff() in /in/KTfak on line 18
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_udiff() in /in/KTfak on line 18