3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array( array('ur_user_id'=> 1,'ur_fname'=>'PerA','ur_lname'=>'SonA'), array('ur_user_id'=> 2,'ur_fname'=>'PerB','ur_lname'=>'SonB'), array('ur_user_id'=> 3,'ur_fname'=>'PerC','ur_lname'=>'SonC'), ); $array2 = array( array('ur_user_id' => 5,'ur_code' => 'EE','ur_user_role' => 'testE'), array('ur_user_id' => 4,'ur_code' => 'DD','ur_user_role' => 'testD'), array('ur_user_id' => 6,'ur_code' => 'FF','ur_user_role' => 'testF'), array('ur_user_id' => 3,'ur_code' => 'CC','ur_user_role' => 'testC'), array('ur_user_id' => 1,'ur_code' => 'AA','ur_user_role' => 'testA'), array('ur_user_id' => 2,'ur_code' => 'BB','ur_user_role' => 'testB'), ); usort($array2,function($a,$b){ return strnatcmp($a['ur_user_id'],$b['ur_user_id']); }); print_r(array_uintersect($array2,$array1,function($a,$b){ return strnatcmp($a['ur_user_id'],$b['ur_user_id']); }));
Output for git.master_jit, git.master, rfc.property-hooks
Array ( [0] => Array ( [ur_user_id] => 1 [ur_code] => AA [ur_user_role] => testA ) [1] => Array ( [ur_user_id] => 2 [ur_code] => BB [ur_user_role] => testB ) [2] => Array ( [ur_user_id] => 3 [ur_code] => CC [ur_user_role] => testC ) )

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:
51.64 ms | 402 KiB | 8 Q