3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array_1=array("woman","blue","1,70"); $array_2=array(array("woman","brown","1,71") ,array("man","brown","1,75") ,array("woman","blue","1,79") ,array("woman","blue","1,69") ); $heightspan = substr($array_1[2],0,3); $sex = $array_1[0]; foreach($array_2 as $arr){ if($arr[0] == $sex && substr($arr[2],0,3) == $heightspan){ $result[] = $arr; } } print_r($result);
Output for git.master_jit, git.master, rfc.property-hooks
Array ( [0] => Array ( [0] => woman [1] => brown [2] => 1,71 ) [1] => Array ( [0] => woman [1] => blue [2] => 1,79 ) )

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:
27.87 ms | 406 KiB | 5 Q