3v4l.org

run code in 300+ PHP versions simultaneously
<?php class B { public function method() { echo "BBB"; } } class A { public function method() { echo "I'not suppose to"; } } 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 { B::method as method; /* TestTrait::method as methodAlias; TestParentClass::method insteadof TestTrait; */ } } //(new TestChildClass)->mth(); (new TestChildClass)->method(); (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.0070.01116.86
8.3.60.0070.00718.31
8.3.50.0120.00522.04
8.3.40.0080.00618.71
8.3.30.0150.00018.54
8.3.20.0030.00518.60
8.3.10.0090.00020.96
8.3.00.0040.00423.53
8.2.180.0120.00616.50
8.2.170.0180.00022.96
8.2.160.0140.00020.47
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00419.38
8.2.110.0060.00321.98
8.2.100.0070.00717.78
8.2.90.0040.00419.13
8.2.80.0000.00817.97
8.2.70.0050.00317.63
8.2.60.0030.00618.04
8.2.50.0000.00918.07
8.2.40.0000.00718.22
8.2.30.0040.00419.72
8.2.20.0040.00417.53
8.2.10.0040.00417.55
8.2.00.0050.00317.62
8.1.280.0040.01125.92
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00922.19
8.1.230.0040.00717.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.01017.22
8.1.190.0000.00817.53
8.1.180.0030.00518.10
8.1.170.0000.00818.67
8.1.160.0040.00418.75
8.1.150.0070.00018.68
8.1.140.0070.00017.41
8.1.130.0030.00317.85
8.1.120.0000.00817.32
8.1.110.0040.00417.25
8.1.100.0040.00417.41
8.1.90.0000.00717.43
8.1.80.0040.00417.26
8.1.70.0030.00317.36
8.1.60.0050.00317.42
8.1.50.0000.00717.43
8.1.40.0000.00817.41
8.1.30.0050.00317.48
8.1.20.0000.00817.49
8.1.10.0030.00517.38
8.1.00.0060.00617.30
8.0.300.0100.00018.77
8.0.290.0000.00816.75
8.0.280.0000.00718.38
8.0.270.0000.00717.23
8.0.260.0000.00816.87
8.0.250.0050.00217.01
8.0.240.0040.00416.84
8.0.230.0030.00317.00
8.0.220.0030.00316.88
8.0.210.0070.00016.86
8.0.200.0040.00416.85
8.0.190.0000.00816.93
8.0.180.0020.00516.82
8.0.170.0000.00716.88
8.0.160.0030.00316.89
8.0.150.0090.00016.75
8.0.140.0000.01016.88
8.0.130.0030.00313.24
8.0.120.0030.00516.89
8.0.110.0000.00716.77
8.0.100.0040.00416.94
8.0.90.0040.00416.90
8.0.80.0030.01316.96
8.0.70.0000.00816.80
8.0.60.0070.00016.86
8.0.50.0050.00316.85
8.0.30.0130.00616.89
8.0.20.0140.00817.40
8.0.10.0050.00316.97
8.0.00.0110.00816.68
7.4.330.0050.00014.68
7.4.320.0000.00916.31
7.4.300.0030.00316.52
7.4.290.0060.00016.44
7.4.280.0050.00216.42
7.4.270.0030.00316.38
7.4.260.0000.00613.20
7.4.250.0080.00016.46
7.4.240.0040.00416.34
7.4.230.0030.00316.54
7.4.220.0130.00316.64
7.4.210.0090.00616.54
7.4.200.0000.00716.61
7.4.190.0030.00616.43
7.4.160.0130.00316.40
7.4.150.0090.00917.40
7.4.140.0070.01617.86
7.4.130.0110.00516.39
7.4.120.0080.00916.47
7.4.110.0110.00716.38
7.4.100.0130.00316.26
7.4.90.0130.00716.44
7.4.80.0080.01119.37
7.4.70.0110.00616.18
7.4.60.0080.00816.28
7.4.50.0080.00016.21
7.4.40.0060.00922.27
7.4.30.0120.00616.52
7.4.10.0030.01314.81
7.4.00.0040.01314.95
7.3.330.0030.00313.23
7.3.320.0000.00613.28
7.3.310.0040.00416.33
7.3.300.0030.00316.18
7.3.290.0060.00816.38
7.3.280.0120.00616.29
7.3.270.0030.01417.40
7.3.260.0120.00918.24
7.3.250.0120.00716.51
7.3.240.0100.00716.43
7.3.230.0100.01316.39
7.3.210.0100.01316.29
7.3.200.0060.01219.39
7.3.190.0060.01216.25
7.3.180.0030.01316.25
7.3.170.0090.01316.45
7.3.160.0040.01216.56
7.3.130.0110.00714.68
7.3.120.0060.01014.60
7.3.110.0040.01514.80
7.3.100.0070.01114.77
7.3.90.0060.01214.73
7.3.80.0000.01414.89
7.3.70.0000.00914.89
7.3.60.0060.00914.58
7.3.50.0070.01014.68
7.3.40.0030.00714.80
7.3.30.0030.01414.67
7.3.20.0070.01116.66
7.3.10.0060.01316.32
7.3.00.0000.01516.74
7.2.330.0120.00616.55
7.2.320.0090.01216.43
7.2.310.0150.00916.24
7.2.300.0100.00716.41
7.2.290.0100.00716.59
7.2.260.0070.01014.83
7.2.250.0070.01014.74
7.2.240.0060.01014.89
7.2.230.0100.00315.17
7.2.220.0000.01415.17
7.2.210.0000.01514.73
7.2.200.0090.00614.99
7.2.190.0000.01615.02
7.2.180.0000.01414.61
7.2.170.0040.01414.71
7.2.160.0070.01014.62
7.2.150.0100.01016.66
7.2.140.0110.00716.77
7.2.130.0060.00916.58
7.2.120.0100.00716.66
7.2.110.0060.00316.58
7.2.100.0000.01016.74
7.2.90.0000.01216.91
7.2.80.0030.00916.68
7.2.70.0030.00616.91
7.2.60.0090.00416.65
7.2.50.0040.01116.98
7.2.40.0080.00416.69
7.2.30.0030.01416.81
7.2.20.0000.01116.80
7.2.10.0030.01016.51
7.2.00.0050.00818.07
7.1.330.0080.00815.52
7.1.320.0110.00715.51
7.1.310.0080.00815.59
7.1.300.0110.00715.62
7.1.290.0060.00615.63
7.1.280.0000.01315.70
7.1.270.0070.01115.56
7.1.260.0030.01315.76
7.1.250.0100.00315.68
7.1.240.0070.00715.73
7.1.230.0070.00315.54
7.1.220.0080.00415.69
7.1.210.0040.00415.55
7.1.200.0030.00815.63
7.1.190.0070.00315.52
7.1.180.0070.00715.73
7.1.170.0070.00715.49
7.1.160.0000.00815.66
7.1.150.0080.00815.48
7.1.140.0030.01015.85
7.1.130.0040.00715.67
7.1.120.0040.00815.36
7.1.110.0070.00415.64
7.1.100.0060.00516.81
7.1.90.0040.00815.48
7.1.80.0040.01115.61
7.1.70.0020.01116.39
7.1.60.0100.00817.49
7.1.50.0080.00916.22
7.1.40.0030.01215.82
7.1.30.0050.00315.68
7.1.20.0000.00915.43
7.1.10.0080.00815.50
7.1.00.0020.03819.05
7.0.330.0030.00715.31
7.0.320.0030.01015.14
7.0.310.0070.00715.16
7.0.300.0030.00615.32
7.0.290.0050.00515.46
7.0.280.0070.01015.11
7.0.270.0060.00915.09
7.0.260.0040.01115.47
7.0.250.0080.00015.34
7.0.240.0040.00815.35
7.0.230.0030.01115.43
7.0.220.0040.00715.41
7.0.210.0070.00715.38
7.0.200.0050.00815.99
7.0.190.0070.00715.09
7.0.180.0030.00914.99
7.0.170.0040.00815.07
7.0.160.0070.00715.05
7.0.150.0110.00015.21
7.0.140.0050.04018.69
7.0.130.0000.01315.48
7.0.120.0030.01015.32
7.0.110.0100.00315.40
7.0.100.0100.00615.43
7.0.90.0000.00915.32
7.0.80.0080.00315.14
7.0.70.0030.00915.46
7.0.60.0050.02517.53
7.0.50.0070.02416.68
7.0.40.0050.02915.47
7.0.30.0070.02815.63
7.0.20.0070.04315.34
7.0.10.0090.03715.46
7.0.00.0080.04115.59
5.6.400.0000.01414.23
5.6.390.0000.01014.40
5.6.380.0140.00014.54
5.6.370.0070.00714.36
5.6.360.0070.00313.98
5.6.350.0000.01514.44
5.6.340.0030.00914.12
5.6.330.0030.01014.07
5.6.320.0070.00714.17
5.6.310.0070.00714.40
5.6.300.0090.00614.41
5.6.290.0070.00714.14
5.6.280.0070.03617.67
5.6.270.0030.01014.21
5.6.260.0070.00714.47
5.6.250.0100.00614.45
5.6.240.0030.00614.24
5.6.230.0000.01414.29
5.6.220.0060.00614.15
5.6.210.0060.02717.61
5.6.200.0060.04216.15
5.6.190.0030.04116.08
5.6.180.0070.04216.11
5.6.170.0050.02316.09
5.6.160.0080.04216.33
5.6.150.0080.04016.23
5.6.140.0030.05016.17
5.6.130.0100.02516.29
5.6.120.0050.02816.15
5.6.110.0050.02216.25
5.6.100.0050.02316.16
5.6.90.0020.02716.06
5.6.80.0050.02315.76
5.6.70.0040.02215.89
5.6.60.0050.02415.68
5.6.50.0070.02015.78
5.6.40.0050.02315.91
5.6.30.0080.02315.84
5.6.20.0000.02515.79
5.6.10.0030.02215.80
5.6.00.0020.02715.74
5.5.380.0000.01014.31
5.5.370.0070.00714.05
5.5.360.0060.00613.93
5.5.350.0180.03617.19
5.5.340.0020.03015.83
5.5.330.0060.02616.18
5.5.320.0070.02316.05
5.5.310.0050.03116.13
5.5.300.0070.03216.07
5.5.290.0030.04015.90
5.5.280.0080.02316.13
5.5.270.0080.02516.16
5.5.260.0060.02016.06
5.5.250.0050.02515.95
5.5.240.0050.02515.66
5.5.230.0050.02515.77
5.5.220.0090.02015.70
5.5.210.0060.02115.69
5.5.200.0100.02015.63
5.5.190.0050.02315.79
5.5.180.0050.02215.62
5.5.170.0000.01514.29
5.5.160.0040.02215.65
5.5.150.0050.02315.59
5.5.140.0030.02315.78
5.5.130.0040.02115.69
5.5.120.0020.02415.70
5.5.110.0070.02215.63
5.5.100.0040.02515.61
5.5.90.0050.02115.60
5.5.80.0060.02215.66
5.5.70.0070.01815.41
5.5.60.0050.02415.61
5.5.50.0080.03315.65
5.5.40.0090.03415.64
5.5.30.0100.03215.54
5.5.20.0080.04315.81
5.5.10.0020.04215.40
5.5.00.0050.04515.40
5.4.450.0030.02715.09
5.4.440.0020.02715.13
5.4.430.0050.02214.91
5.4.420.0030.02415.22
5.4.410.0040.02015.08
5.4.400.0070.02214.89
5.4.390.0040.02314.82
5.4.380.0050.02015.02
5.4.370.0000.02414.97
5.4.360.0020.02515.02
5.4.350.0050.02215.16
5.4.340.0060.01714.86
5.4.330.0000.01211.03
5.4.320.0000.02414.90
5.4.310.0050.02014.95
5.4.300.0090.01814.98
5.4.290.0070.02014.95
5.4.280.0030.02014.72
5.4.270.0050.02414.88
5.4.260.0050.02014.88
5.4.250.0020.02314.90
5.4.240.0050.02014.94
5.4.230.0050.01814.84
5.4.220.0030.02714.98
5.4.210.0100.03414.75
5.4.200.0050.03914.98
5.4.190.0050.04015.00
5.4.180.0050.04214.78
5.4.170.0070.02814.67
5.4.160.0030.03314.89
5.4.150.0080.03814.95
5.4.140.0060.03813.66
5.4.130.0050.02513.54
5.4.120.0060.04113.61
5.4.110.0040.04013.87
5.4.100.0100.03813.63
5.4.90.0060.03113.79
5.4.80.0080.03513.58
5.4.70.0050.03413.63
5.4.60.0060.04313.49
5.4.50.0060.04113.75
5.4.40.0030.03813.62
5.4.30.0080.03813.68
5.4.20.0080.03813.61
5.4.10.0020.04313.70
5.4.00.0090.02713.50
5.3.290.0050.01912.45
5.3.280.0030.02012.34
5.3.270.0030.02812.44
5.3.260.0020.03912.42
5.3.250.0070.04012.46
5.3.240.0020.02612.50
5.3.230.0120.03512.39
5.3.220.0060.03912.38
5.3.210.0080.02512.35
5.3.200.0070.04012.46
5.3.190.0030.04012.36
5.3.180.0040.04112.40
5.3.170.0070.02512.49
5.3.160.0070.03612.48
5.3.150.0000.04312.54
5.3.140.0030.02712.48
5.3.130.0020.04512.46
5.3.120.0050.02512.48
5.3.110.0090.03912.54
5.3.100.0050.02312.24
5.3.90.0040.03112.21
5.3.80.0100.03512.10
5.3.70.0050.03512.17
5.3.60.0030.03712.17
5.3.50.0020.03612.06
5.3.40.0020.04412.01
5.3.30.0030.02612.09
5.3.20.0030.03312.03
5.3.10.0050.03911.78
5.3.00.0090.03211.83
5.2.170.0030.03711.16
5.2.160.0030.04311.21
5.2.150.0070.03311.14
5.2.140.0130.05311.04
5.2.130.0100.03311.15
5.2.120.0070.06011.32
5.2.110.0030.05711.32
5.2.100.0070.06011.07
5.2.90.0030.04011.10
5.2.80.0070.03011.10
5.2.70.0030.03011.11
5.2.60.0030.04311.04
5.2.50.0030.03711.03
5.2.40.0000.03311.04
5.2.30.0030.03310.98
5.2.20.0070.03710.95
5.2.10.0070.05711.07
5.2.00.0100.03310.69
5.1.60.0030.05310.03
5.1.50.0030.03010.08
5.1.40.0130.0439.97
5.1.30.0070.05010.37
5.1.20.0070.05710.40
5.1.10.0030.02710.07
5.1.00.0070.03310.04
5.0.50.0000.0278.53
5.0.40.0070.0408.40
5.0.30.0070.0538.23
5.0.20.0030.0378.29
5.0.10.0030.0438.24
5.0.00.0070.0638.16
4.4.90.0000.0377.76
4.4.80.0070.0107.76
4.4.70.0000.0307.76
4.4.60.0000.0237.76
4.4.50.0100.0307.76
4.4.40.0030.0337.76
4.4.30.0000.0207.76
4.4.20.0030.0337.76
4.4.10.0030.0207.76
4.4.00.0030.0237.76
4.3.110.0030.0277.76
4.3.100.0130.0237.76
4.3.90.0000.0377.76
4.3.80.0030.0507.76
4.3.70.0000.0377.76
4.3.60.0000.0277.76
4.3.50.0000.0377.76
4.3.40.0070.0307.76
4.3.30.0000.0337.76
4.3.20.0000.0407.76
4.3.10.0100.0307.76
4.3.00.0030.0337.76

preferences:
51.51 ms | 401 KiB | 5 Q