3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait X{ function test(A $a){} function tryA(A $a){ $this->test($a); } } trait Y{ function test(B $b){} function tryB(B $b){ $this->test($b); } } class LOL{ use X, Y{ X::test insteadof Y; } } 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.0080.00816.60
8.3.50.0070.00716.35
8.3.40.0120.00318.79
8.3.30.0090.01118.79
8.3.20.0040.01220.34
8.3.10.0070.00023.48
8.3.00.0000.00822.40
8.2.180.0060.00916.63
8.2.170.0110.00422.96
8.2.160.0030.01020.52
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00817.50
8.2.110.0050.00519.39
8.2.100.0040.00717.63
8.2.90.0060.00319.09
8.2.80.0000.00817.97
8.2.70.0090.00017.61
8.2.60.0080.00017.80
8.2.50.0050.00518.07
8.2.40.0080.00021.07
8.2.30.0020.00519.93
8.2.20.0040.00417.64
8.2.10.0070.00018.00
8.2.00.0080.00018.06
8.1.270.0050.00224.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00022.68
8.1.230.0030.00917.42
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0030.00617.38
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0040.00422.07
8.1.150.0000.00718.88
8.1.140.0040.00417.41
8.1.130.0030.00317.72
8.1.120.0000.00717.50
8.1.110.0040.00417.49
8.1.100.0040.00417.45
8.1.90.0050.00317.52
8.1.80.0050.00317.44
8.1.70.0000.00717.50
8.1.60.0050.00317.64
8.1.50.0040.00417.53
8.1.40.0080.00017.52
8.1.30.0030.00517.70
8.1.20.0040.00417.56
8.1.10.0000.00717.64
8.1.00.0060.00317.54
8.0.300.0060.00318.77
8.0.290.0000.00816.63
8.0.280.0030.00318.38
8.0.270.0000.00717.35
8.0.260.0000.00717.26
8.0.250.0000.00717.09
8.0.240.0040.00417.01
8.0.230.0070.00016.97
8.0.220.0050.00316.95
8.0.210.0000.00717.01
8.0.200.0030.00316.93
8.0.190.0000.00716.91
8.0.180.0030.00616.98
8.0.170.0040.00417.00
8.0.160.0000.00716.95
8.0.150.0100.00016.90
8.0.140.0030.00316.91
8.0.130.0000.00713.36
8.0.120.0030.00516.99
8.0.110.0070.00017.05
8.0.100.0030.00516.79
8.0.90.0040.00416.92
8.0.80.0120.00316.89
8.0.70.0000.00816.86
8.0.60.0040.00417.02
8.0.50.0000.00816.76
8.0.30.0100.01217.04
8.0.20.0090.01017.40
8.0.10.0030.00517.15
8.0.00.0090.00816.75
7.4.330.0020.00215.08
7.4.320.0030.00316.52
7.4.300.0060.00016.45
7.4.290.0070.00016.61
7.4.280.0000.00716.51
7.4.270.0060.00016.55
7.4.260.0050.00316.61
7.4.250.0040.00416.48
7.4.240.0020.00616.53
7.4.230.0030.00316.37
7.4.220.0040.01316.55
7.4.210.0110.00616.54
7.4.200.0030.00316.65
7.4.160.0090.00616.48
7.4.150.0200.00317.40
7.4.140.0110.01217.86
7.4.130.0090.00916.59
7.4.120.0050.01216.54
7.4.110.0030.01716.51
7.4.100.0140.00716.55
7.4.90.0150.00816.65
7.4.80.0000.01819.39
7.4.70.0140.00316.53
7.4.60.0000.01716.63
7.4.50.0000.00616.49
7.4.40.0100.01316.45
7.4.30.0140.01016.66
7.4.00.0030.01415.18
7.3.330.0000.00613.11
7.3.320.0050.00013.37
7.3.310.0040.00416.43
7.3.300.0040.00416.34
7.3.290.0040.00416.38
7.3.280.0110.00616.36
7.3.270.0130.00417.40
7.3.260.0090.00916.37
7.3.250.0100.00916.42
7.3.240.0070.01016.34
7.3.230.0160.00616.51
7.3.210.0100.00716.34
7.3.200.0100.00719.39
7.3.190.0090.00616.29
7.3.180.0060.00916.50
7.3.170.0080.00816.33
7.3.160.0130.00416.46
7.3.120.0090.00614.79
7.3.110.0030.01014.81
7.3.100.0030.01314.78
7.3.90.0040.01214.89
7.3.80.0040.01115.05
7.3.70.0000.01014.88
7.3.60.0000.01514.71
7.3.50.0000.01514.88
7.3.40.0030.01314.43
7.3.30.0070.00714.72
7.3.20.0090.00316.71
7.3.10.0050.00716.53
7.3.00.0060.00616.41
7.2.330.0110.01116.78
7.2.320.0070.01016.90
7.2.310.0030.01316.51
7.2.300.0030.01316.36
7.2.290.0170.00016.38
7.2.240.0090.00915.09
7.2.230.0070.00715.10
7.2.220.0070.00714.60
7.2.210.0110.00415.16
7.2.200.0070.01015.22
7.2.190.0030.01414.93
7.2.180.0050.00514.96
7.2.170.0040.00714.89
7.2.160.0030.00714.70
7.2.150.0000.01617.03
7.2.140.0030.01016.83
7.2.130.0040.01116.73
7.2.120.0030.01016.77
7.2.110.0050.01017.00
7.2.100.0060.00716.68
7.2.90.0060.00916.96
7.2.80.0070.00716.78
7.2.70.0040.00816.98
7.2.60.0070.00716.81
7.2.50.0080.00616.81
7.2.40.0060.01016.77
7.2.30.0040.00816.80
7.2.20.0030.01016.70
7.2.10.0070.00716.84
7.2.00.0050.01017.50
7.1.330.0060.00615.71
7.1.320.0110.00315.72
7.1.310.0030.00715.89
7.1.300.0070.00415.79
7.1.290.0030.01415.86
7.1.280.0040.01115.77
7.1.270.0070.00715.48
7.1.260.0150.00015.51
7.1.250.0030.00815.48
7.1.200.0030.01015.78
7.1.100.0040.01218.07
7.1.70.0050.00217.07
7.1.60.0060.01620.03
7.1.50.0110.00616.64
7.1.00.0130.06722.51
7.0.200.0440.00314.97
7.0.60.0170.07020.03
7.0.50.0070.07717.86
7.0.40.0100.06720.24
7.0.30.0530.06320.26
7.0.20.0330.07320.05
7.0.10.0100.06020.06
7.0.00.0070.04020.07
5.6.280.0030.03021.14
5.6.210.0130.07720.63
5.6.200.0100.05318.23
5.6.190.0100.04020.68
5.6.180.0330.07720.77
5.6.170.0270.04720.47
5.6.160.0070.07320.46
5.6.150.0100.07718.27
5.6.140.0030.07318.18
5.6.130.0100.07718.15
5.6.120.0030.09020.98
5.6.110.0130.08021.07
5.6.100.0130.07020.97
5.6.90.0100.08721.08
5.6.80.0070.05320.43
5.6.70.0170.04720.43
5.5.350.0070.04020.48
5.5.340.0070.08317.99
5.5.330.0200.06720.42
5.5.320.0330.07320.27
5.5.310.0170.05320.27
5.5.300.0100.03317.97
5.5.290.0100.06017.92
5.5.280.0130.07320.86
5.5.270.0030.07020.85
5.5.260.0100.08720.75
5.5.250.0100.07320.50
5.5.240.0100.07320.35
5.4.450.0700.05019.60
5.4.440.0700.04719.46
5.4.430.0670.06019.44
5.4.420.0770.05319.31
5.4.410.0700.05019.44
5.4.400.0670.05319.13
5.4.390.0700.05719.24
5.4.380.0670.05319.01
5.4.370.0700.05318.90
5.4.360.0700.05319.12
5.4.350.0730.04719.15
5.4.340.0730.05319.26
5.4.320.0800.04719.15
5.4.310.0700.05318.98
5.4.300.0700.05019.27
5.4.290.0670.05018.85
5.4.280.0730.05018.99
5.4.270.0670.05019.27
5.4.260.0670.04719.05
5.4.250.0570.05719.29
5.4.240.0600.05319.13
5.4.230.0570.05719.14
5.4.220.0670.05018.84
5.4.210.0770.05319.03
5.4.200.0900.05016.95
5.4.190.0600.05319.02
5.4.180.0600.05318.97
5.4.170.0530.06019.34
5.4.160.0730.04019.23
5.4.150.0600.05319.17
5.4.140.0570.05316.45
5.4.130.0670.04316.78
5.4.120.0830.05316.58
5.4.110.0700.04716.57
5.4.100.0770.04316.37
5.4.90.0670.05016.43
5.4.80.0600.05316.54
5.4.70.0700.05316.46
5.4.60.0100.07016.53
5.4.50.0030.04316.16
5.4.40.0070.04316.33
5.4.30.0270.07016.48
5.4.20.0130.04016.56

preferences:
58.83 ms | 400 KiB | 5 Q