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; 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.0060.01516.73
8.3.60.0170.00316.63
8.3.50.0100.00822.06
8.3.40.0120.00318.71
8.3.30.0070.00719.11
8.3.20.0080.00020.34
8.3.10.0080.00023.61
8.3.00.0040.00419.02
8.2.180.0090.00616.63
8.2.170.0090.00622.96
8.2.160.0110.00420.52
8.2.150.0020.00524.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0040.00419.34
8.2.110.0060.00322.21
8.2.100.0040.00819.57
8.2.90.0000.00719.05
8.2.80.0050.00317.97
8.2.70.0000.00917.50
8.2.60.0030.00717.91
8.2.50.0000.00918.07
8.2.40.0000.00819.88
8.2.30.0070.00018.07
8.2.20.0050.00217.68
8.2.10.0040.00418.02
8.2.00.0050.00317.67
8.1.280.0090.01225.92
8.1.270.0060.00324.02
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.71
8.1.230.0040.00819.09
8.1.220.0050.00217.74
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0040.00417.00
8.1.180.0040.00418.10
8.1.170.0080.00018.53
8.1.160.0040.00422.08
8.1.150.0000.00718.54
8.1.140.0000.00717.39
8.1.130.0000.00817.67
8.1.120.0030.00317.46
8.1.110.0000.00717.39
8.1.100.0000.00817.28
8.1.90.0080.00017.29
8.1.80.0060.00317.38
8.1.70.0000.00717.36
8.1.60.0040.00417.48
8.1.50.0040.00417.51
8.1.40.0050.00317.36
8.1.30.0000.00817.52
8.1.20.0050.00317.68
8.1.10.0040.00417.34
8.1.00.0000.00717.26
8.0.300.0070.00018.77
8.0.290.0050.00317.04
8.0.280.0000.00718.25
8.0.270.0070.00017.18
8.0.260.0030.00317.10
8.0.250.0000.00816.92
8.0.240.0000.00816.87
8.0.230.0000.00816.95
8.0.220.0070.00016.79
8.0.210.0080.00016.95
8.0.200.0030.00316.82
8.0.190.0040.00416.86
8.0.180.0080.00016.91
8.0.170.0000.00816.86
8.0.160.0030.00516.90
8.0.150.0000.00716.79
8.0.140.0000.00716.89
8.0.130.0000.00513.32
8.0.120.0000.00816.86
8.0.110.0030.00416.91
8.0.100.0000.00716.88
8.0.90.0040.00416.75
8.0.80.0000.01516.84
8.0.70.0000.00716.78
8.0.60.0040.00416.78
8.0.50.0050.00316.95
8.0.30.0090.00916.80
8.0.20.0100.00817.40
8.0.10.0000.00716.87
8.0.00.0050.01316.80
7.4.330.0070.00015.00
7.4.320.0030.00316.54
7.4.300.0030.00316.59
7.4.290.0000.00716.52
7.4.280.0000.00716.55
7.4.270.0030.00316.45
7.4.260.0000.00816.44
7.4.250.0070.00016.41
7.4.240.0050.00216.48
7.4.230.0030.00316.52
7.4.220.0000.01716.49
7.4.210.0050.00916.50
7.4.200.0000.00716.36
7.4.190.0030.00316.39
7.4.160.0100.00616.37
7.4.150.0060.01317.40
7.4.140.0060.01217.86
7.4.130.0100.00616.45
7.4.120.0110.00616.41
7.4.110.0210.00016.41
7.4.100.0000.02016.35
7.4.90.0090.00616.46
7.4.80.0070.01319.39
7.4.70.0130.00716.50
7.4.60.0160.00016.30
7.4.50.0050.00016.32
7.4.40.0110.00816.30
7.4.30.0080.00816.28
7.4.00.0100.00314.66
7.3.330.0050.00013.30
7.3.320.0030.00313.11
7.3.310.0030.00316.30
7.3.300.0000.00716.16
7.3.290.0120.00316.28
7.3.280.0040.01116.31
7.3.270.0140.00417.40
7.3.260.0130.01316.64
7.3.250.0100.00716.54
7.3.240.0140.00516.27
7.3.230.0040.01516.39
7.3.210.0100.00716.53
7.3.200.0120.00619.39
7.3.190.0100.00616.33
7.3.180.0000.01816.34
7.3.170.0120.00316.72
7.3.160.0060.00916.51
7.3.120.0060.00914.78
7.3.10.0070.00716.46
7.3.00.0140.00316.39
7.2.330.0160.00316.39
7.2.320.0040.01416.54
7.2.310.0130.01016.58
7.2.300.0090.01216.16
7.2.290.0060.01516.58
7.2.130.0110.00716.82
7.2.120.0160.00016.77
7.2.110.0060.01016.84
7.2.100.0070.01016.49
7.2.90.0040.01116.68
7.2.80.0110.00616.31
7.2.70.0030.01016.34
7.2.60.0130.00716.71
7.2.50.0030.00916.48
7.2.40.0070.01316.26
7.2.30.0000.01216.71
7.2.20.0120.00616.40
7.2.10.0100.00716.67
7.2.00.0110.00316.75
7.1.250.0060.01015.28
7.1.240.0130.00015.45
7.1.230.0100.00315.75
7.1.220.0090.00615.59
7.1.210.0030.01015.73
7.1.200.0110.00515.47
7.1.190.0130.00015.61
7.1.180.0060.00615.74
7.1.170.0100.01015.66
7.1.160.0040.01115.64
7.1.150.0150.00015.63
7.1.140.0100.00715.71
7.1.130.0070.00715.49
7.1.120.0070.01115.33
7.1.110.0070.00715.52
7.1.100.0070.00716.65
7.1.90.0000.01315.60
7.1.80.0100.00315.51
7.1.70.0060.00616.05
7.1.60.0110.00817.54
7.1.50.0090.00816.03
7.1.40.0140.00315.59
7.1.30.0150.00315.78
7.1.20.0140.00315.34
7.1.10.0060.00915.18
7.1.00.0070.04018.92
7.0.330.0070.00715.17
7.0.320.0100.00715.43
7.0.310.0090.00315.05
7.0.300.0100.00315.21
7.0.290.0070.00715.11
7.0.280.0130.00315.31
7.0.270.0110.00715.16
7.0.260.0090.00615.11
7.0.250.0130.00315.21
7.0.240.0100.00715.32
7.0.230.0030.00915.46
7.0.220.0070.01115.48
7.0.210.0070.00715.15
7.0.200.0090.00515.88
7.0.190.0110.00415.19
7.0.180.0120.00415.16
7.0.170.0140.00315.48
7.0.160.0100.00315.46
7.0.150.0140.00014.80
7.0.140.0120.03218.57
7.0.130.0070.01015.00
7.0.120.0070.00315.39
7.0.110.0120.00315.29
7.0.100.0050.02417.66
7.0.90.0110.02517.47
7.0.80.0120.02017.57
7.0.70.0110.02017.55
7.0.60.0080.02117.61
7.0.50.0170.02217.81
7.0.40.0050.02516.76
7.0.30.0040.02916.79
7.0.20.0030.02616.54
7.0.10.0030.02516.63
7.0.00.0030.02716.64
5.6.380.0030.01214.05
5.6.370.0120.00314.34
5.6.360.0000.01314.32
5.6.350.0090.00314.25
5.6.340.0030.00714.31
5.6.330.0080.00613.95
5.6.320.0120.00314.25
5.6.310.0030.00714.16
5.6.300.0030.00714.26
5.6.290.0040.01113.61
5.6.280.0050.03917.39
5.6.270.0030.00614.01
5.6.260.0030.00614.16
5.6.250.0080.01817.37
5.6.240.0050.02717.06
5.6.230.0010.02617.48
5.6.220.0070.02717.40
5.6.210.0030.02517.10
5.6.200.0050.02517.58
5.6.190.0070.02417.52
5.6.180.0050.02517.49
5.6.170.0020.02817.54
5.6.160.0060.02117.58
5.6.150.0030.02817.53
5.6.140.0050.02717.65
5.6.130.0030.02717.42
5.6.120.0040.02417.64
5.6.110.0060.02317.49
5.6.100.0090.02117.52
5.6.90.0070.02417.63
5.6.80.0030.02817.19
5.6.70.0090.02017.14
5.6.60.0100.03517.03
5.6.50.0040.03217.09
5.6.40.0050.04517.01
5.6.30.0020.04517.09
5.6.20.0050.02517.12
5.6.10.0080.04017.15
5.6.00.0070.04017.19
5.5.380.0070.02015.76
5.5.370.0040.02515.79
5.5.360.0020.02715.68
5.5.350.0050.02415.65
5.5.340.0060.02115.98
5.5.330.0050.02215.86
5.5.320.0020.02715.83
5.5.310.0050.02715.92
5.5.300.0050.02815.74
5.5.290.0060.02115.73
5.5.280.0050.02215.65
5.5.270.0090.01815.88
5.5.260.0000.02515.84
5.5.250.0120.02015.61
5.5.240.0100.01315.35
5.5.230.0020.02515.33
5.5.220.0030.03715.42
5.5.210.0040.03515.45
5.5.200.0030.03515.36
5.5.190.0130.03615.54
5.5.180.0070.04415.59
5.5.170.0080.00310.67
5.5.160.0080.04015.47
5.5.150.0060.04315.55
5.5.140.0030.02315.37
5.5.130.0060.02815.44
5.5.120.0030.04115.47
5.5.110.0050.04415.38
5.5.100.0120.03715.47
5.5.90.0080.03815.50
5.5.80.0080.03015.37
5.5.70.0050.03215.44
5.5.60.0070.04015.44
5.5.50.0050.04215.50
5.5.40.0120.03315.37
5.5.30.0050.04515.24
5.5.20.0060.03715.38
5.5.10.0100.03715.44
5.5.00.0100.02515.32
5.4.450.0070.02215.13
5.4.440.0000.02515.15
5.4.430.0040.02315.13
5.4.420.0050.02415.07
5.4.410.0020.02414.89
5.4.400.0050.03814.80
5.4.390.0050.03414.64
5.4.380.0030.02614.63
5.4.370.0050.03514.94
5.4.360.0050.04114.81
5.4.350.0030.02814.45
5.4.340.0030.04314.90
5.4.330.0060.00610.84
5.4.320.0060.03714.98
5.4.310.0070.04314.94
5.4.300.0060.02814.82
5.4.290.0070.03414.98
5.4.280.0120.03614.71
5.4.270.0070.02214.79
5.4.260.0040.02915.01
5.4.250.0110.02614.87
5.4.240.0070.04014.69
5.4.230.0090.03714.91
5.4.220.0060.04514.81
5.4.210.0030.02914.88
5.4.200.0070.03414.85
5.4.190.0080.03314.74
5.4.180.0050.04014.87
5.4.170.0060.03214.57
5.4.160.0060.02514.98
5.4.150.0030.04114.71
5.4.140.0080.04013.54
5.4.130.0030.03813.68
5.4.120.0110.03313.42
5.4.110.0080.03813.60
5.4.100.0150.02013.61
5.4.90.0110.03113.43
5.4.80.0100.03313.66
5.4.70.0040.03713.34
5.4.60.0140.02813.58
5.4.50.0100.02313.42
5.4.40.0030.03213.69
5.4.30.0110.02513.35
5.4.20.0010.03113.42
5.4.10.0100.03513.67
5.4.00.0050.03813.11
5.3.290.0090.04112.35
5.3.280.0150.02812.46
5.3.270.0040.04012.30
5.3.260.0060.03012.46
5.3.250.0100.03312.39
5.3.240.0070.02712.37
5.3.230.0070.03512.32
5.3.220.0100.03412.43
5.3.210.0040.02912.44
5.3.200.0090.03712.42
5.3.190.0100.04212.32
5.3.180.0090.03812.51
5.3.170.0120.03712.42
5.3.160.0100.03712.42
5.3.150.0090.03712.40
5.3.140.0130.03512.26
5.3.130.0090.04012.50
5.3.120.0110.02212.34
5.3.110.0020.03212.34
5.3.100.0080.03112.16
5.3.90.0100.03712.26
5.3.80.0030.02712.12
5.3.70.0100.01812.09
5.3.60.0100.03812.13
5.3.50.0090.01912.15
5.3.40.0070.02412.06
5.3.30.0060.03912.08
5.3.20.0070.04112.01
5.3.10.0050.02911.74
5.3.00.0060.02811.80
5.2.170.0080.03410.35
5.2.160.0080.03310.09
5.2.150.0050.01910.21
5.2.140.0070.02010.15
5.2.130.0050.03210.10
5.2.120.0050.01910.28
5.2.110.0040.03010.12
5.2.100.0030.03810.16
5.2.90.0050.02310.18
5.2.80.0070.02210.17
5.2.70.0020.03510.08
5.2.60.0080.01810.01
5.2.50.0050.01810.14
5.2.40.0060.03310.18
5.2.30.0060.02810.16
5.2.20.0110.0309.90
5.2.10.0150.0259.90
5.2.00.0070.0189.91
5.1.60.0040.0219.47
5.1.50.0060.0139.48
5.1.40.0040.0169.46
5.1.30.0030.0189.64
5.1.20.0040.0259.66
5.1.10.0070.0249.50
5.1.00.0090.0229.47
5.0.50.0060.0178.72
5.0.40.0030.0258.67
5.0.30.0080.0178.67
5.0.20.0020.0248.67
5.0.10.0050.0238.67
5.0.00.0050.0328.67
4.4.90.0050.0188.67
4.4.80.0030.0138.67
4.4.70.0000.0228.67
4.4.60.0020.0158.67
4.4.50.0050.0188.67
4.4.40.0020.0298.67
4.4.30.0000.0148.67
4.4.20.0060.0168.67
4.4.10.0050.0208.67
4.4.00.0040.0208.67
4.3.110.0020.0148.67
4.3.100.0000.0148.67
4.3.90.0030.0138.67
4.3.80.0000.0198.67
4.3.70.0060.0188.67
4.3.60.0030.0188.67
4.3.50.0040.0188.67
4.3.40.0000.0318.67
4.3.30.0020.0178.67
4.3.20.0010.0138.67
4.3.10.0000.0168.67
4.3.00.0020.0098.67

preferences:
53.24 ms | 401 KiB | 5 Q