3v4l.org

run code in 300+ PHP versions simultaneously
<?php rendMultiplicationTable( 1, 12 ); function rendMultiplicationTable($start, $end) { echo '<table>'; echo '<tr><th>&nbsp;</th>'; for ($x = $start; $x <= $end; $x++) { echo '<th>' . $x . '</th>'; } echo "</tr>\n"; for ($y = $start; $y <= $end; $y++) { echo '<tr><th>' . $y . '</th>'; for ($z = $start; $z <= $end; $z++) { echo '<td>' . ($y * $z) . '</td>'; } echo "</tr>\n"; } 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)
8.3.60.0090.00616.63
8.3.50.0150.00421.95
8.3.40.0060.00918.66
8.3.30.0110.00718.80
8.3.20.0090.00920.19
8.3.10.0040.00423.66
8.3.00.0080.00020.77
8.2.180.0100.01016.63
8.2.170.0150.00622.96
8.2.160.0100.00320.29
8.2.150.0020.00524.18
8.2.140.0000.00824.66
8.2.130.0120.00626.16
8.2.120.0110.00019.36
8.2.110.0060.00322.08
8.2.100.0080.00418.09
8.2.90.0050.00319.13
8.2.80.0040.00417.97
8.2.70.0090.00017.63
8.2.60.0110.00317.66
8.2.50.0000.00818.07
8.2.40.0040.00419.82
8.2.30.0070.00018.23
8.2.20.0040.00417.72
8.2.10.0000.00818.07
8.2.00.0060.00317.60
8.1.280.0070.01125.92
8.1.270.0040.00423.62
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00323.96
8.1.230.0040.00719.15
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0070.00317.23
8.1.190.0000.00817.35
8.1.180.0080.00018.10
8.1.170.0080.00018.71
8.1.160.0040.00422.05
8.1.150.0040.00418.50
8.1.140.0040.00417.35
8.1.130.0070.00017.72
8.1.120.0000.00717.46
8.1.110.0000.00917.46
8.1.100.0050.00317.35
8.1.90.0000.00717.49
8.1.80.0000.00817.43
8.1.70.0000.00717.30
8.1.60.0040.00417.46
8.1.50.0050.00517.56
8.1.40.0090.00017.52
8.1.30.0030.00617.48
8.1.20.0000.00817.54
8.1.10.0060.00317.50
8.1.00.0040.00417.46
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.36
8.0.270.0070.00017.24
8.0.260.0000.00617.29
8.0.250.0050.00216.93
8.0.240.0060.00316.83
8.0.230.0050.00216.91
8.0.220.0000.00716.90
8.0.210.0000.00716.95
8.0.200.0070.00016.96
8.0.190.0000.00716.82
8.0.180.0000.00716.77
8.0.170.0060.00316.88
8.0.160.0050.00316.79
8.0.150.0080.00016.83
8.0.140.0040.00416.85
8.0.130.0060.00013.31
8.0.120.0000.00816.87
8.0.110.0020.00516.79
8.0.100.0030.00516.68
8.0.90.0000.00816.77
8.0.80.0120.00616.83
8.0.70.0040.00416.85
8.0.60.0040.00416.66
8.0.50.0050.00316.88
8.0.30.0120.00817.10
8.0.20.0080.01217.40
8.0.10.0040.00416.84
8.0.00.0100.01016.87
7.4.330.0000.00515.03
7.4.320.0030.00316.52
7.4.300.0060.00016.51
7.4.290.0000.00716.41
7.4.280.0000.00716.46
7.4.270.0000.00716.52
7.4.260.0040.00416.55
7.4.250.0040.00416.55
7.4.240.0040.00316.44
7.4.230.0030.00316.50
7.4.220.0040.01216.50
7.4.210.0090.01216.54
7.4.200.0070.00016.60
7.4.160.0050.01316.49
7.4.150.0140.00617.40
7.4.140.0100.00917.86
7.4.130.0050.01316.54
7.4.120.0080.01116.44
7.4.110.0160.00916.48
7.4.100.0080.01116.60
7.4.90.0150.00616.45
7.4.80.0070.01619.39
7.4.70.0120.00616.57
7.4.60.0080.01616.55
7.4.50.0040.00416.41
7.4.40.0120.00616.36
7.4.30.0120.00416.48
7.4.00.0140.00014.86
7.3.330.0000.00513.15
7.3.320.0000.00513.37
7.3.310.0000.00716.27
7.3.300.0060.00016.32
7.3.290.0070.00716.27
7.3.280.0090.01116.35
7.3.270.0070.01017.40
7.3.260.0110.01116.47
7.3.250.0130.01016.38
7.3.240.0120.00616.32
7.3.230.0110.00716.52
7.3.210.0110.00816.54
7.3.200.0070.01019.39
7.3.190.0080.01116.56
7.3.180.0110.00516.43
7.3.170.0120.00816.31
7.3.160.0120.00616.50
7.3.120.0090.00614.96
7.2.330.0090.01216.50
7.2.320.0100.01316.45
7.2.310.0040.01316.85
7.2.300.0070.01016.77
7.2.290.0060.01316.80
7.2.60.0070.00716.84
7.2.00.0060.00919.60
7.1.200.0040.00815.64
7.1.100.0060.00317.87
7.1.70.0040.00416.84
7.1.60.0120.01219.70
7.1.50.0100.01016.70
7.1.00.0070.07322.36
7.0.200.0030.00616.92
7.0.140.0070.06722.08
7.0.60.0200.07019.83
7.0.50.0070.05017.86
7.0.40.0170.07720.24
7.0.30.0530.07020.24
7.0.20.0270.06320.17
7.0.10.0230.07320.12
7.0.00.0170.07320.06
5.6.280.0030.07320.91
5.6.210.0100.05720.56
5.6.200.0100.08018.17
5.6.190.0170.05020.46
5.6.180.0370.06020.59
5.6.170.0400.07720.50
5.6.160.0000.04720.57
5.6.150.0000.04718.19
5.6.140.0070.05718.27
5.6.130.0130.06018.15
5.6.120.0170.06321.02
5.6.110.0000.08721.13
5.6.100.0070.08720.95
5.6.90.0000.04720.99
5.6.80.0000.05320.35
5.6.70.0230.05720.52
5.5.350.0170.08020.45
5.5.340.0070.05717.96
5.5.330.0100.05320.26
5.5.320.0170.07020.14
5.5.310.0230.08320.35
5.5.300.0030.04318.09
5.5.290.0100.07318.02
5.5.280.0030.09020.80
5.5.270.0070.06020.65
5.5.260.0130.03720.77
5.5.250.0100.07320.59
5.5.240.0070.06720.19
5.4.450.0770.06319.48
5.4.440.0800.06719.58
5.4.430.0670.08019.61
5.4.420.0770.00019.32
5.4.410.0170.07019.04
5.4.400.0230.05318.51
5.4.390.0230.05318.73
5.4.380.0270.05318.70
5.4.370.0100.05318.62
5.4.360.0130.05318.79
5.4.350.0050.04012.02
5.4.340.0070.04912.02
5.4.320.0070.03612.50
5.4.310.0070.05412.50
5.4.300.0060.04312.50
5.4.290.0050.04612.50
5.4.280.0070.03812.40
5.4.270.0110.03412.40
5.4.260.0090.03712.40
5.4.250.0060.04312.40
5.4.240.0060.04012.40
5.4.230.0090.03912.39
5.4.220.0080.03612.39
5.4.210.0050.03712.39
5.4.200.0060.04012.39
5.4.190.0030.04212.39
5.4.180.0080.03612.39
5.4.170.0060.03912.39
5.4.160.0060.04012.39
5.4.150.0080.03712.39
5.4.140.0020.04312.07
5.4.130.0060.03712.06
5.4.120.0090.03412.02
5.4.110.0090.03812.02
5.4.100.0100.04012.01
5.4.90.0080.03912.01
5.4.80.0110.04712.01
5.4.70.0110.04012.01
5.4.60.0050.03812.01
5.4.50.0040.03912.00
5.4.40.0060.04412.00
5.4.30.0050.04412.00
5.4.20.0050.03811.99
5.4.10.0060.03612.00
5.4.00.0080.03811.48
5.3.290.0060.04312.80
5.3.280.0080.04012.70
5.3.270.0090.04912.72
5.3.260.0060.04012.72
5.3.250.0080.03912.72
5.3.240.0090.06012.72
5.3.230.0110.04112.71
5.3.220.0070.04012.68
5.3.210.0080.04012.68
5.3.200.0090.04712.68
5.3.190.0060.04212.67
5.3.180.0120.03412.67
5.3.170.0040.04112.67
5.3.160.0110.03412.67
5.3.150.0070.03812.68
5.3.140.0080.03512.66
5.3.130.0050.04112.66
5.3.120.0060.04012.66
5.3.110.0070.03912.66
5.3.100.0040.04112.11
5.3.90.0050.03912.10
5.3.80.0090.03812.09
5.3.70.0060.03812.09
5.3.60.0060.03812.08
5.3.50.0050.04512.02
5.3.40.0140.04312.02
5.3.30.0250.07511.98
5.3.20.0120.05011.76
5.3.10.0130.04511.73
5.3.00.0130.04511.71
5.2.170.0080.0419.21
5.2.160.0070.0409.21
5.2.150.0080.0389.21
5.2.140.0100.0369.21
5.2.130.0110.0339.17
5.2.120.0100.0249.17
5.2.110.0090.0269.18
5.2.100.0050.0309.18
5.2.90.0060.0319.17
5.2.80.0030.0459.17
5.2.70.0060.0429.17
5.2.60.0110.0319.13
5.2.50.0040.0339.09
5.2.40.0080.0289.07
5.2.30.0050.0329.04
5.2.20.0070.0279.03
5.2.10.0020.0338.94
5.2.00.0070.0288.80
5.1.60.0020.0308.08
5.1.50.0070.0258.08
5.1.40.0100.0228.06
5.1.30.0040.0298.41
5.1.20.0050.0298.43
5.1.10.0060.0258.16
5.1.00.0040.0278.16
5.0.50.0090.0166.63
5.0.40.0030.0226.50
5.0.30.0050.0326.31
5.0.20.0070.0176.27
5.0.10.0070.0176.26
5.0.00.0030.0326.25
4.4.90.0030.0174.78
4.4.80.0020.0174.75
4.4.70.0070.0134.76
4.4.60.0010.0184.76
4.4.50.0040.0164.77
4.4.40.0020.0314.70
4.4.30.0020.0184.75
4.4.20.0060.0144.85
4.4.10.0030.0184.85
4.4.00.0040.0264.76
4.3.110.0030.0194.66
4.3.100.0060.0174.66
4.3.90.0050.0204.64
4.3.80.0030.0344.59
4.3.70.0070.0204.63
4.3.60.0110.0174.63
4.3.50.0130.0164.62
4.3.40.0060.0354.54
4.3.30.0040.0233.30
4.3.20.0040.0173.28
4.3.10.0030.0153.24
4.3.00.0100.0236.67

preferences:
30.6 ms | 401 KiB | 5 Q