3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a[] = ["name" => "aaaaa", "projectId" => 0, "area" => "AreaX"]; $a[] = ["name" => "bbbbb", "projectId" => 2, "area" => ""]; $b[] = ["name" => "cccc", "projectId" => 1, "area" => ""]; $b[] = ["name" => "aaaaa", "projectId" => 0, "area" => "AreaX"]; $col = "projectId"; $res = array_diff(array_column($a, $col), array_column($b, $col)); print_r(array_map(function($id) use ($col) {return [$col => $id];}, $res));
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [1] => Array ( [projectId] => 2 ) )

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:
139.13 ms | 405 KiB | 5 Q