3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = [ 'main' => [ 'number1' => '9000.99', 'number2' => 'nonono' ] ]; $arr2 = [ 'key1' => ['number1','b','c'] ]; function read($arr, $arr2) { foreach ($arr as $key => $value) { if (is_array($value)) { read($value, $arr2); } else { echo $key; foreach($arr2 as $action) { var_dump($action); if(array_key_exists($key, array_flip($action))){ echo $value; } } } } } read($arr1, $arr2);
Output for git.master, git.master_jit, rfc.property-hooks
number1array(3) { [0]=> string(7) "number1" [1]=> string(1) "b" [2]=> string(1) "c" } 9000.99number2array(3) { [0]=> string(7) "number1" [1]=> string(1) "b" [2]=> string(1) "c" }

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