3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function method() { echo "Bring me to frond????"; } } class TestParentClass extends A { public function method() { print_r('Parent method'); print "\n"; } } trait TestTrait { public function method() { print_r('Trait method'); print "\n"; } } class TestChildClass extends TestParentClass { use TestTrait { A::method insteadof TestParentClass; /* TestTrait::method as methodAlias; TestParentClass::method insteadof TestTrait; */ } } (new TestChildClass)->mth(); (new TestChildClass)->method(); (new TestChildClass)->methodAlias();

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.01118.46
8.3.50.0130.00821.93
8.3.40.0080.00818.58
8.3.30.0150.00018.71
8.3.20.0040.00418.61
8.3.10.0040.00420.79
8.3.00.0000.00823.57
8.2.180.0150.00016.32
8.2.170.0110.00422.96
8.2.160.0030.01720.30
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.54
8.2.110.0080.00020.30
8.2.100.0040.00717.75
8.2.90.0040.00419.08
8.2.80.0040.00418.04
8.2.70.0030.00517.61
8.2.60.0060.00317.80
8.2.50.0060.00318.07
8.2.40.0000.00718.16
8.2.30.0030.00521.30
8.2.20.0040.00417.48
8.2.10.0030.00517.68
8.2.00.0000.00817.53
8.1.280.0120.00925.92
8.1.270.0050.00323.99
8.1.260.0000.00726.35
8.1.250.0100.00728.09
8.1.240.0060.00323.92
8.1.230.0080.00420.89
8.1.220.0040.00418.77
8.1.210.0060.00318.88
8.1.200.0060.00317.13
8.1.190.0070.00017.39
8.1.180.0000.00818.10
8.1.170.0000.00818.49
8.1.160.0000.00818.70
8.1.150.0000.00818.49
8.1.140.0030.00617.30
8.1.130.0030.00317.76
8.1.120.0000.00717.43
8.1.110.0050.00317.38
8.1.100.0050.00217.30
8.1.90.0000.00717.29
8.1.80.0000.00817.30
8.1.70.0030.00317.29
8.1.60.0000.00817.44
8.1.50.0080.00017.36
8.1.40.0040.00417.39
8.1.30.0040.00417.52
8.1.20.0000.00817.43
8.1.10.0040.00417.27
8.1.00.0080.00017.21
8.0.300.0060.00320.02
8.0.290.0000.00817.05
8.0.280.0070.00018.32
8.0.270.0000.00717.10
8.0.260.0000.00616.74
8.0.250.0000.00716.87
8.0.240.0050.00316.92
8.0.230.0040.00416.98
8.0.220.0020.00716.79
8.0.210.0000.00716.85
8.0.200.0070.00016.96
8.0.190.0040.00416.88
8.0.180.0040.00416.90
8.0.170.0080.00016.82
8.0.160.0030.00616.97
8.0.150.0030.00316.78
8.0.140.0090.00316.88
8.0.130.0000.00813.36
8.0.120.0050.00216.93
8.0.110.0040.00416.75
8.0.100.0030.00316.76
8.0.90.0050.00216.94
8.0.80.0090.00616.85
8.0.70.0040.00417.01
8.0.60.0040.00416.87
8.0.50.0050.00216.91
8.0.30.0080.01016.96
8.0.20.0090.00917.40
8.0.10.0000.00717.05
8.0.00.0170.00716.61
7.4.330.0000.00514.59
7.4.320.0030.00316.52
7.4.300.0030.00616.47
7.4.290.0030.00316.42
7.4.280.0000.00716.42
7.4.270.0000.00816.44
7.4.260.0050.00013.15
7.4.250.0040.00416.45
7.4.240.0040.00416.46
7.4.230.0000.00716.56
7.4.220.0150.01216.63
7.4.210.0090.00616.44
7.4.200.0000.00816.61
7.4.190.0070.00016.34
7.4.160.0100.00616.71
7.4.150.0060.01017.40
7.4.140.0070.01017.86
7.4.130.0210.01216.48
7.4.120.0110.00516.43
7.4.110.0090.00916.48
7.4.100.0100.00716.43
7.4.90.0150.00816.63
7.4.80.0100.01019.37
7.4.70.0090.01216.22
7.4.60.0100.01016.63
7.4.50.0000.00916.58
7.4.40.0040.00822.52
7.4.30.0000.01516.51
7.4.00.0070.01014.94
7.3.330.0050.00013.16
7.3.320.0050.00313.11
7.3.310.0030.00316.13
7.3.300.0030.00316.29
7.3.290.0040.01116.30
7.3.280.0080.00716.29
7.3.270.0030.01317.40
7.3.260.0110.00618.24
7.3.250.0100.01016.55
7.3.240.0110.00716.30
7.3.230.0120.00516.39
7.3.210.0060.00916.37
7.3.200.0080.01119.39
7.3.190.0160.00016.25
7.3.180.0140.00316.53
7.3.170.0030.01316.32
7.3.160.0080.00816.41
7.3.120.0110.00414.77
7.3.110.0130.00314.57
7.3.100.0000.01614.74
7.3.90.0100.00714.70
7.3.80.0000.01214.86
7.3.70.0120.00314.66
7.3.60.0100.00614.91
7.3.50.0060.00914.91
7.3.40.0040.01114.71
7.3.30.0070.00714.61
7.3.20.0070.00716.38
7.3.10.0070.00716.67
7.3.00.0050.01016.59
7.2.330.0090.00816.25
7.2.320.0110.00716.71
7.2.310.0130.00616.43
7.2.300.0060.01016.45
7.2.290.0000.01916.61
7.2.240.0030.01314.46
7.2.230.0070.01114.99
7.2.220.0070.00715.04
7.2.210.0070.01014.99
7.2.200.0100.00315.12
7.2.190.0030.01314.82
7.2.180.0080.00814.98
7.2.170.0060.00914.78
7.2.160.0150.00315.10
7.2.150.0040.01116.70
7.2.140.0110.00416.73
7.2.130.0060.00616.40
7.2.120.0070.00816.64
7.2.110.0040.01116.78
7.2.100.0070.00716.70
7.2.90.0050.00916.84
7.2.80.0040.01016.78
7.2.70.0110.00516.63
7.2.60.0030.01116.84
7.2.50.0100.00316.76
7.2.40.0060.00416.59
7.2.30.0000.01216.76
7.2.20.0070.00516.62
7.2.10.0040.00616.83
7.2.00.0090.00917.18
7.1.330.0070.00715.55
7.1.320.0100.00315.78
7.1.310.0080.00415.80
7.1.300.0090.00915.61
7.1.290.0070.00715.56
7.1.280.0120.00315.48
7.1.270.0130.00315.67
7.1.260.0070.01015.60
7.1.250.0030.00915.71
7.1.200.0000.01215.38
7.1.70.0000.00717.09
7.1.60.0040.00817.01
7.1.50.0070.01516.62
7.1.00.0030.07322.45
7.0.200.0040.00416.55
7.0.140.0000.07721.95
7.0.60.0300.06721.80
7.0.50.0130.03317.96
7.0.40.0170.07720.23
7.0.30.0330.07320.20
7.0.20.0270.07720.09
7.0.10.0130.08720.22
7.0.00.0000.05320.20
5.6.280.0100.06721.15
5.6.210.0070.07720.77
5.6.200.0100.07718.19
5.6.190.0130.06720.45
5.6.180.0230.07020.61
5.6.170.0270.07320.49
5.6.160.0030.04320.47
5.6.150.0070.04718.12
5.6.140.0100.07718.28
5.6.130.0100.05318.28
5.6.120.0070.07021.00
5.6.110.0000.04321.04
5.6.100.0100.08321.01
5.6.90.0130.07320.98
5.6.80.0130.02720.43
5.5.350.0230.06720.41
5.5.340.0000.07717.96
5.5.330.0100.04720.25
5.5.320.0370.07720.29
5.5.310.0230.07720.39
5.5.300.0000.09018.07
5.5.290.0130.07017.95
5.5.280.0130.05020.89
5.5.270.0130.07720.96
5.5.260.0070.05720.77
5.5.250.0170.04320.67
5.5.240.0200.07720.37
5.4.450.3970.04319.49
5.4.440.3430.03719.47
5.4.430.2500.04719.57
5.4.420.0200.05719.43
5.4.410.4030.04319.12
5.4.400.3730.03719.15
5.4.390.2800.04019.21
5.4.380.2600.03318.96
5.4.370.3330.04018.96
5.4.360.3200.03719.19
5.4.350.0070.07719.19
5.4.340.3530.03719.13
5.4.320.4300.03719.13
5.4.310.3730.04019.06
5.4.300.3570.04319.03
5.4.290.3930.04018.92
5.4.280.4530.03019.13
5.4.270.4630.03319.04
5.4.260.4630.04018.92
5.4.250.3970.04019.22
5.4.240.4570.04319.24
5.4.230.4030.04018.92
5.4.220.4600.03719.14
5.4.210.4300.03018.91
5.4.200.3600.04319.08
5.4.190.4130.03719.15
5.4.180.4230.04018.93
5.4.170.4100.04019.12
5.4.160.4100.04018.91
5.4.150.3900.04318.91
5.4.140.3900.03716.44
5.4.130.3730.04016.35
5.4.120.3700.03716.40
5.4.110.4300.03016.61
5.4.100.4270.02316.53
5.4.90.3770.03716.49
5.4.80.4530.03316.67
5.4.70.3830.04016.48
5.4.60.4230.03016.54
5.4.50.4670.03316.43
5.4.40.4600.03716.34
5.4.30.4570.03316.32
5.4.20.4300.03716.45
5.4.10.4300.03316.52
5.4.00.4570.03715.94
5.3.290.4030.04014.68
5.3.280.4630.03714.63
5.3.270.4070.04314.67
5.3.260.4170.04314.64
5.3.250.3700.04014.61
5.3.240.3630.03314.61
5.3.230.3670.03714.77
5.3.220.5300.02714.59
5.3.210.4670.04014.58
5.3.200.4030.04014.46
5.3.190.3870.03014.62
5.3.180.4600.04014.60
5.3.170.4100.03314.57
5.3.160.3800.03014.72
5.3.150.4470.04014.46
5.3.140.4330.03014.70
5.3.130.4630.04014.56
5.3.120.4700.04014.60
5.3.110.4600.04014.44
5.3.100.4830.04714.10
5.3.90.3800.04714.20
5.3.80.3730.03314.02
5.3.70.3900.04014.09
5.3.60.4000.03713.93
5.3.50.4000.04013.90
5.3.40.3800.03313.96
5.3.30.4370.03713.95
5.3.20.4470.03313.69
5.3.10.4100.03713.68
5.3.00.3600.03713.55
5.2.170.3230.03011.29
5.2.160.3170.03311.15
5.2.150.3330.03311.31
5.2.140.3870.02711.04
5.2.130.3430.03711.03
5.2.120.3470.03011.26
5.2.110.3330.03011.06
5.2.100.3470.03011.11
5.2.90.3000.02711.15
5.2.80.3170.03011.15
5.2.70.3330.03311.10
5.2.60.3730.02311.09
5.2.50.3900.02711.04
5.2.40.2470.03010.92
5.2.30.2770.03711.04
5.2.20.3230.02311.02
5.2.10.2170.03310.75
5.2.00.3030.02710.73
5.1.60.2230.0179.97
5.1.50.2200.02710.02
5.1.40.2900.0239.95
5.1.30.2370.03010.35
5.1.20.2070.02710.41
5.1.10.2200.0239.98
5.1.00.2130.02710.05
5.0.50.1200.0208.60
5.0.40.1200.0208.44
5.0.30.1270.0278.13
5.0.20.1370.0278.11
5.0.10.1270.0178.32
5.0.00.1270.0308.12
4.4.90.1670.0175.86
4.4.80.1870.0135.84
4.4.70.1800.0135.84
4.4.60.1830.0175.88
4.4.50.1670.0175.84
4.4.40.1230.0235.84
4.4.30.1230.0175.84
4.4.20.1370.0175.93
4.4.10.0970.0135.84
4.4.00.1200.0235.87
4.3.110.1230.0135.84
4.3.100.0900.0135.84
4.3.90.1230.0135.84
4.3.80.0770.0175.84
4.3.70.0730.0175.84
4.3.60.0600.0135.84
4.3.50.0930.0135.84
4.3.40.0430.0305.84
4.3.30.0330.0175.84
4.3.20.0230.0175.84
4.3.10.0400.0175.84
4.3.00.0330.0135.84

preferences:
55.93 ms | 401 KiB | 5 Q