3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array( "settings-main" => array( "option-1" => "val-1", "option-2" => "val-2", "sub-settings" => array( "my-option" => "some val", "my-option-2" => "some val2", ), ), "other-settings" => array( "other" => array( "option-1" => "a", "option-2" => "b", ), ), ); function recursive_arr($input){ foreach($input as $val){ if(is_array($val)){ recursive_arr($val); }else{ echo $val."\n"; } } } recursive_arr($input);
Output for git.master, git.master_jit, rfc.property-hooks
val-1 val-2 some val some val2 a b

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