3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = [ [ 'id' => '1', 'order' => '123238' ], [ 'id' => '2', 'order' => '33278' ], [ 'id' => '3', 'order' => '8892372' ] ]; $arr2 = [ [ 'id' => '1', 'order' => '349483' ], [ 'id' => '2', 'order' => '9837283' ], [ 'id' => '3', 'order' => '33278' ] ]; $arr1 = array_column($arr1, null , 'order'); $arr2 = array_column($arr2, null , 'order'); print_r(array_intersect_key($arr1,$arr2));
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [33278] => Array ( [id] => 2 [order] => 33278 ) )

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