3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = Array ( 'out' => Array ( 'in1' => Array ( 'd1' => "data1", 'd2' => "data2", 'd3' => "data3", 'd4' => "data4", 'd5' => "data5", 'd6' => "data6", 'd7' => "data7", 'd8' => "data8" ), 'in2' => Array ( 'd9' => Array ( 'b1' => "data9", 'b2' => "data10" ), 'd10' => Array ( 'b1' => "data11", 'b2' => "data12" ) ) ) ); function recursePrint($array, $prefix = '') { foreach($array AS $key => $value) { if(is_array($value)) { recursePrint($value, $prefix . "." . $key); } else { echo $prefix . "." . $key . "=" . $value . "\n"; } } } recursePrint($array);
Output for git.master, git.master_jit, rfc.property-hooks
.out.in1.d1=data1 .out.in1.d2=data2 .out.in1.d3=data3 .out.in1.d4=data4 .out.in1.d5=data5 .out.in1.d6=data6 .out.in1.d7=data7 .out.in1.d8=data8 .out.in2.d9.b1=data9 .out.in2.d9.b2=data10 .out.in2.d10.b1=data11 .out.in2.d10.b2=data12

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