3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface AAA{ function method($x); } interface BBB extends AAA{ function method($x, $y = null); } // this works: class AA_ implements AAA{ function method($x){} } class BB_ extends AA_ implements BBB{ function method($x, $y = null){ echo "lol"; } } (new BB_())->method(10,10); // this doesn't: abstract class AAA_ implements AAA{} abstract class BBB_ extends AAA_ implements BBB{}

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.5.30.0100.00617.34
8.5.20.0100.00820.08
8.5.10.0090.00819.93
8.5.00.0150.00720.02
8.4.180.0130.00923.82
8.4.170.0110.01123.88
8.4.160.0130.00923.85
8.4.150.0080.00516.79
8.4.140.0150.00517.77
8.4.130.0080.00717.80
8.4.120.0130.00720.64
8.4.110.0100.01222.63
8.4.100.0100.01017.79
8.4.90.0110.00917.87
8.4.80.0080.00920.50
8.4.70.0040.00717.71
8.4.60.0110.00917.94
8.4.50.0120.00917.86
8.4.40.0100.01019.43
8.4.30.0100.01017.63
8.4.20.0110.01117.93
8.4.10.0120.00817.36
8.3.300.0100.01320.32
8.3.290.0130.00620.83
8.3.280.0150.00618.21
8.3.270.0100.00916.57
8.3.260.0140.00516.36
8.3.250.0110.00919.02
8.3.240.0110.00816.89
8.3.230.0040.00616.79
8.3.220.0120.00819.21
8.3.210.0130.00816.86
8.3.200.0070.01216.75
8.3.190.0070.00116.53
8.3.180.0050.00416.56
8.3.170.0130.00616.86
8.3.160.0130.00318.57
8.3.150.0090.00917.20
8.3.140.0080.00016.54
8.3.130.0080.00018.74
8.3.120.0070.00318.79
8.3.110.0070.00720.94
8.3.100.0040.00424.06
8.3.90.0070.00726.77
8.3.80.0090.00017.97
8.3.70.0090.00916.63
8.3.60.0000.01516.75
8.3.50.0110.00821.15
8.3.40.0120.00318.62
8.3.30.0110.00418.84
8.3.20.0040.00418.64
8.3.10.0040.00419.96
8.3.00.0040.00417.68
8.2.300.0120.01118.90
8.2.290.0140.00520.53
8.2.280.0110.00718.34
8.2.270.0120.00616.46
8.2.260.0070.00718.79
8.2.250.0080.00017.35
8.2.240.0040.00418.86
8.2.230.0040.00422.58
8.2.220.0030.00637.54
8.2.210.0050.00326.77
8.2.200.0070.00318.42
8.2.190.0090.01216.58
8.2.180.0090.00616.88
8.2.170.0110.00422.96
8.2.160.0070.01319.25
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0080.00019.27
8.2.120.0040.00426.35
8.2.110.0100.00320.38
8.2.100.0080.00417.59
8.2.90.0090.00018.93
8.2.80.0030.00517.97
8.2.70.0000.00817.61
8.2.60.0040.00417.93
8.2.50.0030.00518.10
8.2.40.0040.00422.32
8.2.30.0050.00220.36
8.2.20.0030.00517.69
8.2.10.0040.00417.89
8.2.00.0000.00718.00
8.1.340.0090.01119.63
8.1.330.0100.00921.77
8.1.320.0120.00617.77
8.1.310.0110.00416.65
8.1.300.0110.00420.10
8.1.290.0040.00430.84
8.1.280.0140.00725.92
8.1.270.0000.00723.91
8.1.260.0120.00328.09
8.1.250.0040.00428.09
8.1.240.0030.00723.82
8.1.230.0070.00422.82
8.1.220.0030.00517.79
8.1.210.0000.00918.77
8.1.200.0030.00617.23
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0000.00718.63
8.1.160.0040.00418.91
8.1.150.0050.00318.93
8.1.140.0000.00719.46
8.1.130.0030.00317.64
8.1.120.0040.00417.41
8.1.110.0040.00417.46
8.1.100.0040.00417.34
8.1.90.0000.00817.41
8.1.80.0000.00717.45
8.1.70.0000.00717.44
8.1.60.0000.00717.58
8.1.50.0000.00817.44
8.1.40.0090.00017.36
8.1.30.0060.00317.44
8.1.20.0050.00317.64
8.1.10.0060.00317.50
8.1.00.0000.00717.31
8.0.300.0000.00718.77
8.0.290.0030.00616.88
8.0.280.0070.00018.51
8.0.270.0070.00016.89
8.0.260.0040.00418.50
8.0.250.0000.00716.93
8.0.240.0070.00017.05
8.0.230.0000.00816.85
8.0.220.0030.00316.90
8.0.210.0050.00216.90
8.0.200.0000.00817.02
8.0.190.0030.00516.82
8.0.180.0000.00916.88
8.0.170.0040.00416.93
8.0.160.0000.00816.84
8.0.150.0000.00716.82
8.0.140.0040.00416.82
8.0.130.0060.00013.41
8.0.120.0020.00516.92
8.0.110.0020.00516.75
8.0.100.0040.00416.96
8.0.90.0000.00716.76
8.0.80.0080.01216.87
8.0.70.0000.00716.84
8.0.60.0000.00716.91
8.0.50.0000.00716.84
8.0.30.0130.00617.06
8.0.20.0070.01217.40
8.0.10.0050.00216.96
8.0.00.0110.00816.72
7.4.330.0000.00715.08
7.4.320.0040.00416.46
7.4.300.0040.00416.40
7.4.290.0070.00016.45
7.4.280.0000.00716.29
7.4.270.0000.00716.40
7.4.260.0060.00316.46
7.4.250.0000.00716.39
7.4.240.0030.00316.43
7.4.230.0030.00316.43
7.4.220.0060.01416.56
7.4.210.0090.00616.54
7.4.200.0050.00316.57
7.4.160.0130.00316.71
7.4.150.0100.01317.40
7.4.140.0090.01017.86
7.4.130.0060.01116.59
7.4.120.0050.01316.44
7.4.110.0080.00816.58
7.4.100.0060.01616.61
7.4.90.0060.01116.52
7.4.80.0100.01319.39
7.4.70.0140.00316.38
7.4.60.0090.00616.36
7.4.50.0070.00316.43
7.4.40.0060.00916.26
7.4.30.0160.00316.43
7.4.00.0070.01115.17
7.3.330.0030.00313.14
7.3.320.0000.00513.14
7.3.310.0000.00716.20
7.3.300.0000.00716.32
7.3.290.0100.00516.35
7.3.280.0080.01016.33
7.3.270.0150.00317.40
7.3.260.0060.01616.29
7.3.250.0090.01316.38
7.3.240.0110.01016.46
7.3.230.0000.01816.51
7.3.210.0130.00616.31
7.3.200.0150.00819.39
7.3.190.0030.01416.61
7.3.180.0120.00616.46
7.3.170.0070.01416.40
7.3.160.0060.01016.38
7.2.330.0110.00816.67
7.2.320.0080.00816.31
7.2.310.0120.00616.34
7.2.300.0090.00916.57
7.2.290.0040.01216.60
7.2.60.0060.00916.70
7.2.00.0040.00719.00
7.1.200.0130.00015.44
7.1.100.0060.00617.74
7.1.70.0030.00317.18
7.1.60.0110.01419.12
7.1.50.0070.01516.68
7.1.00.0030.07322.29
7.0.200.0050.00316.67
7.0.60.0200.03319.98
7.0.50.0270.05720.35
7.0.40.0230.07020.39
7.0.30.0400.05020.36
7.0.20.0370.05020.24
7.0.10.0030.06320.23
7.0.00.0200.06020.26
5.6.280.0130.06721.05
5.6.210.0100.07020.66
5.6.200.0230.05321.09
5.6.190.0200.06321.06
5.6.180.0300.05321.17
5.6.170.0200.06321.19
5.6.160.0200.05721.17
5.6.150.0130.05721.07
5.6.140.0200.06021.03
5.6.130.0100.07021.06
5.6.120.0130.05721.02
5.6.110.0170.06021.02
5.6.100.0370.04721.16
5.6.90.0230.05721.12
5.6.80.0270.06320.50
5.6.70.0400.04320.50
5.6.60.0200.06720.43
5.6.50.0300.06020.55
5.6.40.0170.05020.50
5.6.30.0070.05720.52
5.6.20.0170.05720.39
5.6.10.0200.05320.40
5.6.00.0100.06720.37
5.5.350.4130.04320.45
5.5.340.0130.07721.02
5.5.330.0230.05720.84
5.5.320.0230.05720.90
5.5.310.0170.06720.85
5.5.300.0200.05720.81
5.5.290.0130.06020.80
5.5.280.0170.05320.87
5.5.270.0230.06320.86
5.5.260.0170.06320.84
5.5.250.0230.05720.68
5.5.240.0230.06020.22
5.5.230.0270.06720.40
5.5.220.0430.04320.39
5.5.210.0170.05720.26
5.5.200.0200.04320.29
5.5.190.0130.06320.24
5.5.180.0100.06320.29
5.5.160.0270.04720.25
5.5.150.0170.06020.22
5.5.140.0130.05720.05
5.5.130.0100.05320.14
5.5.120.0100.05320.13
5.5.110.0100.05720.16
5.5.100.0270.04720.20
5.5.90.0170.05020.07
5.5.80.0230.05020.27
5.5.70.0200.05020.27
5.5.60.0130.05320.15
5.5.50.0130.05320.26
5.5.40.0270.04020.11
5.5.30.0170.05020.06
5.5.20.0230.05020.27
5.5.10.0270.04320.00
5.5.00.0030.06720.03

preferences:
39.51 ms | 1661 KiB | 5 Q