3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cars = array( array( "car" => "Ferrari", "model" => "Testarossa", "gearbox" => "Manual 5 Shift", "designer" => "Battista Pininfarina", "engine" => array( "HP" => 390, "Cylinders" => 12 ) ) ); foreach($cars as $details){ echo "<ul style=\"margin-bottom:10px;\">\n"; foreach($details as $key=>$item){ echo "\t<li><b>",ucfirst($key),":</b>"; if(!is_array($item)){ echo " $item</li>\n"; }else{ echo "\n\t\t<ul>\n"; foreach($item as $subkey=>$subval){ echo "\t\t\t<li><b>$subkey:</b> $subval</li>\n"; } echo "\t\t</ul>\n"; echo "\t</li>\n"; } } echo "</ul>\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
<ul style="margin-bottom:10px;"> <li><b>Car:</b> Ferrari</li> <li><b>Model:</b> Testarossa</li> <li><b>Gearbox:</b> Manual 5 Shift</li> <li><b>Designer:</b> Battista Pininfarina</li> <li><b>Engine:</b> <ul> <li><b>HP:</b> 390</li> <li><b>Cylinders:</b> 12</li> </ul> </li> </ul>

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