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; TestParentClass1::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.0130.00618.43
8.3.50.0080.00721.98
8.3.40.0170.00318.66
8.3.30.0070.00718.83
8.3.20.0000.00720.34
8.3.10.0080.00021.95
8.3.00.0070.00022.52
8.2.180.0100.00616.38
8.2.170.0090.00919.01
8.2.160.0130.00622.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00817.38
8.2.110.0060.00320.25
8.2.100.0040.00817.91
8.2.90.0050.00317.50
8.2.80.0040.00418.65
8.2.70.0030.00517.63
8.2.60.0000.00817.38
8.2.50.0030.00517.80
8.2.40.0040.00419.38
8.2.30.0000.00718.05
8.2.20.0080.00017.54
8.2.10.0030.00519.46
8.2.00.0020.00517.58
8.1.280.0100.00325.92
8.1.270.0080.00022.19
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00020.53
8.1.230.0080.00322.20
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0060.00317.25
8.1.190.0040.00417.22
8.1.180.0050.00319.23
8.1.170.0060.00317.62
8.1.160.0040.00422.05
8.1.150.0000.00718.63
8.1.140.0040.00417.43
8.1.130.0000.00717.64
8.1.120.0050.00217.44
8.1.110.0000.00717.45
8.1.100.0040.00417.41
8.1.90.0050.00217.29
8.1.80.0000.00717.47
8.1.70.0040.00417.37
8.1.60.0090.00017.54
8.1.50.0000.00717.44
8.1.40.0030.00617.46
8.1.30.0000.00717.50
8.1.20.0030.00617.54
8.1.10.0000.00717.27
8.1.00.0050.00317.29
8.0.300.0070.00018.77
8.0.290.0000.00916.75
8.0.280.0000.00818.30
8.0.270.0030.00317.18
8.0.260.0030.00316.89
8.0.250.0000.00716.96
8.0.240.0070.00016.93
8.0.230.0000.00716.98
8.0.220.0030.00316.80
8.0.210.0000.00916.80
8.0.200.0000.00616.83
8.0.190.0000.00716.93
8.0.180.0040.00416.90
8.0.170.0000.00816.93
8.0.160.0040.00416.88
8.0.150.0050.00316.67
8.0.140.0060.00316.72
8.0.130.0000.00613.36
8.0.120.0000.00816.88
8.0.110.0000.00716.92
8.0.100.0000.00716.71
8.0.90.0050.00216.95
8.0.80.0060.00916.91
8.0.70.0000.00716.85
8.0.60.0000.00716.93
8.0.50.0040.00416.92
8.0.30.0080.01517.02
8.0.20.0140.00817.40
8.0.10.0000.00716.91
8.0.00.0080.01016.69
7.4.330.0050.00015.09
7.4.320.0070.00016.54
7.4.300.0030.00316.39
7.4.290.0000.00816.44
7.4.280.0030.00316.34
7.4.270.0040.00416.36
7.4.260.0000.00716.53
7.4.250.0030.00316.52
7.4.240.0070.00016.52
7.4.230.0030.00316.33
7.4.220.0140.00316.54
7.4.210.0060.01016.49
7.4.200.0030.00516.57
7.4.190.0000.00816.70
7.4.160.0130.00316.35
7.4.150.0070.01717.40
7.4.140.0130.00317.86
7.4.130.0080.01116.41
7.4.120.0080.01116.42
7.4.110.0140.00716.34
7.4.100.0120.00416.50
7.4.90.0080.01516.36
7.4.80.0140.00719.39
7.4.70.0120.00416.48
7.4.60.0030.01316.37
7.4.50.0050.00316.29
7.4.40.0060.00922.77
7.4.30.0060.00916.39
7.4.00.0140.00515.00
7.3.330.0030.00213.17
7.3.320.0000.00713.33
7.3.310.0040.00416.23
7.3.300.0030.00316.35
7.3.290.0090.00616.29
7.3.280.0080.01116.27
7.3.270.0150.00417.40
7.3.260.0060.01216.50
7.3.250.0090.00916.32
7.3.240.0130.00316.41
7.3.230.0100.01316.50
7.3.210.0100.00716.38
7.3.200.0060.01519.39
7.3.190.0060.01616.30
7.3.180.0090.00616.49
7.3.170.0060.01016.32
7.3.160.0130.00316.30
7.3.120.0060.01114.92
7.3.110.0050.00814.72
7.3.100.0050.00814.87
7.3.90.0100.00414.72
7.3.80.0040.01014.82
7.3.70.0090.00714.82
7.3.60.0080.00814.66
7.3.50.0070.00714.76
7.3.40.0050.01014.81
7.3.30.0060.00814.83
7.3.20.0080.00516.70
7.3.10.0110.00216.53
7.3.00.0060.00716.54
7.2.330.0120.00616.54
7.2.320.0120.00916.26
7.2.310.0070.01316.46
7.2.300.0080.00916.29
7.2.290.0120.00916.29
7.2.250.0090.00914.61
7.2.240.0060.01215.02
7.2.230.0050.00814.90
7.2.220.0030.01514.99
7.2.210.0060.00914.94
7.2.200.0050.00815.02
7.2.190.0030.01114.70
7.2.180.0100.00714.73
7.2.170.0060.00815.03
7.2.160.0030.00714.70
7.2.150.0030.01016.48
7.2.140.0060.00916.80
7.2.130.0140.00016.65
7.2.120.0070.00716.69
7.2.110.0070.00716.87
7.2.100.0030.01016.91
7.2.90.0030.00716.45
7.2.80.0000.01416.96
7.2.70.0060.00316.89
7.2.60.0100.00616.75
7.2.50.0030.01016.49
7.2.40.0000.01716.82
7.2.30.0030.00716.63
7.2.20.0000.01416.88
7.2.10.0070.00716.65
7.2.00.0040.00718.05
7.1.330.0080.00615.70
7.1.320.0030.01115.44
7.1.310.0050.00815.62
7.1.300.0060.00715.69
7.1.290.0050.00515.47
7.1.280.0060.00515.74
7.1.270.0040.01115.64
7.1.260.0040.01015.74
7.1.250.0040.00415.71
7.1.200.0030.00715.58
7.1.100.0060.00617.82
7.1.70.0070.00017.12
7.1.60.0140.01119.82
7.1.50.0030.01634.68
7.1.00.0030.07722.31
7.0.200.0100.00316.77
7.0.140.0070.06721.93
7.0.100.0070.04719.92
7.0.90.0070.08020.00
7.0.80.0130.06319.89
7.0.70.0070.07719.89
7.0.60.0400.08019.95
7.0.50.0070.04720.14
7.0.40.0070.06720.15
7.0.30.0100.04719.96
7.0.20.0130.07720.15
7.0.10.0030.06020.02
7.0.00.0000.06020.02
5.6.280.0000.07721.04
5.6.250.0100.07720.57
5.6.240.0100.07020.61
5.6.230.0130.05020.60
5.6.220.0130.04320.67
5.6.210.0130.06720.66
5.6.200.0030.05021.15
5.6.190.0100.05721.09
5.6.180.0030.04721.04
5.6.170.0230.05320.94
5.6.160.0000.08320.94
5.6.150.0100.04321.08
5.6.140.0000.07021.02
5.6.130.0100.07721.10
5.6.120.0100.07721.12
5.6.110.0100.04721.04
5.6.100.0070.05320.95
5.6.90.0130.07321.03
5.6.80.0070.07320.42
5.6.70.0070.06320.33
5.6.60.0100.07320.54
5.6.50.0030.04020.50
5.6.40.0070.06020.38
5.6.30.0130.07320.47
5.6.20.0130.04320.46
5.6.10.0030.04020.50
5.6.00.0070.07320.30
5.5.380.0130.07720.38
5.5.370.0030.04720.38
5.5.360.0030.05720.36
5.5.350.0030.05020.43
5.5.340.0070.05720.79
5.5.330.0030.08020.74
5.5.320.0100.05020.93
5.5.310.0030.04320.90
5.5.300.0030.04720.89
5.5.290.0130.07720.90
5.5.280.0070.07320.92
5.5.270.0100.06320.84
5.5.260.0030.05720.77
5.5.250.0030.05320.68
5.5.240.0000.04320.17
5.5.230.0100.07720.30
5.5.220.0100.04320.16
5.5.210.0100.04320.18
5.5.200.0170.06720.27
5.5.190.0100.07720.20
5.5.180.0070.05020.22
5.5.160.0030.05020.13
5.5.150.0070.06720.21
5.5.140.0030.08020.25
5.5.130.0130.06320.13
5.5.120.0000.04720.18
5.5.110.0100.04020.18
5.5.100.0030.04019.96
5.5.90.0170.02720.05
5.5.80.0100.07720.16
5.5.70.0100.06719.95
5.5.60.0070.07720.10
5.5.50.0170.06020.06
5.5.40.0100.07320.16
5.5.30.0000.05020.10
5.5.20.0030.07020.12
5.5.10.0070.04020.10
5.5.00.0130.06319.96
5.4.450.0230.05019.38
5.4.440.0100.07019.27
5.4.430.0000.04019.23
5.4.420.0030.04019.27
5.4.410.0100.07719.32
5.4.400.0100.07319.23
5.4.390.0000.07019.13
5.4.380.0000.04719.21
5.4.370.0100.06319.13
5.4.360.0070.06319.14
5.4.350.0170.05319.21
5.4.340.0170.03719.03
5.4.320.0100.03319.13
5.4.310.0070.03319.16
5.4.300.0030.06319.23
5.4.290.0130.06019.09
5.4.280.0100.06719.13
5.4.270.0030.07319.02
5.4.260.0130.07319.04
5.4.250.0100.07718.84
5.4.240.0100.07019.13
5.4.230.0100.07318.84
5.4.220.0170.04718.94
5.4.210.0070.07719.02
5.4.200.0070.05319.17
5.4.190.0070.06719.04
5.4.180.0100.06018.89
5.4.170.0030.07319.03
5.4.160.0100.07319.02
5.4.150.0030.04018.83
5.4.140.0070.05316.39
5.4.130.0100.04716.46
5.4.120.0070.07316.54
5.4.110.0030.04716.47
5.4.100.0030.05016.54
5.4.90.0170.06316.55
5.4.80.0000.06316.30
5.4.70.0070.03716.43
5.4.60.0170.03016.32
5.4.50.0030.05016.32
5.4.40.0030.05316.46
5.4.30.0100.07016.40
5.4.20.0070.04716.35
5.4.10.0100.07016.41
5.4.00.0030.07315.69
5.3.290.0000.05014.64
5.3.280.0100.07714.58
5.3.270.0100.07314.58
5.3.260.0030.07714.75
5.3.250.0200.06314.75
5.3.240.0100.04014.63
5.3.230.0030.08014.63
5.3.220.0070.06314.59
5.3.210.0200.04714.54
5.3.200.0030.08314.55
5.3.190.0030.07014.62
5.3.180.0070.07314.63
5.3.170.0030.06714.61
5.3.160.0100.07014.53
5.3.150.0030.04314.68
5.3.140.0000.04314.62
5.3.130.0070.07714.67
5.3.120.0170.06714.57
5.3.110.0100.06714.64
5.3.100.0000.07713.99
5.3.90.0070.05014.04
5.3.80.0000.08714.13
5.3.70.0030.05314.00
5.3.60.0030.06313.94
5.3.50.0000.04313.88
5.3.40.0130.06714.09
5.3.30.0030.06313.80
5.3.20.0000.07013.67
5.3.10.0070.04313.64
5.3.00.0030.05013.78
5.2.170.0070.04711.04
5.2.160.0030.05011.07
5.2.150.0070.06011.00
5.2.140.0030.06311.20
5.2.130.0030.05311.19
5.2.120.0070.03010.96
5.2.110.0100.04710.96
5.2.100.0030.05011.18
5.2.90.0070.03011.19
5.2.80.0000.03311.01
5.2.70.0030.06311.18
5.2.60.0030.06311.06
5.2.50.0070.03011.07
5.2.40.0030.03310.88
5.2.30.0030.06310.86
5.2.20.0100.05010.86
5.2.10.0070.04710.93
5.2.00.0030.06010.83
5.1.60.0030.0509.89
5.1.50.0030.03710.09
5.1.40.0000.0439.97
5.1.30.0100.04710.46
5.1.20.0070.05310.21
5.1.10.0000.03310.16
5.1.00.0000.0379.96
5.0.50.0000.0479.54
5.0.40.0000.0309.54
5.0.30.0030.0639.54
5.0.20.0070.0179.54
5.0.10.0030.0409.54
5.0.00.0000.0579.54
4.4.90.0070.0109.54
4.4.80.0070.0279.54
4.4.70.0070.0309.54
4.4.60.0000.0409.54
4.4.50.0000.0309.54
4.4.40.0000.0509.54
4.4.30.0030.0379.54
4.4.20.0030.0279.54
4.4.10.0000.0179.54
4.4.00.0000.0579.54
4.3.110.0070.0139.54
4.3.100.0030.0179.54
4.3.90.0030.0239.54
4.3.80.0030.0509.54
4.3.70.0000.0339.54
4.3.60.0030.0209.54
4.3.50.0000.0309.54
4.3.40.0100.0379.54
4.3.30.0070.0309.54
4.3.20.0030.0309.54
4.3.10.0000.0309.54
4.3.00.0030.0179.54

preferences:
42.7 ms | 401 KiB | 5 Q