3v4l.org

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

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.0070.00718.43
8.3.50.0150.00517.31
8.3.40.0150.00318.89
8.3.30.0150.00318.54
8.3.20.0050.00318.73
8.3.10.0000.00920.54
8.3.00.0030.00517.46
8.2.180.0070.00716.63
8.2.170.0120.00322.96
8.2.160.0070.00721.95
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0050.00226.16
8.2.120.0040.00419.82
8.2.110.0040.00721.04
8.2.100.0110.00017.91
8.2.90.0040.00419.08
8.2.80.0040.00417.80
8.2.70.0030.00917.50
8.2.60.0000.00818.04
8.2.50.0030.00618.07
8.2.40.0040.00418.22
8.2.30.0070.00017.90
8.2.20.0050.00317.64
8.2.10.0070.00017.50
8.2.00.0040.00417.59
8.1.280.0140.00725.92
8.1.270.0050.00323.99
8.1.260.0000.01526.35
8.1.250.0070.00028.09
8.1.240.0030.00622.30
8.1.230.0090.00320.92
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0050.00517.22
8.1.190.0040.00417.39
8.1.180.0030.00618.10
8.1.170.0000.00718.75
8.1.160.0000.00718.83
8.1.150.0080.00018.45
8.1.140.0070.00017.29
8.1.130.0000.00717.82
8.1.120.0000.00817.41
8.1.110.0040.00417.30
8.1.100.0060.00317.36
8.1.90.0070.00017.40
8.1.80.0000.00717.32
8.1.70.0000.00717.35
8.1.60.0080.00017.51
8.1.50.0040.00417.42
8.1.40.0040.00417.45
8.1.30.0040.00417.60
8.1.20.0030.00517.42
8.1.10.0020.00517.42
8.1.00.0040.00417.18
8.0.300.0000.00719.96
8.0.290.0000.00816.63
8.0.280.0000.00718.23
8.0.270.0070.00017.11
8.0.260.0000.00716.83
8.0.250.0040.00416.94
8.0.240.0000.00816.95
8.0.230.0040.00416.84
8.0.220.0040.00416.80
8.0.210.0060.00316.93
8.0.200.0040.00416.99
8.0.190.0000.00716.84
8.0.180.0030.00316.89
8.0.170.0000.00816.91
8.0.160.0000.00716.79
8.0.150.0030.00516.72
8.0.140.0060.00416.83
8.0.130.0000.00613.30
8.0.120.0040.00416.89
8.0.110.0000.00816.88
8.0.100.0040.00416.77
8.0.90.0040.00416.77
8.0.80.0060.00916.78
8.0.70.0040.00416.89
8.0.60.0050.00216.93
8.0.50.0050.00316.95
8.0.30.0140.00617.01
8.0.20.0090.00917.07
8.0.10.0000.00716.81
8.0.00.0100.00916.69
7.4.330.0060.00014.70
7.4.320.0000.00616.36
7.4.300.0040.00416.46
7.4.290.0000.00716.42
7.4.280.0050.00516.37
7.4.270.0080.00016.58
7.4.260.0000.00613.22
7.4.250.0040.00416.43
7.4.240.0000.00716.54
7.4.230.0040.00416.55
7.4.220.0080.01116.56
7.4.210.0060.01016.53
7.4.200.0070.00016.27
7.4.190.0030.00316.68
7.4.160.0000.01516.54
7.4.150.0060.01217.07
7.4.140.0110.01017.19
7.4.130.0090.01016.47
7.4.120.0090.01016.51
7.4.110.0100.01316.53
7.4.100.0070.01016.35
7.4.90.0100.01316.40
7.4.80.0100.00718.80
7.4.70.0090.01216.40
7.4.60.0040.01316.36
7.4.50.0000.00916.14
7.4.40.0040.01522.27
7.4.30.0130.00316.39
7.4.00.0090.00614.70
7.3.330.0030.00313.16
7.3.320.0050.00013.09
7.3.310.0030.00316.26
7.3.300.0000.00716.39
7.3.290.0090.00616.30
7.3.280.0080.00816.27
7.3.270.0080.00817.07
7.3.260.0090.01218.24
7.3.250.0120.00916.39
7.3.240.0140.01116.31
7.3.230.0100.00716.39
7.3.210.0130.00316.43
7.3.200.0090.01519.39
7.3.190.0090.00916.40
7.3.180.0130.00316.47
7.3.170.0040.01116.32
7.3.160.0080.00816.20
7.3.120.0040.01115.05
7.2.330.0090.00916.41
7.2.320.0060.01116.61
7.2.310.0110.01116.21
7.2.300.0070.01016.54
7.2.290.0130.00616.68
7.2.60.0030.01416.41
7.2.00.0030.01419.31
7.1.200.0000.01215.72
7.1.100.0030.00717.88
7.1.70.0000.01016.71
7.1.60.0130.01019.40
7.1.50.0030.02016.95
7.1.00.0100.05322.40
7.0.200.0070.00016.79
7.0.140.0030.07321.98
7.0.60.0100.08020.06
7.0.50.0030.05317.86
7.0.40.0070.04720.07
7.0.30.0230.04020.13
7.0.20.0300.06020.06
7.0.10.0300.08020.30
7.0.00.0030.06320.09
5.6.280.0030.07021.15
5.6.210.0070.03720.75
5.6.200.0070.04018.29
5.6.190.0130.06320.61
5.6.180.0330.05320.77
5.6.170.0230.03720.62
5.6.160.0030.06020.54
5.6.150.0070.07318.28
5.6.140.0100.06318.19
5.6.130.0230.06318.28
5.6.120.0130.07321.14
5.6.110.0100.08321.09
5.6.100.0130.07720.89
5.6.90.0030.06021.09
5.6.80.0030.03720.54
5.6.70.3630.03020.38
5.5.350.0230.06720.30
5.5.340.0070.07718.07
5.5.330.0100.08320.42
5.5.320.0200.04020.47
5.5.310.0230.04320.41
5.5.300.0070.03717.98
5.5.290.0200.04317.95
5.5.280.0030.08320.78
5.5.270.0100.04020.80
5.5.260.0130.07320.89
5.5.250.0030.04320.62
5.5.240.0070.08320.27
5.4.450.0100.05019.54
5.4.440.0100.07019.20
5.4.430.0030.08319.40
5.4.420.0070.06719.46
5.4.410.0130.04719.11
5.4.400.0100.05719.25
5.4.390.0100.05018.88
5.4.380.0230.06019.20
5.4.370.0030.04319.24
5.4.360.0100.04018.85
5.4.350.0100.07719.24
5.4.340.0130.05719.24
5.4.320.0030.07718.86
5.4.310.0100.07719.16
5.4.300.0030.07318.87
5.4.290.0030.04319.11
5.4.280.0170.03019.14
5.4.270.0070.04719.14
5.4.260.0200.06319.12
5.4.250.0170.07019.20
5.4.240.0070.08019.23
5.4.230.0070.05018.98
5.4.220.0100.06719.07
5.4.210.0100.05018.85
5.4.200.0070.09019.20
5.4.190.0100.04319.14
5.4.180.0100.06018.86
5.4.170.0070.07318.91
5.4.160.0000.04318.83
5.4.150.0200.03018.85
5.4.140.0100.04016.34
5.4.130.0030.08016.48
5.4.120.0000.04716.47
5.4.110.0030.04716.74
5.4.100.0000.05016.54
5.4.90.0000.04716.42
5.4.80.0070.04716.46
5.4.70.0100.04716.52
5.4.60.0100.03716.29
5.4.50.0030.07716.36
5.4.40.0100.07016.36
5.4.30.0030.07016.43
5.4.20.0230.06316.27
5.4.10.0130.06716.40
5.4.00.0070.05315.85
5.3.290.0030.08314.66
5.3.280.0130.07014.63
5.3.270.0030.04014.50
5.3.260.0070.07314.66
5.3.250.0100.03714.50
5.3.240.0070.07714.66
5.3.230.0100.07314.67
5.3.220.0100.03714.73
5.3.210.0000.04714.59
5.3.200.0030.06014.62
5.3.190.0030.04714.72
5.3.180.0030.05314.60
5.3.170.0030.08314.59
5.3.160.0030.04314.73
5.3.150.0100.03314.46
5.3.140.0170.06714.61
5.3.130.0100.07314.58
5.3.120.0030.04314.71
5.3.110.0070.05014.55
5.3.100.0100.04714.02
5.3.90.0100.04014.02
5.3.80.0070.03714.02
5.3.70.0070.07014.18
5.3.60.0130.06314.04
5.3.50.0070.03713.95
5.3.40.0070.04013.98
5.3.30.0030.04313.80
5.3.20.0100.04313.74
5.3.10.0130.06313.69
5.3.00.0070.03713.53
5.2.170.0000.03711.20
5.2.160.0030.03311.16
5.2.150.0100.06011.17
5.2.140.0070.03311.20
5.2.130.0070.07011.03
5.2.120.0030.06311.18
5.2.110.0070.03010.99
5.2.100.0070.05711.07
5.2.90.0000.06711.25
5.2.80.0000.03311.09
5.2.70.0070.03011.04
5.2.60.0030.05711.11
5.2.50.0070.05711.08
5.2.40.0070.04011.05
5.2.30.0070.04011.03
5.2.20.0230.04010.93
5.2.10.0100.05710.79
5.2.00.0070.06010.74
5.1.60.0070.05010.06
5.1.50.0100.0509.99
5.1.40.0070.0509.95
5.1.30.0030.05710.43
5.1.20.0070.03710.51
5.1.10.0030.0509.98
5.1.00.0100.03310.15
5.0.50.0100.0239.09
5.0.40.0070.0309.09
5.0.30.0070.0609.09
5.0.20.0100.0439.09
5.0.10.0000.0339.09
5.0.00.0030.0479.09
4.4.90.0030.0379.09
4.4.80.0100.0239.09
4.4.70.0070.0279.09
4.4.60.0000.0339.09
4.4.50.0030.0179.09
4.4.40.0030.0509.09
4.4.30.0000.0279.09
4.4.20.0030.0279.09
4.4.10.0000.0379.09
4.4.00.0070.0539.09
4.3.110.0000.0339.09
4.3.100.0070.0339.09
4.3.90.0000.0309.09
4.3.80.0000.0509.09
4.3.70.0030.0239.09
4.3.60.0000.0239.09
4.3.50.0070.0339.09
4.3.40.0000.0339.09
4.3.30.0070.0139.09
4.3.20.0070.0309.09
4.3.10.0070.0339.09
4.3.00.0000.0379.09

preferences:
45.38 ms | 401 KiB | 5 Q