3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bagel_price = 2.25; echo "<table border= \ "1 \ " align= \ "center \ ">"; echo "<tr><th>Qu antity</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.0330.04720.10
7.0.10.0070.07020.15
7.0.00.0070.09320.09
5.6.170.0300.08020.39
5.6.160.0170.06020.47
5.6.150.0070.03318.25
5.6.140.0130.06018.28
5.6.130.0100.03318.11
5.6.120.0030.08721.13
5.6.110.0070.08720.98
5.6.100.0100.08321.02
5.6.90.0100.05320.95
5.6.80.0100.03320.48
5.5.310.0100.05320.26
5.5.300.0070.08017.98
5.5.290.0070.06317.98
5.5.280.0170.06320.84
5.5.270.0000.04320.84
5.5.260.0030.04020.78
5.5.250.0100.08720.66
5.5.240.0030.04320.18

preferences:
140.2 ms | 1394 KiB | 7 Q