3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = array( 105 => '101,Utility,\N', 102 => '101,Utility,\N', 103 => '105,Parker,Peter', 104 => 'Rahul Ippar' ); $arr2 = array( 108 => '101,Utility1,Floor', 120 => '101,Utility2,\N', 130 => '105,Parker,Peter', 140 => 'Rahul Ippar' ); $result = array_combine( array_keys(array_intersect( $arr2, $arr1 )), array_keys(array_intersect( $arr1, $arr2 )) ); var_dump($result);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [130]=> int(103) [140]=> int(104) }

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:
65.12 ms | 401 KiB | 8 Q