3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [ [ 'ID' => 11111, 'name' => 'ИМЯ', 'photo' => 'Ссылка', ], [ 'ID' => 22222, 'name' => 'Другое Имя', 'photo' => 'Другая ссылка', ], ]; $array2 = [ [ 'ID' => 11111, 'name' => 'ИМЯ', 'photo' => 'Ссылка', ], [ 'ID' => 33333, 'name' => 'Другое Имя', 'photo' => 'Другая ссылка', ], ]; var_dump(array_udiff($array2, $array1, function ($a, $b) { return ($a['ID'] <=> $b['ID']); }));
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { [1]=> array(3) { ["ID"]=> int(33333) ["name"]=> string(19) "Другое Имя" ["photo"]=> string(25) "Другая ссылка" } }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
43.04 ms | 405 KiB | 9 Q