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.40.0070.01118.49
8.3.30.0040.01818.63
8.3.20.0080.00018.51
8.3.10.0090.00018.64
8.3.00.0080.00419.13
8.2.170.0090.00622.96
8.2.160.0110.00418.82
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0070.00020.78
8.2.110.0000.00922.08
8.2.100.0080.00317.89
8.2.90.0030.00617.75
8.2.80.0030.00518.80
8.2.70.0030.00617.48
8.2.60.0040.00417.50
8.2.50.0040.00418.04
8.2.40.0050.00319.95
8.2.30.0030.00617.66
8.2.20.0060.00317.55
8.2.10.0070.00017.67
8.2.00.0050.00617.61
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.81
8.1.230.0040.00818.98
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0080.00017.35
8.1.190.0060.00317.11
8.1.180.0050.00318.10
8.1.170.0020.00517.62
8.1.160.0040.00418.82
8.1.150.0020.00518.57
8.1.140.0070.00017.38
8.1.130.0070.00017.30
8.1.120.0040.00417.24
8.1.110.0040.00417.39
8.1.100.0070.00017.43
8.1.90.0040.00417.32
8.1.80.0040.00417.39
8.1.70.0070.00017.37
8.1.60.0040.00417.54
8.1.50.0000.00817.39
8.1.40.0000.00817.35
8.1.30.0040.00417.61
8.1.20.0030.00617.59
8.1.10.0070.00017.44
8.1.00.0100.00017.25
8.0.300.0040.00419.77
8.0.290.0060.00316.63
8.0.280.0050.00418.64
8.0.270.0070.00017.20
8.0.260.0060.00016.87
8.0.250.0000.00716.93
8.0.240.0000.00817.03
8.0.230.0030.00316.93
8.0.220.0030.00316.80
8.0.210.0030.00316.84
8.0.200.0080.00016.87
8.0.190.0000.00816.88
8.0.180.0070.00316.89
8.0.170.0000.00816.89
8.0.160.0070.00016.86
8.0.150.0000.00816.78
8.0.140.0020.00516.75
8.0.130.0000.00913.31
8.0.120.0050.00316.82
8.0.110.0000.00916.74
8.0.100.0000.00716.89
8.0.90.0040.00416.74
8.0.80.0110.01116.91
8.0.70.0080.00016.78
8.0.60.0040.00416.75
8.0.50.0030.00616.82
8.0.30.0040.01517.27
8.0.20.0030.01416.95
8.0.10.0030.00616.98
8.0.00.0090.01116.70
7.4.330.0000.00512.92
7.4.320.0050.00216.30
7.4.300.0030.00316.36
7.4.290.0000.00816.38
7.4.280.0040.00416.52
7.4.270.0060.00316.52
7.4.260.0050.00013.17
7.4.250.0030.00516.49
7.4.240.0070.00016.48
7.4.230.0030.00616.60
7.4.220.0090.00916.60
7.4.210.0070.00716.40
7.4.200.0030.00316.61
7.4.190.0030.00316.47
7.4.160.0090.00616.21
7.4.150.0100.00716.61
7.4.140.0090.00916.51
7.4.130.0090.01216.31
7.4.120.0070.01016.37
7.4.110.0070.01116.46
7.4.100.0110.00716.58
7.4.90.0100.00716.25
7.4.80.0130.00719.39
7.4.70.0120.00416.21
7.4.60.0110.00516.43
7.4.50.0060.00016.57
7.4.40.0000.01116.35
7.4.30.0050.01316.61
7.4.10.0140.00314.89
7.4.00.0020.01514.84
7.3.330.0030.00413.09
7.3.320.0040.00413.13
7.3.310.0050.00216.20
7.3.300.0030.00316.26
7.3.290.0050.00916.31
7.3.280.0110.00516.29
7.3.270.0030.01316.41
7.3.260.0090.00916.51
7.3.250.0130.00816.51
7.3.240.0000.01916.29
7.3.230.0030.01316.37
7.3.210.0140.00316.27
7.3.200.0000.01716.36
7.3.190.0060.01216.61
7.3.180.0080.01216.29
7.3.170.0030.01316.42
7.3.160.0160.00016.46
7.3.130.0100.00714.46
7.3.120.0070.00914.77
7.3.110.0100.01014.80
7.3.100.0040.01114.83
7.3.90.0000.01414.53
7.3.80.0100.01014.91
7.3.70.0000.01314.62
7.3.60.0100.00614.62
7.3.50.0110.00714.77
7.3.40.0060.00614.64
7.3.30.0120.00314.87
7.3.20.0090.00616.63
7.3.10.0110.00416.49
7.3.00.0090.00616.61
7.2.330.0070.01016.25
7.2.320.0030.01316.31
7.2.310.0100.01016.55
7.2.300.0060.01116.34
7.2.290.0130.00716.55
7.2.260.0120.00614.91
7.2.250.0070.01414.89
7.2.240.0070.00714.71
7.2.230.0110.00414.96
7.2.220.0030.01014.55
7.2.210.0050.00814.95
7.2.200.0000.01214.87
7.2.190.0030.01014.87
7.2.180.0000.01314.97
7.2.170.0040.01214.58
7.2.160.0130.00015.12
7.2.150.0070.00716.86
7.2.140.0070.00716.89
7.2.130.0120.00316.85
7.2.120.0000.01316.41
7.2.110.0070.01016.80
7.2.100.0070.01016.41
7.2.90.0030.00916.51
7.2.80.0090.00616.57
7.2.70.0060.00916.95
7.2.60.0080.00616.89
7.2.50.0000.01016.87
7.2.40.0140.00416.82
7.2.30.0030.01016.81
7.2.20.0090.00616.91
7.2.10.0000.01216.59
7.2.00.0120.00316.52
7.1.330.0030.01015.82
7.1.320.0120.00315.75
7.1.310.0050.00515.66
7.1.300.0070.00715.68
7.1.290.0060.00315.72
7.1.280.0030.01315.64
7.1.270.0090.00615.57
7.1.260.0070.01015.55
7.1.250.0130.00315.44
7.1.240.0070.00415.48
7.1.230.0130.00015.69
7.1.220.0060.00915.66
7.1.210.0030.01015.50
7.1.200.0060.00715.65
7.1.190.0090.00615.75
7.1.180.0110.00415.82
7.1.170.0040.00415.47
7.1.160.0040.01215.61
7.1.150.0000.01415.58
7.1.140.0030.00915.75
7.1.130.0060.00915.71
7.1.120.0000.01015.73
7.1.110.0100.00315.53
7.1.100.0030.01015.71
7.1.90.0030.01215.38
7.1.80.0060.01015.48
7.1.70.0030.00816.24
7.1.60.0030.01217.40
7.1.50.0090.00916.06
7.1.40.0030.00715.51
7.1.30.0030.01415.70
7.1.20.0140.00015.46
7.1.10.0030.01015.65
7.1.00.0050.03919.04
7.0.330.0080.00815.22
7.0.320.0080.00315.32
7.0.310.0030.01015.26
7.0.300.0060.00915.37
7.0.290.0040.01415.27
7.0.280.0060.00615.41
7.0.270.0030.01014.97
7.0.260.0030.00715.13
7.0.250.0030.01015.32
7.0.240.0040.00815.46
7.0.230.0060.00615.36
7.0.220.0030.01315.21
7.0.210.0030.01315.07
7.0.200.0030.00915.87
7.0.190.0090.00015.39
7.0.180.0070.01015.37
7.0.170.0070.00315.20
7.0.160.0080.00815.32
7.0.150.0070.01015.16
7.0.140.0100.02818.47
7.0.130.0030.01015.32
7.0.120.0050.03518.70
7.0.110.0090.00315.07
7.0.100.0100.00314.96
7.0.90.0070.00715.18
7.0.80.0030.01015.30
7.0.70.0030.00915.52
7.0.60.0020.03318.57
7.0.50.0050.02816.71
7.0.40.0040.03316.64
7.0.30.0200.04016.74
7.0.20.0150.03616.59
7.0.10.0050.03216.61
7.0.00.0090.04216.84
5.6.400.0070.00714.59
5.6.390.0070.00714.24
5.6.380.0100.00314.44
5.6.370.0060.00914.37
5.6.360.0110.00314.06
5.6.350.0110.00814.08
5.6.340.0060.00614.11
5.6.330.0100.00714.06
5.6.320.0080.00414.26
5.6.310.0040.00714.55
5.6.300.0030.00614.20
5.6.290.0030.01314.19
5.6.280.0020.04217.54
5.6.270.0130.00314.30
5.6.260.0070.01014.41
5.6.250.0040.00414.33
5.6.240.0070.00714.02
5.6.230.0030.01314.52
5.6.220.0030.00714.24
5.6.210.0080.03017.40
5.6.200.0070.02516.16
5.6.190.0050.04917.38
5.6.180.0170.04517.52
5.6.170.0160.04217.40
5.6.160.0020.04817.38
5.6.150.0050.02616.20
5.6.140.0070.04416.29
5.6.130.0050.03616.31
5.6.120.0120.04317.69
5.6.110.0090.03917.49
5.6.100.0150.03817.78
5.6.90.0050.04217.58
5.6.80.0100.04117.38
5.6.70.0030.00914.19
5.6.60.0000.01413.89
5.6.50.0030.01014.11
5.6.40.0040.01114.00
5.6.30.0060.00613.98
5.6.20.0060.00614.17
5.6.10.0100.00314.16
5.6.00.0030.01014.33
5.5.380.0070.00713.96
5.5.370.0030.00914.13
5.5.360.0070.00713.77
5.5.350.0000.04717.38
5.5.340.0030.03215.98
5.5.330.0100.04217.20
5.5.320.0190.02417.05
5.5.310.0110.03417.09
5.5.300.0050.03316.06
5.5.290.0060.02516.22
5.5.280.0030.03017.54
5.5.270.0070.04417.58
5.5.260.0080.04517.57
5.5.250.0100.02817.44
5.5.240.0130.04317.11
5.5.230.0030.01014.24
5.5.220.0100.00314.01
5.5.210.0000.01113.89
5.5.200.0050.00813.85
5.5.190.0060.00913.80
5.5.180.0030.00913.78
5.5.170.0000.01314.00
5.5.160.0040.00714.15
5.5.150.0030.00913.97
5.5.140.0030.01113.73
5.5.130.0030.01413.90
5.5.120.0070.01013.82
5.5.110.0070.00713.60
5.5.100.0070.01113.91
5.5.90.0110.00714.18
5.5.80.0030.01014.15
5.5.70.0030.00714.08
5.5.60.0030.01013.89
5.5.50.0030.01214.12
5.5.40.0000.01414.07
5.5.30.0090.00614.20
5.5.20.0030.01013.98
5.5.10.0060.00614.10
5.5.00.0070.00713.71
5.4.450.0050.04215.25
5.4.440.0020.02415.09
5.4.430.0050.03915.16
5.4.420.0100.02815.16
5.4.410.0160.02815.08
5.4.400.0020.03414.97
5.4.390.0020.04715.00
5.4.380.0070.03915.02
5.4.370.0070.03915.04
5.4.360.0050.02714.86
5.4.350.0050.04215.01
5.4.340.0070.03814.77
5.4.330.0040.00811.01
5.4.320.0030.02115.07
5.4.310.0070.03714.97
5.4.300.0050.03914.92
5.4.290.0020.04814.94
5.4.280.0050.03715.02
5.4.270.0020.04214.92
5.4.260.0030.03314.86
5.4.250.0090.02415.16
5.4.240.0050.04114.85
5.4.230.0030.02814.91
5.4.220.0050.03515.01
5.4.210.0050.04314.94
5.4.200.0070.04014.78
5.4.190.0030.02814.78
5.4.180.0070.03314.98
5.4.170.0110.03614.83
5.4.160.0110.02314.98
5.4.150.0080.03415.04
5.4.140.0080.03813.73
5.4.130.0050.03713.64
5.4.120.0050.04313.68
5.4.110.0060.04013.75
5.4.100.0020.03913.88
5.4.90.0070.02213.63
5.4.80.0030.02013.58
5.4.70.0040.02213.72
5.4.60.0060.02113.62
5.4.50.0030.02113.67
5.4.40.0030.02313.67
5.4.30.0060.01813.49
5.4.20.0040.01913.74
5.4.10.0040.02413.74
5.4.00.0020.02013.35
5.3.290.0050.02912.69
5.3.280.0020.03912.62
5.3.270.0030.02812.65
5.3.260.0050.03212.66
5.3.250.0060.03812.65
5.3.240.0070.03812.65
5.3.230.0080.03312.63
5.3.220.0060.02112.64
5.3.210.0100.03312.68
5.3.200.0070.02712.62
5.3.190.0030.02312.63
5.3.180.0030.02212.62
5.3.170.0000.02812.63
5.3.160.0080.01812.62
5.3.150.0070.02012.63
5.3.140.0050.02112.63
5.3.130.0020.02312.56
5.3.120.0110.01512.62
5.3.110.0020.02212.56
5.3.100.0030.02112.34
5.3.90.0040.01912.33
5.3.80.0000.02312.35
5.3.70.0020.02112.33
5.3.60.0000.02412.40
5.3.50.0030.02212.24
5.3.40.0040.02612.33
5.3.30.0070.01712.25
5.3.20.0000.02212.19
5.3.10.0080.01512.13
5.3.00.0050.01912.15
5.2.170.0000.03011.11
5.2.160.0070.03011.30
5.2.150.0030.03011.15
5.2.140.0000.03011.20
5.2.130.0000.03011.05
5.2.120.0030.02711.25
5.2.110.0030.02711.06
5.2.100.0030.02711.11
5.2.90.0030.03011.16
5.2.80.0000.03011.15
5.2.70.0030.03011.09
5.2.60.0030.02711.11
5.2.50.0030.03310.94
5.2.40.0030.02711.09
5.2.30.0030.02711.02
5.2.20.0030.03311.03
5.2.10.0070.02310.75
5.2.00.0030.02710.76
5.1.60.0000.02310.04
5.1.50.0030.0239.91
5.1.40.0100.01710.04
5.1.30.0000.03010.37
5.1.20.0030.02310.36
5.1.10.0000.02710.09
5.1.00.0000.02710.16
5.0.50.0000.0208.50
5.0.40.0030.0208.38
5.0.30.0000.0308.38
5.0.20.0030.0438.21
5.0.10.0000.0238.22
5.0.00.0030.0678.16
4.4.90.0000.0178.00
4.4.80.0030.0138.00
4.4.70.0030.0138.00
4.4.60.0000.0178.00
4.4.50.0000.0178.00
4.4.40.0000.0238.00
4.4.30.0000.0178.00
4.4.20.0000.0178.00
4.4.10.0030.0138.00
4.4.00.0000.0278.00
4.3.110.0000.0178.00
4.3.100.0000.0178.00
4.3.90.0070.0278.00
4.3.80.0000.0378.00
4.3.70.0000.0338.00
4.3.60.0030.0338.00
4.3.50.0000.0178.00
4.3.40.0000.0538.00
4.3.30.0000.0278.00
4.3.20.0000.0238.00
4.3.10.0000.0278.00
4.3.00.0070.0308.00

preferences:
54.31 ms | 400 KiB | 5 Q