3v4l.org

run code in 300+ PHP versions simultaneously
<?php function math($x) { $results = $x * $x; return $results; } echo "<table border='1'> <tr> <th>Numbers</th> <th>result</th> </tr>"; for ($x=0; $x<=20; $x++) { echo "<tr>"; echo "<td>" . $x . " * " . $x . "</td>"; echo "<td>" . math($x) . "</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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0180.00318.43
8.3.50.0090.00621.02
8.3.40.0040.01118.54
8.3.30.0180.00019.09
8.3.20.0040.00420.29
8.3.10.0040.00421.82
8.3.00.0040.00422.39
8.2.180.0090.00616.38
8.2.170.0090.00622.96
8.2.160.0110.00719.26
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.01126.16
8.2.120.0080.00019.25
8.2.110.0070.00422.14
8.2.100.0100.00717.91
8.2.90.0030.00619.17
8.2.80.0000.00817.97
8.2.70.0030.00517.50
8.2.60.0000.00817.55
8.2.50.0050.00318.07
8.2.40.0080.00318.14
8.2.30.0040.00417.96
8.2.20.0000.00817.75
8.2.10.0000.00917.77
8.2.00.0080.00017.82
8.1.280.0100.00725.92
8.1.270.0080.00022.14
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.86
8.1.230.0070.00319.10
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0030.00717.25
8.1.190.0000.00817.53
8.1.180.0080.00018.66
8.1.170.0000.00818.45
8.1.160.0000.00722.07
8.1.150.0000.00718.61
8.1.140.0040.00417.46
8.1.130.0000.00717.88
8.1.120.0030.00517.38
8.1.110.0000.00817.35
8.1.100.0000.00817.48
8.1.90.0040.00417.36
8.1.80.0040.00417.52
8.1.70.0030.00317.45
8.1.60.0030.00517.57
8.1.50.0000.00817.45
8.1.40.0000.00717.41
8.1.30.0080.00017.62
8.1.20.0030.00517.61
8.1.10.0030.00617.52
8.1.00.0000.00717.50
8.0.300.0020.00518.77
8.0.290.0040.00417.05
8.0.280.0070.00018.49
8.0.270.0080.00017.14
8.0.260.0000.00816.84
8.0.250.0000.00716.95
8.0.240.0000.00717.01
8.0.230.0000.00816.89
8.0.220.0000.00816.89
8.0.210.0030.00316.80
8.0.200.0040.00416.95
8.0.190.0030.00516.93
8.0.180.0050.00216.92
8.0.170.0080.00016.81
8.0.160.0040.00416.85
8.0.150.0000.00716.79
8.0.140.0040.00416.84
8.0.130.0060.00013.29
8.0.120.0000.00816.82
8.0.110.0000.00716.97
8.0.100.0070.00016.85
8.0.90.0000.00716.79
8.0.80.0030.01316.93
8.0.70.0070.00016.77
8.0.60.0040.00416.73
8.0.50.0050.00316.87
8.0.30.0070.01316.96
8.0.20.0090.00917.40
8.0.10.0040.00416.82
8.0.00.0120.01216.82
7.4.330.0060.00015.00
7.4.320.0030.00316.62
7.4.300.0000.00616.53
7.4.290.0070.00016.61
7.4.280.0030.00316.41
7.4.270.0070.00016.63
7.4.260.0030.00316.64
7.4.250.0040.00416.43
7.4.240.0050.00216.43
7.4.230.0070.00016.70
7.4.220.0030.01316.60
7.4.210.0040.01116.62
7.4.200.0070.00016.42
7.4.190.0000.00716.75
7.4.160.0120.00416.50
7.4.150.0090.00917.40
7.4.140.0160.00517.86
7.4.130.0110.00716.46
7.4.120.0100.01116.66
7.4.110.0100.00916.48
7.4.100.0030.01516.65
7.4.90.0080.00916.42
7.4.80.0030.01319.39
7.4.70.0080.00816.36
7.4.60.0140.01116.29
7.4.50.0000.00816.29
7.4.40.0030.01022.77
7.4.30.0040.01416.41
7.4.00.0030.00914.94
7.3.330.0000.00513.30
7.3.320.0050.00013.12
7.3.310.0030.00316.32
7.3.300.0000.00716.18
7.3.290.0070.00716.29
7.3.280.0080.00716.28
7.3.270.0120.00617.40
7.3.260.0090.00916.31
7.3.250.0140.00816.51
7.3.240.0180.00016.38
7.3.230.0130.00916.66
7.3.210.0080.00816.45
7.3.200.0070.01019.39
7.3.190.0120.00916.41
7.3.180.0140.00716.66
7.3.170.0070.01116.54
7.3.160.0090.01316.25
7.3.120.0080.00314.86
7.2.330.0060.01916.42
7.2.320.0040.01516.75
7.2.310.0030.01316.76
7.2.300.0120.00616.71
7.2.290.0080.00816.64
7.1.200.0070.00715.54
7.1.70.0030.00717.16
7.1.60.0070.01719.82
7.1.50.0090.01516.70
7.1.00.0030.03322.24
7.0.200.0080.00316.69
7.0.140.0030.07722.14
7.0.60.0000.08720.08
7.0.50.0030.08317.89
7.0.40.0100.06320.26
7.0.30.0270.08320.20
7.0.20.0330.07320.10
7.0.10.0030.06320.10
7.0.00.0030.05020.09
5.6.280.0030.07321.13
5.6.210.0070.06720.45
5.6.200.0100.08018.16
5.6.190.0030.05720.52
5.6.180.0300.06720.52
5.6.170.0270.07720.45
5.6.160.0130.07720.71
5.6.150.0030.04018.21
5.6.140.0070.08018.18
5.6.130.0130.04718.23
5.6.120.0030.09021.12
5.6.110.0030.06320.97
5.6.100.0130.03320.98
5.6.90.0130.07020.99
5.6.80.0100.07320.40
5.5.350.4170.04020.32
5.5.340.0030.04318.07
5.5.330.0030.06320.19
5.5.320.0270.04320.51
5.5.310.0200.08020.35
5.5.300.0100.06717.95
5.5.290.0030.08717.98
5.5.280.0170.07720.74
5.5.270.0030.08020.80
5.5.260.0130.07720.65
5.5.250.0100.06720.69
5.5.240.0030.08020.27
5.4.450.0770.05019.33
5.4.440.0570.04319.30
5.4.430.1400.04319.24
5.4.420.1470.04019.54
5.4.410.0970.04319.25
5.4.400.0400.03719.31
5.4.390.1130.03319.09
5.4.380.1000.05018.55
5.4.370.0930.05718.79
5.4.360.1000.05318.74
5.4.350.0870.05718.76
5.4.340.0870.05018.75
5.4.320.0060.04512.50
5.4.310.0090.03512.50
5.4.300.0070.03812.50
5.4.290.0040.04312.50
5.4.280.0070.04012.40
5.4.270.0050.04212.40
5.4.260.0130.07318.89
5.4.250.0130.05718.99
5.4.240.0170.06018.79
5.4.230.0030.06018.65
5.4.220.0130.05018.96
5.4.210.0100.04718.79
5.4.200.0070.05018.93
5.4.190.0030.06018.71
5.4.180.0130.04318.99
5.4.170.0200.06018.74
5.4.160.0170.06018.96
5.4.150.0070.06018.94
5.4.140.0070.05316.40
5.4.130.0130.04716.34
5.4.120.0070.05016.43
5.4.110.0070.07316.64
5.4.100.0000.06016.47
5.4.90.0030.07716.39
5.4.80.0170.06016.40
5.4.70.0130.04316.62
5.4.60.0100.06316.38
5.4.50.0170.06316.38
5.4.40.0170.05316.55
5.4.30.0030.05316.57
5.4.20.0100.04716.60
5.4.10.0130.07316.45
5.4.00.0170.05715.81
5.3.290.0050.04712.80
5.3.280.0100.04714.81
5.3.270.0130.05014.43
5.3.260.0100.05314.50
5.3.250.0030.05314.68
5.3.240.0070.05014.82
5.3.230.0030.06014.68
5.3.220.0100.05014.64
5.3.210.0000.06014.65
5.3.200.0100.05014.65
5.3.190.0070.05314.63
5.3.180.0070.05714.57
5.3.170.0000.07014.53
5.3.160.0100.05014.39
5.3.150.0070.05314.70
5.3.140.0070.05714.63
5.3.130.0130.06714.65
5.3.120.0100.06714.53
5.3.110.0000.07314.72
5.3.100.0200.05714.26
5.3.90.0030.05714.00
5.3.80.0070.06014.19
5.3.70.0100.05014.01
5.3.60.0030.05714.08
5.3.50.0130.05014.13
5.3.40.0100.04713.77
5.3.30.0130.04313.81
5.3.20.0230.05313.85
5.3.10.0170.03713.73
5.3.00.0200.05013.54
5.2.170.0100.05011.21
5.2.160.0100.05711.21
5.2.150.0100.04711.11
5.2.140.0030.04311.09
5.2.130.0100.04011.19
5.2.120.0030.04311.19
5.2.110.0000.04311.10
5.2.100.0100.05011.08
5.2.90.0070.04311.31
5.2.80.0000.06311.06
5.2.70.0030.04311.17
5.2.60.0070.05311.13
5.2.50.0000.04311.24
5.2.40.0030.04011.09
5.2.30.0070.04011.14
5.2.20.0030.04011.03
5.2.10.0100.03710.92
5.2.00.0030.04010.82
5.1.60.0070.05010.04
5.1.50.0070.03310.01
5.1.40.0100.02710.07
5.1.30.0070.03310.28
5.1.20.0030.05310.43
5.1.10.0100.03010.13
5.1.00.0100.03010.15
5.0.50.0070.0408.64
5.0.40.0030.0378.33
5.0.30.0030.0438.17
5.0.20.0030.0278.17
5.0.10.0070.0378.18
5.0.00.0000.0438.25
4.4.90.0030.0277.36
4.4.80.0030.0207.36
4.4.70.0070.0237.36
4.4.60.0000.0307.36
4.4.50.0000.0237.36
4.4.40.0100.0377.36
4.4.30.0030.0207.36
4.4.20.0030.0307.36
4.4.10.0000.0237.36
4.4.00.0000.0507.36
4.3.110.0030.0337.36
4.3.100.0030.0207.36
4.3.90.0030.0207.36
4.3.80.0030.0337.36
4.3.70.0030.0237.36
4.3.60.0000.0237.36
4.3.50.0070.0237.36
4.3.40.0100.0237.36
4.3.30.0030.0207.36
4.3.20.0030.0207.36
4.3.10.0030.0207.36
4.3.00.0000.01313.16

preferences:
71.15 ms | 401 KiB | 5 Q