3v4l.org

run code in 300+ PHP versions simultaneously
<?php // price matrix: first index is y-axis, second is x-axis $prices = [ 600 => [ 600 => 224, 700 => 246, 800 => 266, 900 => 291, 1000 => 313 ], // here you put the rest... ]; //then echo the table; echo "<table><tr>"; echo "<td></td>"; // first empty cell; foreach ($prices[array_keys($prices)[0]] as $y_axis => $xprices){ echo "<td>".$y_axis."</td>"; } echo "</tr>";//finish setting up the header foreach ($prices as $y_axis => $xprices) { echo "<tr>"; echo "<td>".$y_axis."</td>"; foreach($xprices as $y_axis=> $price){ echo "<td>".$price."</td>"; } echo "</tr>"; } echo "</table>";
Output for git.master, git.master_jit, rfc.property-hooks
<table><tr><td></td><td>600</td><td>700</td><td>800</td><td>900</td><td>1000</td></tr><tr><td>600</td><td>224</td><td>246</td><td>266</td><td>291</td><td>313</td></tr></table>

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