3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $days = array("Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"); $rooms = array("OR 1","OR 2","OR 3","OR 4","OR 5","OR 6","OR 7","OR 8","Endo 1","Endo 2"); $blocks = array("1","2","3","4","5"); echo "<table>"; foreach($days as $day) { echo "<tr>"; echo "<td>" . $day . "</td>"; echo "<td>"; echo "<table>"; foreach($rooms as $room) { echo "<tr>"; echo "<td>" . $room . "</td>"; echo "<td>"; echo "<table>"; foreach($blocks as $block) { echo "<tr>"; echo "<td>" . $block . "</td>"; echo "</tr>"; } echo "</table>"; echo "</td>"; echo "</tr>"; } echo "</table>"; echo "</td>"; echo "</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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.10.0120.00916.39
7.3.00.0070.01116.61
7.2.130.0100.01016.83
7.2.120.0090.00316.72
7.2.110.0040.01116.40
7.2.100.0030.00916.76
7.2.90.0090.00616.79
7.2.80.0080.00316.83
7.2.70.0060.00916.66
7.2.60.0030.01016.84
7.2.50.0050.00516.73
7.2.40.0110.00316.88
7.2.30.0170.00016.85
7.2.20.0100.00316.69
7.2.10.0130.00316.64
7.2.00.0120.00218.12
7.1.250.0000.01515.37
7.1.100.0070.01018.26
7.1.70.0180.00416.38
7.1.60.0100.00619.48
7.1.50.0200.00716.98
7.1.00.0070.07722.41
7.0.200.0090.00416.59
7.0.60.0100.04719.95
7.0.50.0100.05317.85
7.0.40.0170.08719.90
7.0.30.0200.04020.20
7.0.20.0230.04020.20
7.0.10.0100.08320.09
7.0.00.0070.04020.32
5.6.280.0030.07721.13
5.6.210.0000.07020.77
5.6.200.0130.05318.19
5.6.190.0200.04320.77
5.6.180.0270.05020.56
5.6.170.0330.08320.38
5.6.160.0000.04720.37
5.6.150.0030.04018.21
5.6.140.0100.04318.11
5.6.130.0030.08718.17
5.6.120.0130.04721.02
5.6.110.0070.08021.04
5.6.100.0100.08321.09
5.6.90.0030.04021.10
5.6.80.0170.07020.41
5.5.350.3930.04320.45
5.5.340.0130.04317.88
5.5.330.0100.07720.21
5.5.320.0230.04320.28
5.5.310.0400.07020.16
5.5.300.0000.07317.96
5.5.290.0030.05017.92
5.5.280.0130.08020.90
5.5.270.0100.05720.88
5.5.260.0130.07720.87
5.5.250.0000.05320.59
5.5.240.0200.06020.07
5.4.450.0200.04719.42
5.4.440.0130.04319.13
5.4.430.0170.03719.48
5.4.420.0170.03719.44
5.4.410.0130.04019.25
5.4.400.0170.03319.25
5.4.390.0170.03318.92
5.4.380.0230.03018.80
5.4.370.0170.04319.09
5.4.360.0230.04019.13
5.4.350.0270.06719.13
5.4.340.0200.07719.21
5.4.320.0170.04719.09
5.4.310.0200.03719.05
5.4.300.0300.03719.09
5.4.290.0230.04719.21
5.4.280.0170.04718.80
5.4.270.0230.03718.91
5.4.260.0200.05319.21
5.4.250.0200.03718.91
5.4.240.0270.04719.12
5.4.230.0400.05719.10
5.4.220.0200.03719.09
5.4.210.0270.06019.09
5.4.200.0230.06019.21
5.4.190.0200.03719.14
5.4.180.0200.05718.87
5.4.170.0270.04318.78
5.4.160.0270.06718.90
5.4.150.0200.04318.89
5.4.140.0300.06016.46
5.4.130.0230.05016.26
5.4.120.0300.07016.29
5.4.110.0270.05016.39
5.4.100.0300.05016.23
5.4.90.0230.07316.30
5.4.80.0270.05016.37
5.4.70.0300.05316.50
5.4.60.0230.06716.37
5.4.50.0230.03316.18
5.4.40.0270.06716.50
5.4.30.0270.04016.20
5.4.20.0230.05716.28
5.4.10.0270.05716.48
5.4.00.0330.05715.67
5.3.290.0270.04314.63
5.3.280.0200.03714.44
5.3.270.0330.06714.70
5.3.260.0230.05314.59
5.3.250.0300.05014.46
5.3.240.0270.03014.50
5.3.230.0230.07714.63
5.3.220.0200.07314.44
5.3.210.0270.07014.53
5.3.200.0130.04314.53
5.3.190.0300.06714.45
5.3.180.0370.06014.43
5.3.170.0200.06314.43
5.3.160.0170.07314.52
5.3.150.0130.05714.62
5.3.140.0230.06314.59
5.3.130.0230.06714.41
5.3.120.0200.06714.39
5.3.110.0130.07714.45
5.3.100.0170.05014.09
5.3.90.0170.06314.05
5.3.80.0270.04313.98
5.3.70.0170.07313.86
5.3.60.0230.04713.89
5.3.50.0230.06313.76
5.3.40.0200.04713.73
5.3.30.0330.03313.95
5.3.20.0200.05313.54
5.3.10.0170.04013.69
5.3.00.0300.04013.70
5.2.170.0200.03311.17
5.2.160.0200.04711.31
5.2.150.0170.03311.17
5.2.140.0230.02711.09
5.2.130.0200.04710.96
5.2.120.0130.05310.97
5.2.110.0200.03710.97
5.2.100.0130.03010.95
5.2.90.0130.03010.96
5.2.80.0200.04310.94
5.2.70.0200.04011.04
5.2.60.0170.03310.91
5.2.50.0170.02710.96
5.2.40.0130.02710.86
5.2.30.0130.02710.84
5.2.20.0100.03311.07
5.2.10.0130.05310.81
5.2.00.0100.06010.81
5.1.60.0170.03710.81
5.1.50.0230.03710.81
5.1.40.0170.05310.81
5.1.30.0230.02710.81
5.1.20.0170.05710.81
5.1.10.0200.05710.81
5.1.00.0130.05010.81
5.0.50.0100.05010.81
5.0.40.0170.03010.81
5.0.30.0130.06310.81
5.0.20.0100.04310.81
5.0.10.0100.04310.81
5.0.00.0100.05710.81
4.4.90.0030.02010.81
4.4.80.0070.02010.81
4.4.70.0100.03010.81
4.4.60.0100.01710.81
4.4.50.0100.03710.81
4.4.40.0100.05310.81
4.4.30.0100.03310.81
4.4.20.0200.02710.81
4.4.10.0130.02710.81
4.4.00.0070.05710.81
4.3.110.0130.03310.81
4.3.100.0100.03710.81
4.3.90.0070.03310.81
4.3.80.0070.06010.81
4.3.70.0070.04010.81
4.3.60.0070.02710.81
4.3.50.0170.02310.81
4.3.40.0100.02310.81
4.3.30.0070.03310.81
4.3.20.0030.01710.81
4.3.10.0030.03010.81
4.3.00.0130.03010.81