- var_dump: documentation ( source)
- array_udiff: documentation ( source)
<?php
$items = array(new \stdClass(), new \stdClass());
$udiff = array_udiff($items, $items, function ($a, $b) {
if ($a < $b) return -1;
if ($a > $b) return 1;
return 0;
});
var_dump($udiff);