3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function foo() { echo 'bar'; } } trait footrait { public function foo() { parent::foo(); } } class B extends A { use footrait; } $b = new B(); $b->foo();

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.0080.00616.75
8.3.50.0140.00322.06
8.3.40.0110.00318.84
8.3.30.0070.00718.93
8.3.20.0040.00420.16
8.3.10.0080.00023.57
8.3.00.0080.00021.01
8.2.180.0110.00416.75
8.2.170.0170.00322.96
8.2.160.0080.00820.33
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00526.16
8.2.120.0060.00320.92
8.2.110.0090.00022.24
8.2.100.0110.00017.91
8.2.90.0080.00019.28
8.2.80.0000.00817.97
8.2.70.0000.01217.50
8.2.60.0000.00817.80
8.2.50.0000.00918.07
8.2.40.0030.00620.94
8.2.30.0040.00418.25
8.2.20.0040.00417.56
8.2.10.0000.00817.97
8.2.00.0040.00417.75
8.1.280.0070.00725.92
8.1.270.0090.00023.96
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.05
8.1.230.0070.00419.08
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0000.00817.22
8.1.180.0000.00818.10
8.1.170.0000.00718.47
8.1.160.0030.00522.05
8.1.150.0000.00718.67
8.1.140.0000.00717.33
8.1.130.0040.00417.89
8.1.120.0030.00317.45
8.1.110.0050.00517.44
8.1.100.0040.00317.42
8.1.90.0040.00417.43
8.1.80.0000.00717.50
8.1.70.0030.00617.40
8.1.60.0030.00517.50
8.1.50.0070.00017.50
8.1.40.0040.00417.52
8.1.30.0030.00517.62
8.1.20.0040.00417.55
8.1.10.0040.00417.48
8.1.00.0040.00417.36
8.0.300.0070.00018.77
8.0.290.0000.00717.16
8.0.280.0000.00718.41
8.0.270.0000.00717.37
8.0.260.0030.00317.19
8.0.250.0000.00716.99
8.0.240.0030.00516.92
8.0.230.0060.00316.85
8.0.220.0030.00316.91
8.0.210.0030.00316.80
8.0.200.0000.00616.95
8.0.190.0030.00316.84
8.0.180.0030.00716.91
8.0.170.0040.00416.81
8.0.160.0030.00316.95
8.0.150.0030.00416.92
8.0.140.0000.00816.75
8.0.130.0030.00313.37
8.0.120.0080.00016.88
8.0.110.0030.00516.89
8.0.100.0000.00716.70
8.0.90.0040.00416.96
8.0.80.0060.01516.86
8.0.70.0070.00016.88
8.0.60.0050.00216.70
8.0.50.0040.00416.96
8.0.30.0110.00817.25
8.0.20.0110.00717.40
8.0.10.0050.00216.98
8.0.00.0160.00516.68
7.4.330.0000.00515.12
7.4.320.0030.00316.50
7.4.300.0030.00316.45
7.4.290.0030.00316.59
7.4.280.0030.00716.61
7.4.270.0030.00316.41
7.4.260.0030.00316.43
7.4.250.0000.00716.46
7.4.240.0050.00216.57
7.4.230.0070.00016.49
7.4.220.0100.01016.68
7.4.210.0070.00916.57
7.4.200.0000.00716.31
7.4.190.0030.00516.74
7.4.160.0040.01216.35
7.4.150.0120.00617.40
7.4.140.0150.00317.86
7.4.130.0100.00616.57
7.4.120.0080.01216.48
7.4.110.0100.00616.55
7.4.100.0120.00616.46
7.4.90.0160.00316.65
7.4.80.0090.01319.39
7.4.70.0100.00616.57
7.4.60.0140.00316.46
7.4.50.0050.00016.57
7.4.40.0070.01016.31
7.4.30.0090.00616.48
7.4.00.0110.00314.82
7.3.330.0060.00013.07
7.3.320.0050.00013.29
7.3.310.0030.00316.34
7.3.300.0070.00016.26
7.3.290.0060.01616.29
7.3.280.0040.01516.23
7.3.270.0090.00917.40
7.3.260.0130.00716.29
7.3.250.0100.00816.26
7.3.240.0100.01316.53
7.3.230.0120.00616.39
7.3.210.0100.00716.43
7.3.200.0120.00319.39
7.3.190.0080.01216.20
7.3.180.0060.01016.38
7.3.170.0150.00616.47
7.3.160.0070.01016.18
7.3.120.0050.00514.45
7.2.330.0030.01316.74
7.2.320.0080.01116.65
7.2.310.0100.00716.46
7.2.300.0170.00016.63
7.2.290.0100.00716.46
7.2.00.0000.01119.45
7.1.100.0040.00718.00
7.1.70.0040.00716.95
7.1.60.0130.01019.46
7.1.50.0120.00616.56
7.1.00.0070.07322.30
7.0.200.0040.00416.70
7.0.140.0130.06322.00
7.0.60.0370.06321.72
7.0.50.0030.04317.95
7.0.40.0070.08720.25
7.0.30.0130.08320.06
7.0.20.0370.05720.15
7.0.10.0030.05320.26
7.0.00.0070.08320.09
5.6.280.0030.07320.91
5.6.210.0130.07020.47
5.6.200.0000.08318.18
5.6.190.0070.05020.48
5.6.180.0170.07720.77
5.6.170.0230.05720.48
5.6.160.0000.04720.50
5.6.150.0030.04718.15
5.6.140.0100.08318.16
5.6.130.0070.05318.18
5.6.120.0030.05020.89
5.6.110.0030.04321.14
5.6.100.0070.08321.02
5.6.90.0100.07721.04
5.6.80.0230.07020.44
5.5.350.0230.08020.30
5.5.340.0100.07317.98
5.5.330.0130.04020.42
5.5.320.0300.04320.23
5.5.310.0330.05720.30
5.5.300.0070.07318.08
5.5.290.0000.05718.08
5.5.280.0100.03720.70
5.5.270.0100.08020.97
5.5.260.0100.08320.84
5.5.250.0000.08320.58
5.5.240.0230.07020.26
5.4.450.4130.04019.52
5.4.440.4200.03719.45
5.4.430.3830.04319.46
5.4.420.4870.04319.28
5.4.410.3600.03319.39
5.4.400.4000.04018.93
5.4.390.3870.04319.19
5.4.380.3870.04019.06
5.4.370.4670.03319.21
5.4.360.4500.04019.14
5.4.350.4700.03318.96
5.4.340.4670.03719.15
5.4.320.3670.04019.01
5.4.310.3970.04719.22
5.4.300.3600.03019.24
5.4.290.4230.03718.94
5.4.280.4030.03719.12
5.4.270.3800.04019.18
5.4.260.4830.03019.05
5.4.250.4630.04319.14
5.4.240.4200.04019.11
5.4.230.3970.04019.12
5.4.220.4100.03019.14
5.4.210.4100.03718.95
5.4.200.4270.03018.96
5.4.190.0170.06318.91
5.4.180.4570.04319.18
5.4.170.3330.03719.09
5.4.160.2770.03719.20
5.4.150.2900.03718.90
5.4.140.3530.03716.55
5.4.130.2700.03316.45
5.4.120.3370.03316.40
5.4.110.3570.03316.58
5.4.100.3170.03316.49
5.4.90.3470.03716.37
5.4.80.0070.03316.56
5.4.70.2230.04016.33
5.4.60.3900.03716.49
5.4.50.4100.03316.46
5.4.40.4170.03016.19
5.4.30.3670.03016.60
5.4.20.4170.03016.47
5.4.10.4630.03716.52
5.4.00.4330.03315.95
5.3.290.3670.04014.55
5.3.280.3930.04014.75
5.3.270.4670.04014.68
5.3.260.2100.03714.52
5.3.250.3530.03314.76
5.3.240.3430.03014.63
5.3.230.3670.03714.51
5.3.220.3670.04014.45
5.3.210.3470.02714.59
5.3.200.3630.03714.64
5.3.190.2600.03714.73
5.3.180.0000.04714.57
5.3.170.0130.07014.45
5.3.160.3770.03714.57
5.3.150.4130.04014.58
5.3.140.4130.03314.57
5.3.130.3670.03314.59
5.3.120.3770.03314.55
5.3.110.4830.03314.43
5.3.100.4170.03714.04
5.3.90.4430.03714.09
5.3.80.4070.04014.05
5.3.70.4530.03313.90
5.3.60.4400.03714.06
5.3.50.4500.03313.89
5.3.40.4730.03313.97
5.3.30.4000.04013.80
5.3.20.4230.04313.72
5.3.10.3930.04013.66
5.3.00.4170.03713.78
5.2.170.3970.02711.09
5.2.160.4000.03011.19
5.2.150.3670.02711.20
5.2.140.3370.03311.30
5.2.130.2730.03711.17
5.2.120.3000.03311.09
5.2.110.2970.03011.16
5.2.100.3570.02711.26
5.2.90.3170.03311.15
5.2.80.4070.03710.98
5.2.70.3970.02711.25
5.2.60.3630.03011.12
5.2.50.3600.02710.98
5.2.40.2830.03010.97
5.2.30.3200.02710.97
5.2.20.2870.02711.01
5.2.10.3270.02710.75
5.2.00.3230.02710.87
5.1.60.3270.0179.97
5.1.50.3170.0339.99
5.1.40.2630.0279.95
5.1.30.2800.02710.48
5.1.20.2770.02310.35
5.1.10.3000.02310.04
5.1.00.3000.02010.07
5.0.50.1730.0178.70
5.0.40.1300.0178.38
5.0.30.1230.0278.21
5.0.20.1530.0138.22
5.0.10.1400.0178.17
5.0.00.1700.0338.11
4.4.90.1770.0175.82
4.4.80.1770.0135.85
4.4.70.1770.0175.88
4.4.60.1670.0175.76
4.4.50.1430.0175.86
4.4.40.1670.0235.85
4.4.30.1370.0175.82
4.4.20.1470.0135.87
4.4.10.1870.0135.90
4.4.00.1600.0235.85
4.3.110.1570.0175.79
4.3.100.1230.0135.77
4.3.90.1470.0175.72
4.3.80.1770.0235.71
4.3.70.1430.0175.71
4.3.60.1430.0135.67
4.3.50.1330.0175.83
4.3.40.1530.0205.67
4.3.30.0730.0175.46
4.3.20.0800.0275.46
4.3.10.0870.0175.46
4.3.00.0930.0175.46

preferences:
47.54 ms | 401 KiB | 5 Q