3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = array(new stdClass, new stdClass, new stdClass); $array2 = array(0, 1, 2); $compareFunction = function($a, $b) { if ($a === $b) { return 0; } elseif ($a > $b) { return 1; } else { return -1; } }; $result = array_udiff($array1, $array1, $compareFunction); var_dump($result);<?php
Output for 5.4.0 - 5.4.32
Parse error: syntax error, unexpected '<' in /in/bE6tU on line 18
Process exited with code 255.