3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bagel_price = 2.25; echo "<table border=\"1\" align=\"center\">"; echo "<tr><th>Quantity</th>"; echo "<th>Price</th></tr>"; for ( $counter = 1; $counter <= 20; $counter += 1) { echo "<tr><td>"; echo $counter; echo "</td><td>"; echo $ bagel_price * $counter; echo "</td></tr>"; } echo "</table>"; ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.0.20.0470.05020.16
7.0.10.0070.06020.06
7.0.00.0130.08320.16
5.6.170.0200.04720.40
5.6.160.0070.03720.54
5.6.150.0100.03318.27
5.6.140.0100.05018.11
5.6.130.0030.08318.23
5.6.120.0130.08320.90
5.6.110.0070.09020.98
5.6.100.0070.04021.13
5.6.90.0130.08020.98
5.6.80.0170.07720.37
5.5.310.0270.04320.39
5.5.300.0170.07317.97
5.5.290.0130.08017.91
5.5.280.0170.07320.97
5.5.270.0070.03720.79
5.5.260.0070.03720.68
5.5.250.0070.04020.61
5.5.240.0130.04720.19

preferences:
137.65 ms | 1398 KiB | 7 Q