b : a // sorting $a started
c : b
y : x // sorting $b started
z : y
a : x // comparison started
a : b // -- what for?
b : x
b : c // -- what for?
c : x
array_udiff:["a","b","c"]
iterations: 9
$iteration_count = 0; echo "array_udiff:" . json_encode(array_udiff($a, $b, $compare)) . "\n"; echo "iterations: $iteration_count\n\n"; [/code] Вывод [code]b : a // sorting $a started c : b y : x // sorting $b started z : y a : x // comparison started a : b // -- what for? b : x b : c // -- what for? c : x array_udiff:["a","b","c"] iterations: 9 [/code] http://3v4l.org/3Me8o#v500