3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait X{ function tryA(A $a){ $this->test($a); } abstract function test(A $a); } trait Y{ function tryB(B $b){ $this->test($b); } abstract function test(B $b); } interface LOLI{ function test(B $b); } class LOL implements LOLI{ use X, Y; function test(A $a){} } class A{} class B{} $x = new LOL; $x->tryA(new A); $x->tryB(new B);

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.88
8.3.50.0130.00321.19
8.3.40.0070.00718.84
8.3.30.0140.00318.71
8.3.20.0100.00620.38
8.3.10.0040.00423.35
8.3.00.0040.00422.34
8.2.180.0170.00316.75
8.2.170.0030.01322.96
8.2.160.0030.01020.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0060.00317.38
8.2.110.0040.00420.52
8.2.100.0090.00317.63
8.2.90.0050.00319.08
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0030.00617.80
8.2.50.0040.00418.07
8.2.40.0030.00619.34
8.2.30.0030.00617.98
8.2.20.0030.00517.68
8.2.10.0040.00417.88
8.2.00.0000.00717.94
8.1.280.0070.01825.92
8.1.270.0050.00320.28
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0000.01023.84
8.1.230.0030.00917.42
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0090.00017.36
8.1.190.0050.00317.23
8.1.180.0070.00018.10
8.1.170.0040.00418.52
8.1.160.0030.00622.02
8.1.150.0090.00018.84
8.1.140.0080.00017.31
8.1.130.0030.00317.66
8.1.120.0030.00317.39
8.1.110.0000.00717.41
8.1.100.0000.00717.38
8.1.90.0000.00717.29
8.1.80.0000.00717.39
8.1.70.0040.00417.44
8.1.60.0030.00517.44
8.1.50.0000.00817.46
8.1.40.0000.00817.48
8.1.30.0040.00417.60
8.1.20.0050.00217.53
8.1.10.0030.00517.38
8.1.00.0030.00617.21
8.0.300.0040.00418.77
8.0.290.0020.00516.75
8.0.280.0030.00318.39
8.0.270.0030.00517.20
8.0.260.0060.00017.24
8.0.250.0040.00416.98
8.0.240.0080.00017.03
8.0.230.0040.00416.79
8.0.220.0000.00716.94
8.0.210.0000.00716.88
8.0.200.0000.00717.00
8.0.190.0050.00317.00
8.0.180.0000.00816.93
8.0.170.0030.00516.92
8.0.160.0040.00416.92
8.0.150.0080.00316.91
8.0.140.0050.00216.83
8.0.130.0000.00813.28
8.0.120.0060.00316.78
8.0.110.0070.00016.91
8.0.100.0080.00016.77
8.0.90.0040.00416.94
8.0.80.0030.01216.88
8.0.70.0040.00416.70
8.0.60.0030.00516.96
8.0.50.0030.00616.90
8.0.30.0110.00817.13
8.0.20.0140.00517.40
8.0.10.0080.00016.96
8.0.00.0070.01316.61
7.4.330.0000.00615.08
7.4.320.0030.00316.46
7.4.300.0000.00616.34
7.4.290.0060.00316.41
7.4.280.0050.00216.57
7.4.270.0030.00516.34
7.4.260.0040.00416.43
7.4.250.0040.00416.40
7.4.240.0030.00316.50
7.4.230.0000.00716.64
7.4.220.0040.01616.58
7.4.210.0050.00916.50
7.4.200.0030.00316.54
7.4.160.0030.01516.35
7.4.150.0120.00617.40
7.4.140.0140.00717.86
7.4.130.0120.00516.47
7.4.120.0080.01416.45
7.4.110.0100.00716.33
7.4.100.0130.00616.34
7.4.90.0070.01316.61
7.4.80.0120.01519.39
7.4.70.0110.01116.45
7.4.60.0000.01416.32
7.4.50.0000.00916.33
7.4.40.0100.00616.45
7.4.30.0000.01716.38
7.4.00.0030.00914.92
7.3.330.0000.00613.19
7.3.320.0050.00013.31
7.3.310.0040.00316.14
7.3.300.0000.00716.25
7.3.290.0070.00016.07
7.3.280.0070.01016.22
7.3.270.0130.00317.40
7.3.260.0100.00716.43
7.3.250.0130.00816.35
7.3.240.0060.00916.21
7.3.230.0100.01416.39
7.3.210.0060.01016.20
7.3.200.0100.01319.39
7.3.190.0090.00616.24
7.3.180.0070.01016.29
7.3.170.0070.01016.56
7.3.160.0120.01116.26
7.3.10.0080.00816.69
7.3.00.0040.01116.41
7.2.330.0100.01016.51
7.2.320.0060.01116.52
7.2.310.0030.01316.40
7.2.300.0040.01216.40
7.2.290.0100.00716.64
7.2.130.0070.01016.63
7.2.120.0000.01516.81
7.2.110.0000.00916.40
7.2.100.0040.00716.83
7.2.90.0030.01016.86
7.2.80.0060.00616.73
7.2.70.0070.00716.80
7.2.60.0050.00716.69
7.2.50.0000.00916.45
7.2.40.0030.00616.86
7.2.30.0090.00316.74
7.2.20.0070.00416.73
7.2.10.0030.00616.50
7.2.00.0050.00717.96
7.1.250.0080.00315.48
7.1.200.0030.00515.76
7.1.100.0040.00817.90
7.1.70.0060.00316.86
7.1.60.0070.01720.03
7.1.50.0160.00916.96
7.1.00.0030.07722.37
7.0.200.0240.00614.97
7.0.110.0070.04020.00
7.0.100.0070.03719.93
7.0.90.0000.04319.85
7.0.80.0000.04319.97
7.0.70.0030.04019.93
7.0.60.0000.08020.07
7.0.50.0030.08320.46
7.0.40.0170.06320.22
7.0.30.0030.07320.28
7.0.20.0030.05320.05
7.0.10.0070.04320.02
7.0.00.0070.04020.07
5.6.280.0030.03320.91
5.6.260.0070.04020.61
5.6.250.0100.03720.52
5.6.240.0070.04020.71
5.6.230.0030.07020.73
5.6.220.0030.08020.57
5.6.210.0100.04020.60
5.6.200.0130.07720.95
5.6.190.0070.05320.96
5.6.180.0170.06721.15
5.6.170.0030.08020.96
5.6.160.0130.07321.29
5.6.150.0100.08021.13
5.6.140.0100.05720.94
5.6.130.0130.07721.30
5.6.120.0070.08321.06
5.6.110.0070.08721.11
5.6.100.0100.07320.93
5.6.90.0070.05320.93
5.6.80.0130.07020.34
5.6.70.0200.06720.63
5.6.60.0030.09320.43
5.6.50.0200.07020.61
5.6.40.0100.04020.52
5.6.30.0000.08320.39
5.6.20.0100.07320.35
5.6.10.0100.08320.58
5.6.00.0030.08020.54
5.5.380.0030.04020.45
5.5.370.0100.04020.37
5.5.360.0070.07720.52
5.5.350.0070.05720.52
5.5.340.0070.07720.88
5.5.330.0200.04320.96
5.5.320.0100.04720.81
5.5.310.0070.06021.05
5.5.300.0130.08320.82
5.5.290.0130.07321.00
5.5.280.0130.07721.05
5.5.270.0070.08020.96
5.5.260.0030.09020.80
5.5.250.0070.07020.50
5.5.240.0170.07320.18
5.5.230.0030.06320.23
5.5.220.0070.07720.34
5.5.210.0030.08020.16
5.5.200.0070.07020.23
5.5.190.0230.07320.32
5.5.180.0070.08320.11
5.5.160.0000.08720.17
5.5.150.0100.06720.32
5.5.140.0070.07720.14
5.5.130.0000.08020.14
5.5.120.0100.07320.38
5.5.110.0070.08320.30
5.5.100.0100.07320.00
5.5.90.0100.08320.18
5.5.80.0070.08020.21
5.5.70.0070.04320.25
5.5.60.0070.07320.25
5.5.50.0070.04320.21
5.5.40.0030.07720.22
5.5.30.0070.07720.21
5.5.20.0200.07020.05
5.5.10.0070.07020.23
5.5.00.0100.07720.11
5.4.450.0030.09019.32
5.4.440.0070.08319.49
5.4.430.0170.06319.33
5.4.420.0130.07719.50
5.4.410.0030.08019.14
5.4.400.0130.06719.25
5.4.390.0000.08319.16
5.4.380.0030.06719.34
5.4.370.0170.06719.01
5.4.360.0070.08319.18
5.4.350.0130.05019.18
5.4.340.0030.07719.02
5.4.320.0030.07319.19
5.4.310.0030.07319.34
5.4.300.0170.07019.00
5.4.290.0030.05719.17
5.4.280.0070.06319.01
5.4.270.0070.07019.18
5.4.260.0170.06019.30
5.4.250.0100.07319.08
5.4.240.0070.07319.24
5.4.230.0130.05719.10
5.4.220.0030.05019.02
5.4.210.0100.07319.33
5.4.200.0130.03719.17
5.4.190.0170.06019.17
5.4.180.0100.07718.97
5.4.170.0100.07319.00
5.4.160.0100.03018.96
5.4.150.0070.07319.01
5.4.140.0070.07316.40
5.4.130.0130.07016.64
5.4.120.0100.04016.59
5.4.110.0070.05716.37
5.4.100.0070.07016.52
5.4.90.0070.06316.42
5.4.80.0230.05016.63
5.4.70.0030.04316.63
5.4.60.0070.03016.38
5.4.50.0130.05316.24
5.4.40.0070.07016.43
5.4.30.0030.07316.23
5.4.20.0170.06016.62
5.4.10.0100.04016.54
5.4.00.0100.06315.98

preferences:
61.34 ms | 401 KiB | 5 Q