3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestParentClass { 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 { TestTrait::method as methodAlias; TestParentClass::method insteadof TestTrait; } } (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.70.0090.00618.43
8.3.60.0040.01118.43
8.3.50.0070.00821.90
8.3.40.0120.00318.61
8.3.30.0150.00619.00
8.3.20.0000.00720.25
8.3.10.0000.00822.04
8.3.00.0040.00422.51
8.2.190.0110.00716.63
8.2.180.0110.00416.38
8.2.170.0110.00722.96
8.2.160.0040.01120.68
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00317.63
8.2.110.0030.00622.13
8.2.100.0030.00917.59
8.2.90.0040.00419.05
8.2.80.0050.00317.97
8.2.70.0000.00917.38
8.2.60.0000.00917.93
8.2.50.0030.00518.07
8.2.40.0070.00018.21
8.2.30.0040.00417.95
8.2.20.0040.00417.50
8.2.10.0000.00717.48
8.2.00.0020.00517.60
8.1.280.0120.00325.92
8.1.270.0040.00423.96
8.1.260.0000.00726.35
8.1.250.0140.00728.09
8.1.240.0060.00323.96
8.1.230.0060.00619.01
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0000.00717.53
8.1.180.0050.00318.10
8.1.170.0030.00718.41
8.1.160.0020.00622.07
8.1.150.0040.00418.45
8.1.140.0030.00617.42
8.1.130.0000.00717.75
8.1.120.0000.00817.39
8.1.110.0000.00717.43
8.1.100.0080.00317.30
8.1.90.0000.00717.30
8.1.80.0030.00317.34
8.1.70.0070.00017.34
8.1.60.0050.00317.53
8.1.50.0040.00417.35
8.1.40.0000.00717.45
8.1.30.0060.00317.57
8.1.20.0040.00417.57
8.1.10.0030.00517.37
8.1.00.0030.00617.20
8.0.300.0000.00718.77
8.0.290.0000.00717.16
8.0.280.0050.00218.30
8.0.270.0030.00317.10
8.0.260.0040.00416.79
8.0.250.0000.00716.96
8.0.240.0030.00316.91
8.0.230.0000.00816.84
8.0.220.0000.00716.89
8.0.210.0030.00316.81
8.0.200.0070.00016.93
8.0.190.0040.00416.96
8.0.180.0000.00816.77
8.0.170.0040.00416.79
8.0.160.0070.00016.90
8.0.150.0000.00716.72
8.0.140.0040.00416.89
8.0.130.0000.00513.36
8.0.120.0030.00516.73
8.0.110.0030.00516.79
8.0.100.0040.00416.84
8.0.90.0000.00716.77
8.0.80.0090.01216.77
8.0.70.0030.00516.88
8.0.60.0040.00416.94
8.0.50.0000.00716.84
8.0.30.0090.01016.95
8.0.20.0150.01017.40
8.0.10.0030.00516.82
8.0.00.0160.00316.65
7.4.330.0000.00615.14
7.4.320.0000.00616.57
7.4.300.0030.00316.53
7.4.290.0030.00616.45
7.4.280.0030.00316.43
7.4.270.0080.00416.42
7.4.260.0000.00716.51
7.4.250.0040.00416.29
7.4.240.0000.00716.43
7.4.230.0070.00016.54
7.4.220.0100.00716.50
7.4.210.0080.00616.46
7.4.200.0000.00716.57
7.4.190.0000.00716.49
7.4.160.0120.00416.47
7.4.150.0060.01017.40
7.4.140.0070.01217.86
7.4.130.0150.00116.58
7.4.120.0080.00916.52
7.4.110.0100.00616.60
7.4.100.0100.01016.32
7.4.90.0150.00716.25
7.4.80.0120.00616.55
7.4.70.0130.00616.46
7.4.60.0120.00816.54
7.4.50.0030.00516.38
7.4.40.0030.01022.77
7.4.30.0060.01116.51
7.4.00.0100.00714.64
7.3.330.0030.00313.16
7.3.320.0050.00013.07
7.3.310.0070.00016.30
7.3.300.0000.00616.33
7.3.290.0100.01016.27
7.3.280.0080.00916.26
7.3.270.0030.01417.40
7.3.260.0100.01116.20
7.3.250.0080.01016.46
7.3.240.0000.01616.35
7.3.230.0100.00616.59
7.3.210.0150.00416.29
7.3.200.0030.01719.39
7.3.190.0100.00716.52
7.3.180.0090.00616.43
7.3.170.0060.00916.46
7.3.160.0120.00616.55
7.3.120.0070.00714.89
7.3.110.0070.00714.80
7.3.100.0110.00614.76
7.3.90.0090.00614.72
7.3.80.0040.00714.60
7.3.70.0060.00814.69
7.3.60.0040.00414.82
7.3.50.0030.00914.86
7.3.40.0070.00314.58
7.3.30.0070.01114.79
7.3.20.0040.01116.50
7.3.10.0030.01016.55
7.3.00.0060.00916.72
7.2.330.0110.00716.56
7.2.320.0120.00916.28
7.2.310.0070.01116.61
7.2.300.0100.01316.41
7.2.290.0120.00616.44
7.2.240.0150.00415.13
7.2.230.0030.01014.89
7.2.220.0090.00614.61
7.2.210.0070.00714.86
7.2.200.0000.01714.80
7.2.190.0000.01014.63
7.2.180.0030.00914.69
7.2.170.0080.00414.93
7.2.160.0030.01214.71
7.2.150.0090.00916.64
7.2.140.0000.01516.79
7.2.130.0000.01216.56
7.2.120.0070.01116.73
7.2.110.0040.01416.61
7.2.100.0080.00416.82
7.2.90.0130.00316.77
7.2.80.0040.01116.96
7.2.70.0030.01316.52
7.2.60.0020.01016.65
7.2.50.0100.00316.94
7.2.40.0000.01416.46
7.2.30.0040.01516.74
7.2.20.0110.00716.63
7.2.10.0100.00716.80
7.2.00.0090.00317.99
7.1.330.0030.01315.83
7.1.320.0070.00415.49
7.1.310.0070.00715.64
7.1.300.0060.00615.68
7.1.290.0060.01015.69
7.1.280.0120.00015.47
7.1.270.0070.01015.77
7.1.260.0110.00415.68
7.1.250.0040.00715.68
7.1.200.0170.00315.68
7.1.100.0030.01217.76
7.1.70.0000.01017.01
7.1.60.0080.00419.82
7.1.50.0100.01316.56
7.1.00.0000.08022.40
7.0.200.0080.00416.57
7.0.140.0000.07321.99
7.0.80.0400.04319.88
7.0.70.0430.04319.80
7.0.60.0470.04019.87
7.0.50.0630.07720.29
7.0.40.0070.05720.13
7.0.30.0100.07720.05
7.0.20.0130.06719.96
7.0.10.0070.06320.07
7.0.00.0030.06019.95
5.6.280.0030.07320.82
5.6.230.0100.04720.55
5.6.220.0200.07020.67
5.6.210.0130.08020.76
5.6.200.0100.04320.97
5.6.190.0130.07721.11
5.6.180.0170.06021.05
5.6.170.0000.05321.08
5.6.160.0170.06021.05
5.6.150.0100.08321.06
5.6.140.0130.07721.07
5.6.130.0070.08321.04
5.6.120.0030.04721.09
5.6.110.0030.04321.16
5.6.100.0030.08721.01
5.6.90.0100.07720.94
5.6.80.0130.03720.47
5.6.70.0100.04720.39
5.6.60.0070.05020.39
5.6.50.0030.05720.42
5.6.40.0070.08020.40
5.6.30.0000.07020.39
5.6.20.0100.07720.43
5.6.10.0200.06320.38
5.6.00.0130.07020.48
5.5.370.0100.05020.32
5.5.360.0200.05720.39
5.5.350.0000.06020.45
5.5.340.0070.08720.89
5.5.330.0030.08720.88
5.5.320.0070.08320.65
5.5.310.0170.07020.79
5.5.300.0100.07720.75
5.5.290.0070.07320.78
5.5.280.0070.06320.93
5.5.270.0070.07320.89
5.5.260.0100.08320.73
5.5.250.0170.07020.55
5.5.240.0030.07320.30
5.5.230.0100.07720.31
5.5.220.0130.06720.22
5.5.210.0070.07020.26
5.5.200.0130.06020.23
5.5.190.0000.09020.22
5.5.180.0070.07720.19
5.5.160.0030.08720.16
5.5.150.0030.08020.15
5.5.140.0030.08320.27
5.5.130.0130.06320.09
5.5.120.0030.04720.00
5.5.110.0030.05720.23
5.5.100.0130.07320.18
5.5.90.0030.07720.19
5.5.80.0100.06720.08
5.5.70.0200.06720.06
5.5.60.0100.07320.06
5.5.50.0070.07320.05
5.5.40.0130.07320.09
5.5.30.0100.04020.06
5.5.20.0100.07720.10
5.5.10.0030.06720.13
5.5.00.0070.05020.02
5.4.450.0100.07319.54
5.4.440.0070.05719.41
5.4.430.0100.06719.46
5.4.420.0130.07019.45
5.4.410.0100.07019.23
5.4.400.0130.07319.05
5.4.390.0030.04018.87
5.4.380.0130.06319.03
5.4.370.0000.08019.05
5.4.360.0000.07319.23
5.4.350.0100.06719.21
5.4.340.0070.07318.95
5.4.320.0170.07019.04
5.4.310.0100.07719.12
5.4.300.0100.04318.94
5.4.290.0070.07719.03
5.4.280.0030.06019.18
5.4.270.0030.07019.04
5.4.260.0030.05719.16
5.4.250.0130.07019.08
5.4.240.0100.06018.94
5.4.230.0070.05719.11
5.4.220.0030.06319.15
5.4.210.0070.08018.89
5.4.200.0100.06719.20
5.4.190.0130.07319.17
5.4.180.0030.07718.84
5.4.170.0100.07318.89
5.4.160.0030.08019.07
5.4.150.0070.07318.88
5.4.140.0030.07716.47
5.4.130.0030.05316.50
5.4.120.0100.07016.51
5.4.110.0030.04316.45
5.4.100.0070.07016.32
5.4.90.0030.07716.39
5.4.80.0070.07316.31
5.4.70.0130.06316.54
5.4.60.0130.06016.50
5.4.50.0070.06016.40
5.4.40.0100.05016.48
5.4.30.0100.05016.47
5.4.20.0100.06716.36
5.4.10.0030.05716.36
5.4.00.0100.05315.69
5.3.290.0070.06714.80
5.3.280.0100.07314.66
5.3.270.0130.07014.67
5.3.260.0100.07014.53
5.3.250.0100.07714.57
5.3.240.0100.07714.63
5.3.230.0100.08014.68
5.3.220.0000.05014.52
5.3.210.0100.07314.59
5.3.200.0030.08014.68
5.3.190.0030.07314.58
5.3.180.0100.07314.70
5.3.170.0030.07314.54
5.3.160.0030.06714.61
5.3.150.0070.04714.59
5.3.140.0070.05714.54
5.3.130.0130.03714.54
5.3.120.0100.06014.55
5.3.110.0130.06714.64
5.3.100.0070.04314.16
5.3.90.0130.07014.05
5.3.80.0030.05013.94
5.3.70.0170.06313.93
5.3.60.0030.04314.02
5.3.50.0070.07013.87
5.3.40.0130.07013.87
5.3.30.0130.06713.83
5.3.20.0100.05313.66
5.3.10.0000.04013.76
5.3.00.0030.04313.68
5.2.170.0070.06011.79
5.2.160.0000.06711.79
5.2.150.0030.05711.79
5.2.140.0070.06311.79
5.2.130.0030.03011.79
5.2.120.0000.03311.79
5.2.110.0070.04011.79
5.2.100.0000.05011.79
5.2.90.0030.03011.79
5.2.80.0070.04311.79
5.2.70.0070.06711.79
5.2.60.0030.06311.79
5.2.50.0070.06011.79
5.2.40.0030.05711.79
5.2.30.0030.03711.79
5.2.20.0100.05711.79
5.2.10.0000.04311.79
5.2.00.0030.06311.79
5.1.60.0000.03311.79
5.1.50.0070.04311.79
5.1.40.0000.04711.79
5.1.30.0100.05711.79
5.1.20.0100.03711.79
5.1.10.0100.03711.79
5.1.00.0030.02711.79
5.0.50.0000.02711.79
5.0.40.0000.03711.79
5.0.30.0070.03311.79
5.0.20.0070.04011.79
5.0.10.0030.03711.79
5.0.00.0070.05311.79
4.4.90.0000.03711.79
4.4.80.0030.03311.79
4.4.70.0030.03311.79
4.4.60.0000.03711.79
4.4.50.0000.02711.79
4.4.40.0030.05011.79
4.4.30.0030.03711.79
4.4.20.0000.04011.79
4.4.10.0030.02711.79
4.4.00.0000.05711.79
4.3.110.0100.01711.79
4.3.100.0030.03311.79
4.3.90.0070.03011.79
4.3.80.0000.03011.79
4.3.70.0070.02311.79
4.3.60.0100.01711.79
4.3.50.0000.03711.79
4.3.40.0070.05011.79
4.3.30.0000.02311.79
4.3.20.0000.03311.79
4.3.10.0030.02311.79
4.3.00.0030.01711.79

preferences:
67.23 ms | 401 KiB | 5 Q