@ 2015-11-19T21:58:40Z <?php
class Profile { public $n; };
$p1 = new Profile(); $p1->n = "Profile #1";
$p2 = new Profile(); $p2->n = "Profile #2";
$p3 = new Profile(); $p3->n = "Profile #3";
$a1 = array($p1, $p2);
$a2 = array($p2, $p3);
var_dump(array_udiff($a1, $a2, function ($a, $b) { var_dump($a->n, $b->n, $a === $b); return $a === $b ? 0 : 1; }));
var_dump(array_udiff($a1, $a2, function ($a, $b) { var_dump($a->n, $b->n, $a === $b); if ($a === $b) return 0; return $a > $b ? 1 : -1;}))
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Version System time (s) User time (s) Memory (MiB) 5.6.15 0.007 0.060 18.23 5.6.14 0.017 0.070 18.15 5.6.13 0.010 0.063 18.33 5.6.12 0.013 0.080 21.14 5.6.11 0.013 0.070 21.01 5.6.10 0.010 0.077 21.12 5.6.9 0.013 0.047 21.02 5.6.8 0.007 0.060 20.52 5.5.30 0.017 0.043 18.02 5.5.29 0.007 0.067 17.97 5.5.28 0.010 0.073 20.75 5.5.27 0.010 0.043 20.80 5.5.26 0.007 0.067 20.88 5.5.25 0.017 0.060 20.59 5.5.24 0.437 0.040 20.20
preferences:dark mode live preview
143.94 ms | 1394 KiB | 7 Q