3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait X{ function tryA(A $a){ $this->test($a); } function test(A $a){} // can't solve signatures incompatibility... } trait Y{ function tryB(B $b){ $this->test($b); } function test(B $b){} // when arguments are different... } class LOL{ use X, Y{ X::test insteadof Y; // this doesn't actually solve anything... } } 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.0110.00416.75
8.3.50.0030.01016.52
8.3.40.0120.00818.79
8.3.30.0100.00718.67
8.3.20.0110.00720.20
8.3.10.0040.00423.61
8.3.00.0040.00422.40
8.2.180.0070.01125.92
8.2.170.0130.00318.96
8.2.160.0100.00322.96
8.2.150.0000.01025.66
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0080.00021.05
8.2.110.0070.00319.45
8.2.100.0060.00617.84
8.2.90.0030.00619.05
8.2.80.0060.00317.97
8.2.70.0030.00617.38
8.2.60.0040.00417.92
8.2.50.0080.00018.10
8.2.40.0040.00420.92
8.2.30.0000.00719.77
8.2.20.0000.00717.75
8.2.10.0000.00718.13
8.2.00.0050.00318.06
8.1.270.0080.00024.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.44
8.1.230.0070.00617.70
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0080.00017.22
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0040.00422.07
8.1.150.0050.00218.81
8.1.140.0050.00317.53
8.1.130.0070.00017.63
8.1.120.0000.00717.38
8.1.110.0030.00517.44
8.1.100.0040.00417.38
8.1.90.0000.00717.49
8.1.80.0040.00417.47
8.1.70.0000.00717.32
8.1.60.0000.00817.60
8.1.50.0000.00917.54
8.1.40.0030.00617.45
8.1.30.0060.00317.73
8.1.20.0040.00417.64
8.1.10.0070.00017.58
8.1.00.0000.00917.41
8.0.300.0050.00318.77
8.0.290.0040.00416.75
8.0.280.0030.00318.38
8.0.270.0030.00417.27
8.0.260.0030.00317.31
8.0.250.0000.00717.07
8.0.240.0040.00417.12
8.0.230.0080.00017.01
8.0.220.0000.00716.96
8.0.210.0000.00816.95
8.0.200.0030.00316.95
8.0.190.0070.00017.01
8.0.180.0080.00016.89
8.0.170.0050.00316.98
8.0.160.0040.00416.93
8.0.150.0000.00716.84
8.0.140.0040.00416.81
8.0.130.0000.00713.39
8.0.120.0050.00316.96
8.0.110.0030.00516.79
8.0.100.0020.00516.84
8.0.90.0040.00416.93
8.0.80.0040.01216.96
8.0.70.0030.00516.79
8.0.60.0000.00817.00
8.0.50.0030.00517.08
8.0.30.0120.00516.95
8.0.20.0120.01117.40
8.0.10.0000.00716.88
8.0.00.0100.00916.87
7.4.330.0030.00315.08
7.4.320.0000.00616.63
7.4.300.0030.00316.53
7.4.290.0000.00816.53
7.4.280.0050.00316.61
7.4.270.0000.00716.63
7.4.260.0040.00416.52
7.4.250.0060.00316.47
7.4.240.0030.00316.50
7.4.230.0080.00016.67
7.4.220.0140.01016.70
7.4.210.0020.01316.54
7.4.200.0050.00316.69
7.4.160.0090.00916.49
7.4.150.0180.00017.40
7.4.140.0170.00817.86
7.4.130.0090.00916.55
7.4.120.0100.00816.56
7.4.110.0140.00416.63
7.4.100.0160.00616.71
7.4.90.0060.01116.50
7.4.80.0100.00719.39
7.4.70.0070.01116.38
7.4.60.0090.00616.62
7.4.50.0030.00316.56
7.4.40.0120.00316.46
7.4.30.0110.00716.62
7.4.00.0070.01115.02
7.3.330.0000.00513.39
7.3.320.0050.00013.40
7.3.310.0030.00316.23
7.3.300.0030.00316.35
7.3.290.0070.00016.39
7.3.280.0030.01616.36
7.3.270.0040.01517.40
7.3.260.0130.00316.30
7.3.250.0100.00916.43
7.3.240.0080.00816.58
7.3.230.0070.01316.39
7.3.210.0090.00916.52
7.3.200.0110.01119.39
7.3.190.0160.00616.37
7.3.180.0040.01116.51
7.3.170.0090.00816.41
7.3.160.0090.00916.51
7.3.120.0000.01614.94
7.3.110.0050.01314.90
7.3.100.0060.00614.86
7.3.90.0070.00614.80
7.3.80.0080.00514.84
7.3.70.0020.00814.81
7.3.60.0070.00714.65
7.3.50.0020.00914.89
7.3.40.0080.00714.74
7.3.30.0100.00514.85
7.3.20.0050.00716.58
7.3.10.0060.00716.67
7.3.00.0060.00816.46
7.2.330.0060.01116.68
7.2.320.0090.00916.44
7.2.310.0070.01016.40
7.2.300.0080.00816.30
7.2.290.0100.00716.79
7.2.250.0090.01015.04
7.2.240.0030.01614.85
7.2.230.0090.00715.15
7.2.220.0020.01014.98
7.2.210.0070.00914.84
7.2.200.0070.00715.21
7.2.190.0020.01214.99
7.2.180.0060.00814.98
7.2.170.0020.01014.95
7.2.80.0000.01216.31
7.2.60.0060.00916.79
7.2.00.0060.01019.25
7.1.330.0100.00315.87
7.1.320.0080.00415.71
7.1.310.0050.00715.72
7.1.300.0070.00715.61
7.1.290.0060.00715.76
7.1.280.0050.00815.50
7.1.270.0090.00515.70
7.1.260.0030.00915.68
7.1.200.0030.00715.82
7.1.100.0030.00717.81
7.1.70.0030.00717.17
7.1.60.0090.01520.03
7.1.50.0130.00716.72
7.1.00.0070.07322.31
7.0.200.0440.00714.97
7.0.60.0100.08320.03
7.0.50.0030.08317.90
7.0.40.0070.04720.18
7.0.30.0270.05320.33
7.0.20.0270.08020.30
7.0.10.0100.08020.12
7.0.00.0070.07320.09
5.6.280.0000.03321.00
5.6.210.0200.07320.65
5.6.200.0030.07018.16
5.6.190.0070.04020.49
5.6.180.0330.07720.55
5.6.170.0300.04320.47
5.6.160.0100.08320.55
5.6.150.0030.08318.12
5.6.140.0130.05018.16
5.6.130.0070.05718.15
5.6.120.0030.07021.01
5.6.110.0070.08320.97
5.6.100.0100.05021.12
5.6.90.0100.08020.99
5.6.80.0070.06720.29
5.6.70.3330.03720.37
5.5.350.0200.06720.45
5.5.340.0030.07717.95
5.5.330.0130.05720.47
5.5.320.0270.04720.31
5.5.310.0230.06020.30
5.5.300.0070.06318.09
5.5.290.0030.04018.04
5.5.280.0070.08020.79
5.5.270.0070.08320.80
5.5.260.0170.06720.89
5.5.250.0100.07720.55
5.5.240.0130.04720.05
5.4.450.0700.06019.47
5.4.440.0770.06019.19
5.4.430.0770.05019.55
5.4.420.0630.05319.54
5.4.410.0730.05319.32
5.4.400.0770.06019.13
5.4.390.1030.05719.25
5.4.380.0600.06019.37
5.4.370.0770.06019.23
5.4.360.0770.07019.29
5.4.350.0800.04718.98
5.4.340.0670.05019.24
5.4.320.0700.05318.98
5.4.310.0870.05718.98
5.4.300.0930.05719.00
5.4.290.0730.07319.01
5.4.280.0700.04719.14
5.4.270.0500.06319.24
5.4.260.0630.05019.01
5.4.250.0700.05719.27
5.4.240.0630.04719.36
5.4.230.0670.04719.13
5.4.220.0530.06019.05
5.4.210.0570.05719.18
5.4.200.0570.05016.90
5.4.190.0730.04718.92
5.4.180.0600.06019.08
5.4.170.0870.06019.12
5.4.160.0700.05319.16
5.4.150.0730.05318.91
5.4.140.0670.04716.41
5.4.130.0600.05016.36
5.4.120.0730.03316.38
5.4.110.0630.04316.61
5.4.100.0500.06316.43
5.4.90.0570.05716.44
5.4.80.0670.04716.42
5.4.70.0800.06716.59
5.4.60.0070.03716.54
5.4.50.0000.05016.44
5.4.40.0200.04016.34
5.4.30.0270.07016.34
5.4.20.0400.03016.43

preferences:
60.83 ms | 400 KiB | 5 Q