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 insteadof TestParentClass1; /* 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.0100.01018.56
8.3.50.0100.00721.92
8.3.40.0110.00718.71
8.3.30.0170.00318.58
8.3.20.0050.00318.65
8.3.10.0000.00820.80
8.3.00.0070.00021.69
8.2.180.0090.00616.75
8.2.170.0060.00922.96
8.2.160.0040.01120.43
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.07
8.2.110.0030.00620.31
8.2.100.0040.00819.41
8.2.90.0090.00017.75
8.2.80.0080.00018.78
8.2.70.0000.00817.50
8.2.60.0060.00317.63
8.2.50.0040.00417.63
8.2.40.0040.00419.23
8.2.30.0040.00417.57
8.2.20.0000.00717.52
8.2.10.0070.00017.70
8.2.00.0040.00417.62
8.1.280.0130.00925.92
8.1.270.0040.00423.99
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0090.00023.84
8.1.230.0000.01117.70
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0080.00017.36
8.1.190.0080.00017.11
8.1.180.0040.00418.10
8.1.170.0000.00817.62
8.1.160.0040.00418.74
8.1.150.0000.00718.50
8.1.140.0040.00417.32
8.1.130.0000.00717.83
8.1.120.0030.00717.40
8.1.110.0050.00317.29
8.1.100.0070.00017.40
8.1.90.0040.00417.39
8.1.80.0050.00317.36
8.1.70.0050.00217.38
8.1.60.0000.00817.42
8.1.50.0000.00717.34
8.1.40.0050.00317.50
8.1.30.0050.00317.56
8.1.20.0050.00317.49
8.1.10.0000.00717.34
8.1.00.0070.00017.38
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0050.00318.01
8.0.270.0040.00417.07
8.0.260.0040.00416.82
8.0.250.0000.00716.85
8.0.240.0000.00816.96
8.0.230.0040.00416.97
8.0.220.0030.00316.88
8.0.210.0070.00016.88
8.0.200.0000.00716.96
8.0.190.0040.00417.01
8.0.180.0060.00316.94
8.0.170.0060.00316.97
8.0.160.0030.00316.94
8.0.150.0000.00716.86
8.0.140.0000.00716.76
8.0.130.0000.00513.30
8.0.120.0000.00716.88
8.0.110.0000.00716.89
8.0.100.0040.00416.89
8.0.90.0080.00016.95
8.0.80.0060.00916.84
8.0.70.0040.00416.70
8.0.60.0050.00216.75
8.0.50.0050.00316.70
8.0.30.0090.01016.94
8.0.20.0090.01417.40
8.0.10.0040.00417.06
8.0.00.0090.00816.68
7.4.330.0000.00614.64
7.4.320.0000.00616.46
7.4.300.0030.00316.45
7.4.290.0030.00316.54
7.4.280.0030.00316.54
7.4.270.0000.00616.44
7.4.260.0060.00013.17
7.4.250.0040.00416.53
7.4.240.0050.00316.45
7.4.230.0000.00816.65
7.4.220.0130.00916.42
7.4.210.0090.00916.52
7.4.200.0030.00316.33
7.4.190.0050.00216.67
7.4.160.0060.01416.29
7.4.150.0090.00917.40
7.4.140.0100.00717.86
7.4.130.0100.00616.46
7.4.120.0150.00316.49
7.4.110.0100.01016.43
7.4.100.0110.01116.54
7.4.90.0100.00716.53
7.4.80.0060.00919.39
7.4.70.0090.00716.34
7.4.60.0080.00916.25
7.4.50.0030.00616.27
7.4.40.0100.00622.52
7.4.30.0080.00816.42
7.4.00.0090.00714.57
7.3.330.0020.00213.13
7.3.320.0000.00513.39
7.3.310.0030.00316.40
7.3.300.0000.00716.19
7.3.290.0030.01316.30
7.3.280.0060.01016.29
7.3.270.0070.01017.40
7.3.260.0110.00918.24
7.3.250.0170.02016.41
7.3.240.0060.01116.56
7.3.230.0100.01016.39
7.3.210.0060.01616.40
7.3.200.0130.00419.39
7.3.190.0030.01316.43
7.3.180.0060.00916.38
7.3.170.0090.00616.36
7.3.160.0070.01016.29
7.3.120.0110.00614.76
7.3.110.0030.00714.80
7.3.100.0030.01214.80
7.3.90.0030.01014.79
7.3.80.0070.00714.56
7.3.70.0040.00814.81
7.3.60.0080.00414.95
7.3.50.0090.00914.72
7.3.40.0070.00314.58
7.3.30.0030.01014.71
7.3.20.0040.01216.64
7.3.10.0080.00516.54
7.3.00.0030.01116.20
7.2.330.0120.00816.40
7.2.320.0080.00816.26
7.2.310.0030.01516.41
7.2.300.0060.01016.68
7.2.290.0130.01016.64
7.2.250.0070.01014.76
7.2.240.0100.01014.87
7.2.230.0120.00315.05
7.2.220.0070.01014.84
7.2.210.0030.01314.82
7.2.200.0030.00914.90
7.2.190.0080.00414.68
7.2.180.0030.00915.05
7.2.170.0000.01414.90
7.2.130.0170.00016.04
7.2.120.0080.01516.10
7.2.110.0130.00716.23
7.2.100.0130.00316.82
7.2.90.0120.00616.55
7.2.80.0180.00316.24
7.2.70.0130.00715.95
7.2.60.0110.00616.48
7.2.50.0080.00816.05
7.2.40.0130.00716.12
7.2.30.0120.01415.90
7.2.20.0190.00416.08
7.2.10.0140.00016.09
7.2.00.0100.00717.92
7.1.330.0000.01615.77
7.1.320.0110.00315.73
7.1.310.0090.00315.86
7.1.300.0120.00615.52
7.1.290.0060.00315.85
7.1.280.0030.00715.59
7.1.270.0000.01215.37
7.1.260.0030.01015.79
7.1.250.0040.01115.25
7.1.200.0030.00515.66
7.1.100.0130.00318.11
7.1.70.0040.00417.05
7.1.60.0100.01419.40
7.1.50.0090.01216.86
7.1.00.0030.05322.33
7.0.200.0000.01016.46
7.0.140.0100.06721.95
7.0.70.0030.08019.92
7.0.60.0100.08019.90
7.0.50.0030.09320.31
7.0.40.0030.08020.05
7.0.30.0100.08719.93
7.0.20.0070.05020.15
7.0.10.0100.08720.07
7.0.00.0070.08320.07
5.6.280.0000.07720.93
5.6.220.0200.06320.66
5.6.210.0000.06720.46
5.6.200.0100.09021.05
5.6.190.0200.07321.09
5.6.180.0070.09021.05
5.6.170.0000.09021.00
5.6.160.0100.08021.11
5.6.150.0100.07721.02
5.6.140.0100.05320.99
5.6.130.0130.07321.09
5.6.120.0100.08721.07
5.6.110.0200.07321.16
5.6.100.0030.05721.04
5.6.90.0100.08720.94
5.6.80.0030.08020.39
5.6.70.0100.08020.33
5.6.60.0100.03320.41
5.6.50.0130.07720.45
5.6.40.0130.07720.43
5.6.30.0030.09020.47
5.6.20.0070.08020.38
5.6.10.0070.05020.32
5.6.00.0200.06720.38
5.5.360.0070.07720.54
5.5.350.0100.07720.44
5.5.340.0070.08320.93
5.5.330.0070.08720.77
5.5.320.0100.08020.88
5.5.310.0130.08020.74
5.5.300.0100.06720.91
5.5.290.0170.07320.80
5.5.280.0030.06020.80
5.5.270.0130.07020.88
5.5.260.0100.05720.88
5.5.250.0230.07720.71
5.5.240.0070.06720.13
5.5.230.0000.08320.12
5.5.220.0000.08320.21
5.5.210.0100.08020.27
5.5.200.0070.06320.16
5.5.190.0030.06320.22
5.5.180.0030.07720.11
5.5.160.0070.04020.24
5.5.150.0100.08020.09
5.5.140.0100.08020.28
5.5.130.0030.06720.14
5.5.120.0200.06720.27
5.5.110.0030.08320.27
5.5.100.0030.06320.07
5.5.90.0170.06020.18
5.5.80.0070.08020.07
5.5.70.0000.04319.95
5.5.60.0100.05320.11
5.5.50.0130.07320.02
5.5.40.0030.08320.06
5.5.30.0030.04320.06
5.5.20.0030.05320.09
5.5.10.0100.08020.14
5.5.00.0100.06320.12
5.4.450.0070.05019.46
5.4.440.0130.08319.37
5.4.430.0070.06319.37
5.4.420.0070.08019.50
5.4.410.0070.07719.14
5.4.400.0000.04719.00
5.4.390.0030.08319.09
5.4.380.0030.05319.14
5.4.370.0130.07718.96
5.4.360.0030.05019.14
5.4.350.0070.07318.91
5.4.340.0100.05018.95
5.4.320.0000.04319.02
5.4.310.0070.07719.05
5.4.300.0030.08719.12
5.4.290.0030.04319.03
5.4.280.0000.08318.86
5.4.270.0070.07319.09
5.4.260.0130.05318.84
5.4.250.0030.07719.13
5.4.240.0030.05719.17
5.4.230.0070.04319.11
5.4.220.0100.07319.18
5.4.210.0030.08018.86
5.4.200.0030.05719.20
5.4.190.0070.03719.15
5.4.180.0030.07719.08
5.4.170.0100.06318.95
5.4.160.0100.07719.14
5.4.150.0130.04718.92
5.4.140.0030.03716.46
5.4.130.0030.07716.39
5.4.120.0070.05316.46
5.4.110.0000.07716.32
5.4.100.0170.06716.56
5.4.90.0070.06316.32
5.4.80.0170.06316.55
5.4.70.0030.07716.39
5.4.60.0070.04716.32
5.4.50.0070.06016.39
5.4.40.0100.07016.53
5.4.30.0030.08016.39
5.4.20.0170.06316.44
5.4.10.0130.06716.41
5.4.00.0030.04715.86
5.3.290.0030.06714.64
5.3.280.0070.08014.52
5.3.270.0100.07314.60
5.3.260.0030.06014.57
5.3.250.0100.07014.70
5.3.240.0000.04014.61
5.3.230.0130.08314.55
5.3.220.0030.07714.69
5.3.210.0070.04314.60
5.3.200.0100.08014.54
5.3.190.0030.07714.71
5.3.180.0030.04314.63
5.3.170.0100.07714.50
5.3.160.0030.03714.55
5.3.150.0070.05314.62
5.3.140.0030.05014.65
5.3.130.0030.07014.69
5.3.120.0170.07014.48
5.3.110.0030.08014.52
5.3.100.0070.06313.98
5.3.90.0000.05014.04
5.3.80.0000.07714.01
5.3.70.0100.04314.07
5.3.60.0070.07014.04
5.3.50.0070.07314.07
5.3.40.0030.07014.05
5.3.30.0030.07313.96
5.3.20.0000.05713.63
5.3.10.0030.07313.72
5.3.00.0170.06013.63
5.2.170.0070.04012.29
5.2.160.0100.05312.29
5.2.150.0030.04712.29
5.2.140.0030.06312.29
5.2.130.0070.06312.29
5.2.120.0070.04312.29
5.2.110.0070.05312.29
5.2.100.0130.05312.29
5.2.90.0070.06012.29
5.2.80.0070.06012.29
5.2.70.0070.06312.29
5.2.60.0070.06012.29
5.2.50.0070.05312.29
5.2.40.0070.06012.29
5.2.30.0070.05312.29
5.2.20.0170.04712.29
5.2.10.0100.05012.29
5.2.00.0070.06012.29
5.1.60.0000.05712.29
5.1.50.0030.05712.29
5.1.40.0070.05012.29
5.1.30.0100.05012.29
5.1.20.0000.05312.29
5.1.10.0100.03712.29
5.1.00.0000.04312.29
5.0.50.0030.04312.29
5.0.40.0170.03312.29
5.0.30.0030.05712.29
5.0.20.0030.04312.29
5.0.10.0030.03312.29
5.0.00.0000.06712.29
4.4.90.0030.03312.29
4.4.80.0030.03712.29
4.4.70.0030.03712.29
4.4.60.0000.03712.29
4.4.50.0070.02712.29
4.4.40.0000.06012.29
4.4.30.0030.03712.29
4.4.20.0070.03312.29
4.4.10.0030.02712.29
4.4.00.0030.03712.29
4.3.110.0000.03712.29
4.3.100.0000.03712.29
4.3.90.0030.03312.29
4.3.80.0000.05312.29
4.3.70.0000.03012.29
4.3.60.0030.01712.29
4.3.50.0030.03312.29
4.3.40.0030.02712.29
4.3.30.0000.03012.29
4.3.20.0030.03712.29
4.3.10.0030.03012.29
4.3.00.0000.02712.29

preferences:
46.02 ms | 401 KiB | 5 Q