3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mycars = array("Blue" => array("Car1","Car2"), "Red" => array("Car3")); foreach($mycars as $colour => $cars) { echo "<div class='$colour'>"; foreach($cars as $car) { echo "<h1>$car</h1>"; echo "<p>$colour</p>"; } echo "</div>"; }
Output for git.master, git.master_jit, rfc.property-hooks
<div class='Blue'><h1>Car1</h1><p>Blue</p><h1>Car2</h1><p>Blue</p></div><div class='Red'><h1>Car3</h1><p>Red</p></div>

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