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 as mth; 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.43
8.3.50.0100.00822.11
8.3.40.0060.00918.79
8.3.30.0070.01418.63
8.3.20.0000.00918.51
8.3.10.0050.00320.36
8.3.00.0080.00023.61
8.2.180.0110.00716.50
8.2.170.0100.01022.96
8.2.160.0100.00320.39
8.2.150.0060.00924.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0050.00319.23
8.2.110.0030.00622.25
8.2.100.0120.00017.91
8.2.90.0040.00419.13
8.2.80.0040.00417.97
8.2.70.0060.00317.38
8.2.60.0040.00417.68
8.2.50.0040.00418.07
8.2.40.0000.00819.94
8.2.30.0040.00419.77
8.2.20.0020.00517.51
8.2.10.0040.00417.50
8.2.00.0040.00417.43
8.1.280.0150.00025.92
8.1.270.0000.00723.99
8.1.260.0140.00026.35
8.1.250.0030.00528.09
8.1.240.0090.00317.23
8.1.230.0090.00317.42
8.1.220.0100.00018.77
8.1.210.0060.00319.03
8.1.200.0060.00317.13
8.1.190.0000.00717.41
8.1.180.0040.00418.10
8.1.170.0080.00018.96
8.1.160.0000.00918.82
8.1.150.0030.00618.64
8.1.140.0030.00617.32
8.1.130.0030.00317.64
8.1.120.0000.00717.40
8.1.110.0040.00417.30
8.1.100.0030.00317.37
8.1.90.0000.00717.31
8.1.80.0000.00717.29
8.1.70.0030.00317.33
8.1.60.0030.00617.41
8.1.50.0030.00717.46
8.1.40.0030.00517.48
8.1.30.0030.00617.41
8.1.20.0050.00317.63
8.1.10.0000.00917.39
8.1.00.0000.00717.33
8.0.300.0080.00019.91
8.0.290.0030.00616.75
8.0.280.0030.00318.42
8.0.270.0000.00717.20
8.0.260.0060.00316.80
8.0.250.0040.00416.85
8.0.240.0000.00916.92
8.0.230.0080.00016.97
8.0.220.0030.00316.88
8.0.210.0030.00516.91
8.0.200.0030.00316.95
8.0.190.0070.00017.01
8.0.180.0040.00416.89
8.0.170.0000.00816.80
8.0.160.0000.00916.98
8.0.150.0040.00416.75
8.0.140.0040.00416.75
8.0.130.0030.00313.29
8.0.120.0000.00916.68
8.0.110.0050.00316.77
8.0.100.0000.00916.74
8.0.90.0020.00516.76
8.0.80.0030.01616.95
8.0.70.0000.00816.82
8.0.60.0030.00516.72
8.0.50.0040.00416.91
8.0.30.0150.00616.96
8.0.20.0080.01017.40
8.0.10.0030.00517.08
8.0.00.0080.00916.72
7.4.330.0050.00014.71
7.4.320.0000.00716.55
7.4.300.0000.00616.54
7.4.290.0070.00016.54
7.4.280.0000.00816.55
7.4.270.0000.00716.56
7.4.260.0000.00613.21
7.4.250.0000.00916.39
7.4.240.0070.00016.45
7.4.230.0070.00016.52
7.4.220.0060.00916.48
7.4.210.0080.00716.48
7.4.200.0030.00316.64
7.4.190.0000.00816.50
7.4.160.0100.01416.33
7.4.150.0090.01517.40
7.4.140.0070.01017.86
7.4.130.0110.00716.41
7.4.120.0080.00916.48
7.4.110.0080.00816.59
7.4.100.0090.00916.31
7.4.90.0030.02216.36
7.4.80.0150.00719.04
7.4.70.0060.01716.57
7.4.60.0090.00816.48
7.4.50.0030.00616.32
7.4.40.0080.00622.27
7.4.30.0110.00816.46
7.4.00.0080.00614.77
7.3.330.0030.00313.09
7.3.320.0050.00013.34
7.3.310.0040.00416.12
7.3.300.0030.00316.17
7.3.290.0120.00316.27
7.3.280.0040.01616.31
7.3.270.0160.00017.40
7.3.260.0140.00618.24
7.3.250.0080.01216.37
7.3.240.0040.01316.44
7.3.230.0140.00816.66
7.3.210.0070.01416.42
7.3.200.0070.01019.39
7.3.190.0070.01416.22
7.3.180.0080.01216.38
7.3.170.0090.00616.27
7.3.160.0090.00616.59
7.3.120.0100.00014.69
7.3.10.0090.00516.46
7.3.00.0090.00416.58
7.2.330.0030.01416.48
7.2.320.0090.00916.56
7.2.310.0060.01616.28
7.2.300.0130.00316.46
7.2.290.0110.00616.51
7.2.130.0040.00916.72
7.2.120.0060.01016.81
7.2.110.0220.00516.65
7.2.100.0020.01116.76
7.2.90.0060.00916.60
7.2.80.0050.00816.73
7.2.70.0090.00416.91
7.2.60.0020.01316.68
7.2.50.0040.01016.70
7.2.40.0120.00316.65
7.2.30.0050.00716.74
7.2.20.0040.01116.79
7.2.10.0070.00716.66
7.2.00.0030.01317.77
7.1.250.0080.00415.54
7.1.200.0100.00315.66
7.1.100.0080.00317.63
7.1.70.0000.01017.04
7.1.60.0190.00319.40
7.1.50.0060.00616.90
7.1.00.0000.08022.43
7.0.200.0000.00716.44
7.0.140.0030.07322.09
7.0.110.0100.07720.00
7.0.100.0100.08319.90
7.0.90.0070.07719.86
7.0.80.0070.07719.91
7.0.70.0130.07319.98
7.0.60.0130.05019.98
7.0.50.0070.07720.01
7.0.40.0070.07719.88
7.0.30.0170.07019.70
7.0.20.0070.08019.66
7.0.10.0070.07719.84
7.0.00.0100.08319.64
5.6.280.0070.07021.13
5.6.260.0130.07320.61
5.6.250.0100.06020.64
5.6.240.0100.08720.70
5.6.230.0170.07720.66
5.6.220.0070.08720.55
5.6.210.0030.05020.69
5.6.200.0070.07020.60
5.6.190.0030.09320.70
5.6.180.0100.07720.66
5.6.170.0070.07720.71
5.6.160.0070.08020.63
5.6.150.0070.08720.63
5.6.140.0200.07320.62
5.6.130.0070.08020.65
5.6.120.0130.07320.59
5.6.110.0200.06720.64
5.6.100.0030.08320.55
5.6.90.0130.07720.60
5.6.80.0030.08019.95
5.6.70.0070.08020.00
5.6.60.0030.05020.06
5.6.50.0000.04720.07
5.6.40.0070.04019.96
5.6.30.0030.04319.99
5.6.20.0070.04319.95
5.6.10.0070.04719.95
5.6.00.0000.04319.82
5.5.380.0130.08017.72
5.5.370.0100.07017.69
5.5.360.0070.07017.68
5.5.350.0070.08317.53
5.5.340.0130.07717.91
5.5.330.0070.07018.13
5.5.320.0170.07717.96
5.5.310.0030.08017.93
5.5.300.0030.08718.22
5.5.290.0100.07717.93
5.5.280.0230.06318.09
5.5.270.0070.08017.90
5.5.260.0100.07318.25
5.5.250.0100.06017.64
5.5.240.0100.06317.32
5.5.230.0070.07017.64
5.5.220.0070.06717.21
5.5.210.0030.04017.60
5.5.200.0070.04017.19
5.5.190.0000.04317.41
5.5.180.0070.03717.45
5.5.160.0030.04317.45
5.5.150.0070.04017.26
5.5.140.0030.04317.20
5.5.130.0030.03717.45
5.5.120.0130.05017.58
5.5.110.0030.04317.26
5.5.100.0030.04717.17
5.5.90.0000.04017.18
5.5.80.0070.04017.21
5.5.70.0000.07017.31
5.5.60.0030.03717.32
5.5.50.0070.04017.37
5.5.40.0070.03317.49
5.5.30.0030.03717.19
5.5.20.0000.04017.19
5.5.10.0000.04017.33
5.5.00.0070.03317.46
5.4.450.0030.08319.55
5.4.440.0030.08319.49
5.4.430.0100.07319.66
5.4.420.0100.07319.33
5.4.410.0000.06319.42
5.4.400.0170.07719.23
5.4.390.0000.07719.00
5.4.380.0070.04019.02
5.4.370.0030.04319.01
5.4.360.0030.04319.18
5.4.350.0030.03718.98
5.4.340.0000.04318.95
5.4.320.0030.04319.24
5.4.310.0030.04319.18
5.4.300.0030.03719.00
5.4.290.0030.03718.95
5.4.280.0070.04719.18
5.4.270.0130.03019.09
5.4.260.0070.04319.14
5.4.250.0030.04019.17
5.4.240.0100.03719.04
5.4.230.0070.05018.99
5.4.220.0100.05719.25
5.4.210.0000.04719.07
5.4.200.0100.03019.14
5.4.190.0030.04019.32
5.4.180.0030.03719.17
5.4.170.0030.04319.00
5.4.160.0000.04019.08
5.4.150.0030.05319.21
5.4.140.0030.03716.38
5.4.130.0030.03716.60
5.4.120.0000.03716.57
5.4.110.0030.03716.63
5.4.100.0030.03016.60
5.4.90.0030.03716.52
5.4.80.0070.04716.45
5.4.70.0000.04716.45
5.4.60.0000.03716.51
5.4.50.0030.03316.63
5.4.40.0030.03716.61
5.4.30.0070.04316.56
5.4.20.0070.04316.38
5.4.10.0100.07016.54
5.4.00.0030.07715.75
5.3.290.0000.06714.75
5.3.280.0070.04314.61
5.3.270.0030.03714.57
5.3.260.0130.03014.64
5.3.250.0030.07014.74
5.3.240.0030.03714.74
5.3.230.0070.03014.59
5.3.220.0070.03314.58
5.3.210.0070.04314.58
5.3.200.0000.04014.56
5.3.190.0100.02714.57
5.3.180.0030.06014.64
5.3.170.0030.03014.42
5.3.160.0070.03314.53
5.3.150.0000.04014.57
5.3.140.0070.03314.51
5.3.130.0070.04014.55
5.3.120.0100.03714.57
5.3.110.0030.04314.51
5.3.100.0070.06014.05
5.3.90.0030.06714.00
5.3.80.0100.07014.01
5.3.70.0070.07314.05
5.3.60.0030.07014.00
5.3.50.0200.05713.91
5.3.40.0100.07714.08
5.3.30.0070.07013.91
5.3.20.0070.07313.71
5.3.10.0130.06313.74
5.3.00.0130.06713.72
5.2.170.0070.06311.21
5.2.160.0070.06311.23
5.2.150.0070.06011.27
5.2.140.0070.05011.37
5.2.130.0030.06010.96
5.2.120.0030.05711.24
5.2.110.0130.03311.12
5.2.100.0170.05311.13
5.2.90.0070.06011.23
5.2.80.0000.06711.11
5.2.70.0100.06011.11
5.2.60.0000.06311.08
5.2.50.0070.06011.16
5.2.40.0100.06010.95
5.2.30.0030.06710.93
5.2.20.0000.06310.82
5.2.10.0030.05710.86
5.2.00.0070.06010.80
5.1.60.0030.05310.23
5.1.50.0000.05310.23
5.1.40.0000.05710.23
5.1.30.0030.05710.47
5.1.20.0030.05710.59
5.1.10.0030.06310.23
5.1.00.0000.05010.23
5.0.50.0030.04310.23
5.0.40.0000.04710.23
5.0.30.0130.06010.23
5.0.20.0070.04010.23
5.0.10.0070.03710.23
5.0.00.0030.06010.23
4.4.90.0000.03710.23
4.4.80.0030.03310.23
4.4.70.0030.04010.23
4.4.60.0000.04010.23
4.4.50.0030.02710.23
4.4.40.0000.05710.23
4.4.30.0000.03710.23
4.4.20.0030.03710.23
4.4.10.0030.03310.23
4.4.00.0030.05010.23
4.3.110.0130.02710.23
4.3.100.0030.03310.23
4.3.90.0000.03710.23
4.3.80.0000.05310.23
4.3.70.0000.03710.23
4.3.60.0070.03010.23
4.3.50.0000.03710.23
4.3.40.0000.04710.23
4.3.30.0070.02710.23
4.3.20.0070.03310.23
4.3.10.0030.03010.23
4.3.00.0030.02710.23

preferences:
58.82 ms | 401 KiB | 5 Q