3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump( array_udiff( [$a = new \stdClass, $b = new \stdClass], [$c = new \stdClass, $b], function ($first, $second) { return $first === $second ? 0 : 1; } ) );
based on 77Oj0
Output for 7.0.0 - 7.2.6
array(1) { [0]=> object(stdClass)#1 (0) { } }
Output for 5.5.0 - 5.6.28
array(2) { [0]=> object(stdClass)#1 (0) { } [1]=> object(stdClass)#2 (0) { } }