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(A $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.75
8.3.50.0100.00716.38
8.3.40.0090.00618.41
8.3.30.0070.01018.73
8.3.20.0180.00020.21
8.3.10.0000.00723.66
8.3.00.0050.00322.16
8.2.180.0150.00716.35
8.2.170.0040.01122.96
8.2.160.0100.00320.35
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0090.00017.50
8.2.110.0080.00320.38
8.2.100.0000.01217.63
8.2.90.0070.00019.17
8.2.80.0050.00517.97
8.2.70.0040.00417.62
8.2.60.0060.00317.80
8.2.50.0050.00318.07
8.2.40.0060.00619.09
8.2.30.0000.00818.11
8.2.20.0070.00017.58
8.2.10.0030.00517.92
8.2.00.0030.00518.05
8.1.270.0080.00020.33
8.1.260.0030.00626.35
8.1.250.0030.00328.09
8.1.240.0080.00023.95
8.1.230.0120.00017.42
8.1.220.0070.00317.74
8.1.210.0050.00318.77
8.1.200.0040.00417.22
8.1.190.0000.00817.12
8.1.180.0040.00418.10
8.1.170.0000.00818.48
8.1.160.0000.00721.93
8.1.150.0100.00018.73
8.1.140.0040.00417.39
8.1.130.0000.00717.61
8.1.120.0040.00417.42
8.1.110.0040.00417.47
8.1.100.0040.00417.39
8.1.90.0050.00317.45
8.1.80.0070.00017.40
8.1.70.0040.00417.30
8.1.60.0040.00417.42
8.1.50.0040.00417.50
8.1.40.0040.00417.36
8.1.30.0000.00817.45
8.1.20.0000.00817.63
8.1.10.0000.00717.27
8.1.00.0030.00517.21
8.0.300.0070.00018.77
8.0.290.0030.00516.75
8.0.280.0000.00718.48
8.0.270.0070.00017.14
8.0.260.0040.00417.11
8.0.250.0040.00416.95
8.0.240.0000.00816.98
8.0.230.0000.00716.92
8.0.220.0000.00716.88
8.0.210.0040.00416.78
8.0.200.0060.00016.99
8.0.190.0040.00416.98
8.0.180.0030.00516.81
8.0.170.0040.00416.86
8.0.160.0000.00816.95
8.0.150.0050.00216.94
8.0.140.0000.00716.85
8.0.130.0040.00413.36
8.0.120.0060.00316.82
8.0.110.0040.00416.82
8.0.100.0040.00416.75
8.0.90.0040.00416.76
8.0.80.0030.01116.92
8.0.70.0040.00416.89
8.0.60.0070.00016.93
8.0.50.0030.00516.68
8.0.30.0170.00216.97
8.0.20.0060.01217.40
8.0.10.0020.00516.85
8.0.00.0080.01016.77
7.4.330.0000.00515.08
7.4.320.0030.00316.55
7.4.300.0030.00316.34
7.4.290.0000.00816.44
7.4.280.0030.00616.34
7.4.270.0000.00716.37
7.4.260.0000.00816.39
7.4.250.0000.00716.41
7.4.240.0020.00516.40
7.4.230.0000.00716.48
7.4.220.0100.01416.48
7.4.210.0060.01116.58
7.4.200.0000.00816.61
7.4.160.0090.00616.41
7.4.150.0140.00317.40
7.4.140.0150.00817.86
7.4.130.0050.01516.39
7.4.120.0090.01616.37
7.4.110.0070.01716.56
7.4.100.0140.00716.38
7.4.90.0070.01116.33
7.4.80.0090.01419.39
7.4.70.0130.00316.49
7.4.60.0030.01116.45
7.4.50.0040.00416.34
7.4.40.0100.00616.59
7.4.30.0030.01316.40
7.4.00.0100.00614.86
7.3.330.0030.00313.23
7.3.320.0000.00613.20
7.3.310.0000.00716.29
7.3.300.0030.00316.25
7.3.290.0000.00716.09
7.3.280.0110.00916.27
7.3.270.0000.01717.40
7.3.260.0060.01316.34
7.3.250.0110.00916.35
7.3.240.0120.00616.30
7.3.230.0070.01116.55
7.3.210.0030.01216.28
7.3.200.0080.00819.39
7.3.190.0210.00016.30
7.3.180.0090.00616.40
7.3.170.0070.01716.30
7.3.160.0090.01316.36
7.2.330.0070.01116.58
7.2.320.0090.00916.42
7.2.310.0120.00916.57
7.2.300.0110.00616.43
7.2.290.0150.00816.30
7.2.80.0040.01116.66
7.2.60.0070.00716.63
7.2.00.0040.00819.27
7.1.200.0060.00615.74
7.1.100.0050.00517.82
7.1.70.0080.00016.84
7.1.60.0070.01720.03
7.1.50.0070.01816.98
7.1.00.0100.06722.43
7.0.200.0320.00714.97
7.0.60.0030.07319.86
7.0.50.0030.08017.84
7.0.40.0070.07720.09
7.0.30.0270.06720.08
7.0.20.0270.07020.09
7.0.10.0370.07720.25
7.0.00.0030.04020.06
5.6.280.0000.03321.03
5.6.210.0000.08720.62
5.6.200.0030.04318.27
5.6.190.0030.06720.67
5.6.180.0230.07320.41
5.6.170.0270.03720.39
5.6.160.0200.06320.61
5.6.150.0070.03718.18
5.6.140.0000.08718.18
5.6.130.0070.06718.20
5.6.120.0100.04721.01
5.6.110.0070.04020.90
5.6.100.0000.04321.12
5.6.90.0070.04020.98
5.6.80.0130.04720.41
5.6.70.0330.06320.52
5.5.350.0100.08320.35
5.5.340.0130.07017.97
5.5.330.0070.04720.27
5.5.320.0300.07320.44
5.5.310.0170.03720.34
5.5.300.0070.04317.92
5.5.290.0100.07017.98
5.5.280.0130.06720.91
5.5.270.0030.04020.72
5.5.260.0070.04320.84
5.5.250.0130.07720.70
5.5.240.0130.07020.27
5.4.450.0670.06019.31
5.4.440.0430.05319.59
5.4.430.0370.06019.55
5.4.420.0630.05719.59
5.4.410.0800.03319.03
5.4.400.0730.04719.25
5.4.390.0730.05019.05
5.4.380.0630.05318.98
5.4.370.0770.04319.32
5.4.360.0600.05719.14
5.4.350.0530.05319.27
5.4.340.0570.06318.87
5.4.320.0330.06719.16
5.4.310.0670.04719.25
5.4.300.0530.06019.11
5.4.290.0600.06019.36
5.4.280.0530.05319.00
5.4.270.0670.05018.86
5.4.260.0600.06319.14
5.4.250.0630.06018.83
5.4.240.0630.07319.00
5.4.230.0570.06319.21
5.4.220.0500.06318.86
5.4.210.0570.06019.14
5.4.200.0600.05016.89
5.4.190.0830.03318.92
5.4.180.0630.06718.87
5.4.170.1130.05719.12
5.4.160.0770.04718.91
5.4.150.0700.05719.11
5.4.140.0800.04716.36
5.4.130.0700.05316.56
5.4.120.0630.05316.36
5.4.110.0800.04016.45
5.4.100.0670.05316.62
5.4.90.0670.06316.48
5.4.80.0830.03716.56
5.4.70.0370.05316.58
5.4.60.0030.07016.55
5.4.50.0000.07316.54
5.4.40.0000.05316.16
5.4.30.0330.05716.51
5.4.20.0200.03716.43

preferences:
54.72 ms | 400 KiB | 5 Q