3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [ [ 'description' => 'aaaaaa', 'value' => 11111, 'id' => 14, ], [ 'description' => 'dddddd', 'value' => 44444, 'id' => 0, ], ]; $array2 = [ [ 'id' => 14, 'value' => 11111, 'description' => 'aaaaaa', ], [ 'id' => 15, 'value' => 222222, 'description' => 'bbbbbb', ], [ 'id' => 16, 'value' => 333333, 'description' => 'cccccc', ], ]; var_export( array_uintersect($array1, $array2, fn($a, $b) => $a <=> $b) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 'description' => 'aaaaaa', 'value' => 11111, 'id' => 14, ), )

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:
54.63 ms | 990 KiB | 4 Q