3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface TestInterface { public function testFunction($val); } abstract class TestClass implements TestInterface {} class TestSubClass extends TestClass { function testFunction($val) { return true; } } $tsc = new TestSubClass(); $tsc->testFunction('test');

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.00916.49
8.3.50.0140.00722.04
8.3.40.0150.00018.90
8.3.30.0030.01018.96
8.3.20.0040.00420.29
8.3.10.0000.00723.69
8.3.00.0080.00019.26
8.2.180.0070.00718.16
8.2.170.0100.01022.96
8.2.160.0130.00320.47
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00022.04
8.2.110.0090.00022.30
8.2.100.0040.00817.72
8.2.90.0020.00519.21
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0000.00817.93
8.2.50.0090.00018.07
8.2.40.0000.00918.34
8.2.30.0000.00718.06
8.2.20.0050.00317.74
8.2.10.0000.00718.03
8.2.00.0050.00317.55
8.1.280.0070.00725.92
8.1.270.0080.00023.98
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00623.82
8.1.230.0040.00818.98
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0040.00417.13
8.1.180.0030.00618.10
8.1.170.0060.00318.43
8.1.160.0060.00322.01
8.1.150.0050.00318.59
8.1.140.0040.00417.32
8.1.130.0030.00317.73
8.1.120.0000.00717.51
8.1.110.0000.00717.44
8.1.100.0040.00417.38
8.1.90.0040.00417.41
8.1.80.0000.00717.46
8.1.70.0030.00317.35
8.1.60.0030.00517.48
8.1.50.0000.00817.53
8.1.40.0050.00317.52
8.1.30.0040.00417.51
8.1.20.0060.00317.66
8.1.10.0000.00717.54
8.1.00.0030.00617.38
8.0.300.0000.00720.73
8.0.290.0000.00717.18
8.0.280.0070.00018.44
8.0.270.0080.00017.32
8.0.260.0060.00017.16
8.0.250.0070.00016.93
8.0.240.0000.00816.88
8.0.230.0030.00316.85
8.0.220.0030.00516.85
8.0.210.0030.00516.77
8.0.200.0000.00616.95
8.0.190.0040.00416.89
8.0.180.0040.00416.93
8.0.170.0000.00716.94
8.0.160.0040.00416.92
8.0.150.0020.00516.90
8.0.140.0040.00416.90
8.0.130.0020.00513.31
8.0.120.0050.00316.80
8.0.110.0000.00816.91
8.0.100.0070.00016.78
8.0.90.0040.00416.83
8.0.80.0030.01216.77
8.0.70.0050.00216.74
8.0.60.0040.00416.87
8.0.50.0000.00716.77
8.0.30.0070.01317.07
8.0.20.0100.00717.40
8.0.10.0040.00317.06
8.0.00.0120.00816.72
7.4.330.0050.00015.16
7.4.320.0000.00716.57
7.4.300.0060.00016.59
7.4.290.0040.00416.43
7.4.280.0030.00516.44
7.4.270.0070.00016.59
7.4.260.0040.00416.48
7.4.250.0040.00416.55
7.4.240.0020.00516.58
7.4.230.0030.00316.70
7.4.220.0030.02316.54
7.4.210.0130.00516.56
7.4.200.0040.00416.53
7.4.190.0070.00016.67
7.4.160.0120.00316.26
7.4.150.0100.01317.40
7.4.140.0110.00617.86
7.4.130.0110.00616.37
7.4.120.0060.01116.48
7.4.110.0000.01716.64
7.4.100.0140.00616.29
7.4.90.0050.01116.39
7.4.80.0030.02019.39
7.4.70.0060.01016.53
7.4.60.0070.01116.51
7.4.50.0060.00016.58
7.4.40.0080.00816.27
7.4.30.0060.01516.36
7.4.00.0070.00714.52
7.3.330.0070.00013.13
7.3.320.0030.00313.18
7.3.310.0040.00416.19
7.3.300.0070.00016.30
7.3.290.0060.00916.31
7.3.280.0080.01016.27
7.3.270.0170.00017.40
7.3.260.0110.01116.63
7.3.250.0090.00816.52
7.3.240.0100.00616.54
7.3.230.0030.01516.39
7.3.210.0070.01016.60
7.3.200.0140.01319.39
7.3.190.0120.00916.40
7.3.180.0120.00316.36
7.3.170.0170.00316.38
7.3.160.0100.00616.28
7.3.120.0030.00614.99
7.2.330.0090.00916.66
7.2.320.0110.00916.64
7.2.310.0180.00316.54
7.2.300.0060.01016.79
7.2.290.0130.01016.27
7.2.60.0170.00716.66
7.2.00.0040.00819.46
7.1.200.0090.00615.81
7.1.100.0130.00316.46
7.1.70.0000.01416.91
7.1.60.0070.01819.46
7.1.50.0040.01116.57
7.1.00.0070.07322.44
7.0.200.0000.00816.66
7.0.140.0070.07021.93
7.0.70.0000.06321.73
7.0.60.0100.07721.67
7.0.50.0000.04322.16
7.0.40.0030.05320.07
7.0.30.0070.05720.00
7.0.20.0030.08720.05
7.0.10.0000.08320.09
7.0.00.0070.05720.01
5.6.280.0000.07720.90
5.6.220.0030.07720.59
5.6.210.0030.08320.52
5.6.200.0000.04721.07
5.6.190.0100.06721.12
5.6.180.0030.05020.96
5.6.170.0070.03721.14
5.6.160.0070.08021.02
5.6.150.0000.07721.11
5.6.140.0100.07721.04
5.6.130.0000.08321.08
5.6.120.0030.08321.10
5.6.110.0030.06320.93
5.6.100.0070.07720.94
5.6.90.0070.08021.09
5.6.80.0070.08020.49
5.6.70.0030.08320.48
5.6.60.0130.04720.43
5.6.50.0070.07020.49
5.6.40.0100.07320.47
5.6.30.0130.07020.32
5.6.20.0000.07320.41
5.6.10.0070.08020.44
5.6.00.0100.07020.48
5.5.360.0000.08320.36
5.5.350.0030.08020.43
5.5.340.0070.07320.87
5.5.330.0070.06020.84
5.5.320.0030.03720.92
5.5.310.0070.03720.93
5.5.300.0000.04720.89
5.5.290.0000.06720.64
5.5.280.0030.08720.82
5.5.270.0070.07320.79
5.5.260.0070.08020.82
5.5.250.0070.08320.54
5.5.240.0070.08320.29
5.5.230.0000.09320.09
5.5.220.0030.06320.15
5.5.210.0070.05720.16
5.5.200.0030.08020.27
5.5.190.0000.08320.24
5.5.180.0030.08319.97
5.5.160.0070.06020.00
5.5.150.0070.07320.27
5.5.140.0100.06320.26
5.5.130.0070.08320.28
5.5.120.0000.07320.11
5.5.110.0030.05320.23
5.5.100.0030.04320.14
5.5.90.0030.04020.13
5.5.80.0130.07019.95
5.5.70.0030.07320.09
5.5.60.0000.08720.00
5.5.50.0000.07320.09
5.5.40.0030.07320.09
5.5.30.0070.07320.05
5.5.20.0070.08020.14
5.5.10.0030.07720.07
5.5.00.0070.07720.03
5.4.450.0070.07319.34
5.4.440.0130.07019.37
5.4.430.0000.05319.36
5.4.420.0000.08719.36
5.4.410.0000.07719.04
5.4.400.0070.07318.86
5.4.390.0000.07319.04
5.4.380.0000.07018.95
5.4.370.0070.07018.90
5.4.360.0070.07719.00
5.4.350.0070.06719.03
5.4.340.0030.07019.16
5.4.320.0070.07718.89
5.4.310.0030.06319.15
5.4.300.0000.08018.93
5.4.290.0030.07019.11
5.4.280.0000.06319.12
5.4.270.0100.07019.19
5.4.260.0030.04018.87
5.4.250.0070.07719.02
5.4.240.0030.06019.00
5.4.230.0030.05718.93
5.4.220.0030.07019.07
5.4.210.0030.06019.13
5.4.200.0130.07018.91
5.4.190.0000.04719.03
5.4.180.0000.08319.03
5.4.170.0070.06719.03
5.4.160.0000.07718.82
5.4.150.0000.08319.15
5.4.140.0030.06316.42
5.4.130.0030.05716.44
5.4.120.0030.04716.32
5.4.110.0000.08016.56
5.4.100.0030.06316.56
5.4.90.0070.05316.49
5.4.80.0000.07016.42
5.4.70.0070.05716.36
5.4.60.0000.05316.39
5.4.50.0030.07016.24
5.4.40.0070.07016.45
5.4.30.0070.05716.36
5.4.20.0000.07316.38
5.4.10.0070.06316.33
5.4.00.0030.06715.83
5.3.290.0000.08014.65
5.3.280.0230.05714.61
5.3.270.0070.07314.65
5.3.260.0100.07014.74
5.3.250.0030.05314.58
5.3.240.0030.07014.70
5.3.230.0030.05014.69
5.3.220.0000.06014.54
5.3.210.0000.07314.50
5.3.200.0000.07314.70
5.3.190.0100.07014.66
5.3.180.0070.07714.55
5.3.170.0030.07014.49
5.3.160.0030.07314.49
5.3.150.0100.05014.59
5.3.140.0000.08014.56
5.3.130.0070.06714.57
5.3.120.0030.07314.45
5.3.110.0030.07314.53
5.3.100.0000.05314.03
5.3.90.0000.05313.99
5.3.80.0070.07314.08
5.3.70.0030.06314.13
5.3.60.0070.07013.91
5.3.50.0000.06013.98
5.3.40.0030.03313.98
5.3.30.0070.05713.95
5.3.20.0170.05313.69
5.3.10.0030.06313.72
5.3.00.0070.06713.66
5.2.170.0030.04711.18
5.2.160.0000.04311.24
5.2.150.0000.04311.18
5.2.140.0030.05711.15
5.2.130.0070.06011.14
5.2.120.0030.05011.17
5.2.110.0000.06311.17
5.2.100.0030.04711.14
5.2.90.0070.05011.03
5.2.80.0070.04711.22
5.2.70.0030.04011.15
5.2.60.0030.04711.17
5.2.50.0030.06310.91
5.2.40.0030.05710.93
5.2.30.0030.06310.86
5.2.20.0030.05311.01
5.2.10.0000.06310.98
5.2.00.0070.06010.86
5.1.60.0000.05310.86
5.1.50.0030.05010.86
5.1.40.0030.05010.86
5.1.30.0030.04710.86
5.1.20.0070.04010.86
5.1.10.0000.05710.86
5.1.00.0070.05310.86
5.0.50.0000.03310.86
5.0.40.0030.02710.86
5.0.30.0030.06010.86
5.0.20.0000.04310.86
5.0.10.0000.03710.86
5.0.00.0000.05710.86
4.4.90.0030.03010.86
4.4.80.0000.02710.86
4.4.70.0000.03710.86
4.4.60.0000.03010.86
4.4.50.0000.03010.86
4.4.40.0000.05310.86
4.4.30.0030.02710.86
4.4.20.0000.03010.86
4.4.10.0000.03310.86
4.4.00.0030.05310.86
4.3.110.0000.01710.86
4.3.100.0030.03010.86
4.3.90.0070.03010.86
4.3.80.0000.05710.86
4.3.70.0030.03310.86
4.3.60.0000.03310.86
4.3.50.0000.03010.86
4.3.40.0030.03710.86
4.3.30.0000.03010.86
4.3.20.0000.03710.86
4.3.10.0000.03710.86
4.3.00.0000.03310.86

preferences:
28.41 ms | 401 KiB | 5 Q