3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Foo { abstract public function bar($a); } class Baz extends Foo { public function bar($a, $b = null) { echo "Hi\n"; } } $b = new Baz; $b->bar(1);

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.1.70.0080.00017.26
8.1.60.0030.00617.59
8.1.50.0000.00717.51
8.1.40.0000.00717.41
8.1.30.0040.00417.66
8.1.20.0080.00017.61
8.1.10.0070.00017.60
8.1.00.0050.00317.37
8.0.200.0070.00016.92
8.0.190.0080.00016.94
8.0.180.0040.00416.73
8.0.170.0020.00516.67
8.0.160.0040.00416.85
8.0.150.0070.00016.75
8.0.140.0030.00316.68
8.0.130.0000.00513.23
8.0.120.0000.00816.63
8.0.110.0070.00016.65
8.0.100.0050.00216.66
8.0.90.0000.00716.77
8.0.80.0070.01516.85
8.0.70.0040.00416.73
8.0.60.0040.00416.71
8.0.50.0040.00416.85
8.0.30.0070.01117.12
8.0.20.0100.00917.40
8.0.10.0070.00016.89
8.0.00.0110.00716.68
7.4.300.0070.00016.59
7.4.290.0070.00016.41
7.4.280.0070.00016.57
7.4.270.0070.00016.60
7.4.260.0040.00716.61
7.4.250.0000.00816.47
7.4.240.0020.00516.57
7.4.230.0030.00316.63
7.4.220.0100.01716.60
7.4.210.0070.00816.56
7.4.200.0000.00716.52
7.4.160.0100.00716.47
7.4.150.0070.01017.40
7.4.140.0140.00317.86
7.4.130.0130.00716.50
7.4.120.0120.00516.49
7.4.110.0080.00916.58
7.4.100.0040.01216.55
7.4.90.0070.01016.55
7.4.80.0060.01219.39
7.4.70.0100.01216.59
7.4.60.0070.01016.36
7.4.50.0050.00016.65
7.4.40.0000.01816.59
7.4.30.0100.00716.30
7.4.00.0060.00915.02
7.3.330.0050.00013.26
7.3.320.0030.00313.06
7.3.310.0000.00716.19
7.3.300.0030.00316.25
7.3.290.0030.01616.23
7.3.280.0090.01016.20
7.3.270.0120.00617.40
7.3.260.0030.01916.66
7.3.250.0080.01216.36
7.3.240.0060.01216.18
7.3.230.0100.00716.39
7.3.210.0030.01316.29
7.3.200.0070.01419.39
7.3.190.0110.00716.24
7.3.180.0060.00916.25
7.3.170.0130.00316.29
7.3.160.0140.00316.13
7.3.120.0070.01314.72
7.3.110.0080.01214.41
7.3.100.0100.00314.28
7.3.90.0110.00014.52
7.3.80.0080.00414.72
7.3.70.0090.00014.76
7.3.60.0000.01014.68
7.3.50.0060.01014.66
7.3.40.0030.01014.58
7.3.30.0030.01014.58
7.3.20.0110.00316.57
7.3.10.0080.00616.35
7.3.00.0110.00416.38
7.2.330.0090.00916.78
7.2.320.0060.01216.74
7.2.310.0070.01516.54
7.2.300.0090.00916.76
7.2.290.0100.00716.66
7.2.250.0060.01315.18
7.2.240.0030.01314.98
7.2.230.0000.01414.86
7.2.220.0060.00614.48
7.2.210.0030.01315.03
7.2.200.0060.00614.65
7.2.190.0060.00614.85
7.2.180.0000.01514.56
7.2.170.0060.00914.58
7.2.60.0000.01616.83
7.2.00.0220.00618.83
7.1.330.0040.01115.64
7.1.320.0060.00615.63
7.1.310.0030.00915.67
7.1.300.0060.00615.62
7.1.290.0030.01015.61
7.1.280.0090.00315.76
7.1.270.0030.01015.49
7.1.260.0040.00715.34
7.1.200.0040.00715.56
7.1.100.0100.01017.82
7.1.70.0070.01016.66
7.1.60.0120.00919.34
7.1.50.0160.00616.94
7.1.00.0000.07722.45
7.0.200.0040.00416.54
7.0.140.0030.07322.08
7.0.60.0370.05319.90
7.0.50.0100.04017.86
7.0.40.0030.04320.26
7.0.30.0300.06720.11
7.0.20.0270.07020.21
7.0.10.0070.06020.12
7.0.00.0170.04720.23
5.6.280.0070.07021.15
5.6.210.0130.07720.56
5.6.200.0100.07018.18
5.6.190.0000.09020.50
5.6.180.0270.05020.61
5.6.170.0100.05720.51
5.6.160.0070.08720.48
5.6.150.0070.08018.28
5.6.140.0070.08018.24
5.6.130.0100.04018.14
5.6.120.0030.04021.14
5.6.110.0030.08720.86
5.6.100.0070.08021.09
5.6.90.0100.08021.06
5.6.80.0070.03720.44
5.5.350.3970.04020.34
5.5.340.0000.04717.95
5.5.330.0070.05320.21
5.5.320.0330.07320.37
5.5.310.0200.06320.36
5.5.300.0100.04717.98
5.5.290.0070.03718.02
5.5.280.0070.07720.88
5.5.270.0030.05020.73
5.5.260.0100.08320.84
5.5.250.0130.07320.58
5.5.240.0100.07020.16
5.4.450.3730.03719.54
5.4.440.0130.06719.43
5.4.430.1570.05719.25
5.4.420.4830.03719.43
5.4.410.3730.03319.32
5.4.400.4200.04018.99
5.4.390.3730.04018.94
5.4.380.3730.02719.06
5.4.370.3400.04318.99
5.4.360.3630.04019.23
5.4.350.2600.04019.21
5.4.340.3430.04019.13
5.4.320.3670.04018.95
5.4.310.0070.07318.95
5.4.300.4370.04719.20
5.4.290.4570.03319.18
5.4.280.3930.04019.13
5.4.270.3800.04319.14
5.4.260.3670.03719.06
5.4.250.3900.03319.17
5.4.240.3930.03719.20
5.4.230.3630.04018.98
5.4.220.3900.03719.08
5.4.210.3830.04018.96
5.4.200.4170.04319.06
5.4.190.3800.03319.13
5.4.180.3630.03319.20
5.4.170.4270.03318.94
5.4.160.3330.03319.01
5.4.150.3930.03319.11
5.4.140.3730.03716.50
5.4.130.3900.04316.49
5.4.120.4470.04016.43
5.4.110.3370.03316.53
5.4.100.3770.04016.56
5.4.90.3900.03316.56
5.4.80.3800.03716.47
5.4.70.4830.03016.51
5.4.60.3800.03016.51
5.4.50.3800.03716.52
5.4.40.3630.03716.32
5.4.30.3870.04316.42
5.4.20.3930.03716.42
5.4.10.3830.03716.43
5.4.00.3570.03315.79
5.3.290.1400.03314.74
5.3.280.3670.04314.50
5.3.270.3370.03314.75
5.3.260.3900.03714.66
5.3.250.3770.04314.60
5.3.240.3670.04014.66
5.3.230.3370.03714.63
5.3.220.4000.03714.48
5.3.210.3970.04314.60
5.3.200.3700.03314.73
5.3.190.3800.03714.56
5.3.180.3670.03714.48
5.3.170.3470.04314.62
5.3.160.3600.03314.72
5.3.150.3400.03314.57
5.3.140.3630.03314.71
5.3.130.3930.03014.44
5.3.120.3600.04014.55
5.3.110.3630.03314.70
5.3.100.3630.04714.04
5.3.90.3830.03714.03
5.3.80.3800.03713.94
5.3.70.4000.04013.95
5.3.60.3770.03713.93
5.3.50.3770.04314.11
5.3.40.4100.04313.98
5.3.30.3830.04314.07
5.3.20.3570.04013.74
5.3.10.3800.03313.70
5.3.00.3370.04313.66
5.2.170.3330.02311.20
5.2.160.3200.03311.13
5.2.150.3300.02711.07
5.2.140.3200.03011.18
5.2.130.3230.02711.04
5.2.120.3170.02711.18
5.2.110.2970.03011.14
5.2.100.3300.02711.25
5.2.90.3000.02311.14
5.2.80.3270.02311.05
5.2.70.2970.03011.06
5.2.60.3200.03311.06
5.2.50.3130.03011.02
5.2.40.2670.03011.05
5.2.30.2470.02310.86
5.2.20.2700.02710.96
5.2.10.2170.03710.75
5.2.00.2570.03310.67
5.1.60.2370.0309.98
5.1.50.2730.0339.95
5.1.40.2770.0309.89
5.1.30.2630.02310.34
5.1.20.2870.02710.24
5.1.10.2670.0239.98
5.1.00.2730.02710.09
5.0.50.1530.0208.59
5.0.40.1470.0178.48
5.0.30.1430.0338.18
5.0.20.1470.0178.21
5.0.10.1270.0178.22
5.0.00.1300.0308.17
4.4.90.1630.0136.31
4.4.80.1500.0136.31
4.4.70.1470.0176.31
4.4.60.1400.0176.31
4.4.50.1200.0176.31
4.4.40.1530.0236.31
4.4.30.1470.0236.31
4.4.20.1200.0176.31
4.4.10.1170.0176.31
4.4.00.1330.0276.31
4.3.110.1600.0176.31
4.3.100.1470.0176.31
4.3.90.1430.0136.31
4.3.80.1200.0276.31
4.3.70.1200.0136.31
4.3.60.1230.0176.31
4.3.50.1000.0136.31
4.3.40.1200.0236.31
4.3.30.0600.0136.31
4.3.20.0630.0136.31
4.3.10.0600.0136.31
4.3.00.0370.0136.31

preferences:
12.09 ms | 406 KiB | 5 Q