3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static $val = 'Foo'; public static function huh() { echo self::$val; } } class Bar extends Foo { public static $val = 'Bar'; } Foo::huh(); Bar::huh();

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.120.0120.00018.89
8.3.110.0000.00820.94
8.3.100.0000.00824.06
8.3.90.0160.00026.77
8.3.80.0000.00816.38
8.3.70.0000.01516.63
8.3.60.0080.00616.63
8.3.50.0170.00317.63
8.3.40.0140.00318.59
8.3.30.0040.01118.59
8.3.20.0040.00418.49
8.3.10.0060.00320.54
8.3.00.0060.00319.13
8.2.240.0080.00017.07
8.2.230.0030.00622.58
8.2.220.0030.00637.54
8.2.210.0150.00426.77
8.2.200.0050.00516.75
8.2.190.0090.00916.61
8.2.180.0040.01118.41
8.2.170.0130.01322.96
8.2.160.0110.00420.82
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00417.63
8.2.110.0060.00319.31
8.2.100.0060.00617.84
8.2.90.0000.01021.12
8.2.80.0000.00719.36
8.2.70.0060.00317.63
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0000.00818.22
8.2.30.0060.00317.91
8.2.20.0030.00619.51
8.2.10.0000.00817.52
8.2.00.0040.00417.66
8.1.300.0080.00017.56
8.1.290.0030.00618.88
8.1.280.0100.00725.92
8.1.270.0000.00922.13
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0090.00022.57
8.1.230.0080.00320.88
8.1.220.0080.00017.74
8.1.210.0000.00918.89
8.1.200.0060.00317.21
8.1.190.0000.00717.41
8.1.180.0030.00618.10
8.1.170.0030.00520.63
8.1.160.0000.00718.76
8.1.150.0070.00018.48
8.1.140.0070.00017.43
8.1.130.0000.00717.74
8.1.120.0070.00017.35
8.1.110.0000.00817.33
8.1.100.0000.00817.21
8.1.90.0000.00817.28
8.1.80.0050.00217.35
8.1.70.0040.00417.23
8.1.60.0070.00017.46
8.1.50.0040.00417.29
8.1.40.0050.00317.34
8.1.30.0040.00417.44
8.1.20.0040.00417.41
8.1.10.0000.00817.41
8.1.00.0000.00817.37
8.0.300.0000.00819.82
8.0.290.0000.00816.75
8.0.280.0030.00318.43
8.0.270.0080.00017.12
8.0.260.0030.00316.81
8.0.250.0000.00716.98
8.0.240.0050.00216.97
8.0.230.0000.00716.92
8.0.220.0030.00316.68
8.0.210.0030.00316.84
8.0.200.0060.00016.85
8.0.190.0000.00816.74
8.0.180.0000.00716.89
8.0.170.0030.00516.71
8.0.160.0040.00416.90
8.0.150.0000.00916.59
8.0.140.0000.00916.54
8.0.130.0000.00613.14
8.0.120.0040.00416.75
8.0.110.0070.00016.81
8.0.100.0030.00616.68
8.0.90.0040.00416.62
8.0.80.0070.01116.78
8.0.70.0060.00316.77
8.0.60.0040.00416.75
8.0.50.0000.00816.57
8.0.30.0060.01217.05
8.0.20.0090.01017.10
8.0.10.0040.00516.81
8.0.00.0170.00316.92
7.4.330.0020.00212.91
7.4.320.0040.00416.38
7.4.300.0070.00016.44
7.4.290.0040.00416.41
7.4.280.0080.00016.47
7.4.270.0080.00016.51
7.4.260.0050.00013.16
7.4.250.0000.00916.41
7.4.240.0000.00716.45
7.4.230.0070.00016.32
7.4.220.0140.00416.32
7.4.210.0150.00016.55
7.4.200.0070.00016.22
7.4.190.0030.00316.56
7.4.160.0060.00916.50
7.4.150.0100.00716.46
7.4.140.0080.00916.39
7.4.130.0100.00616.41
7.4.120.0130.00616.34
7.4.110.0160.00316.52
7.4.100.0070.01016.42
7.4.90.0120.01216.32
7.4.80.0120.00616.60
7.4.70.0040.01316.61
7.4.60.0090.00616.44
7.4.50.0060.00316.43
7.4.40.0070.01116.18
7.4.30.0070.00716.48
7.4.00.0060.00914.79
7.3.330.0030.00313.30
7.3.320.0060.00013.25
7.3.310.0030.00316.17
7.3.300.0030.00316.26
7.3.290.0070.00816.26
7.3.280.0090.01116.30
7.3.270.0070.01016.51
7.3.260.0090.00916.19
7.3.250.0120.00716.47
7.3.240.0060.01016.43
7.3.230.0130.00316.16
7.3.210.0110.00616.44
7.3.200.0000.02219.39
7.3.190.0090.01216.47
7.3.180.0070.01016.61
7.3.170.0150.00616.45
7.3.160.0060.00916.41
7.3.120.0060.01214.73
7.2.330.0130.00316.37
7.2.320.0060.01216.58
7.2.310.0080.00816.54
7.2.300.0070.01016.40
7.2.290.0030.01216.58
7.2.80.0100.00316.70
7.1.200.0040.00415.68
7.1.70.0070.00416.87
7.1.60.0000.02419.31
7.1.50.0070.01316.77
7.1.00.0000.07322.51
7.0.200.5110.00014.44
7.0.140.0000.07721.99
7.0.120.0100.06721.96
7.0.60.0070.08319.85
7.0.50.0030.04017.87
7.0.40.0030.05020.09
7.0.30.0200.04320.25
7.0.20.0370.08020.23
7.0.10.0230.03320.16
7.0.00.0100.03720.15
5.6.280.0030.07320.90
5.6.210.0070.08720.55
5.6.200.0000.04318.18
5.6.190.0030.07720.41
5.6.180.0470.06020.43
5.6.170.0170.04020.71
5.6.160.0030.07320.46
5.6.150.0100.03718.15
5.6.140.0100.04018.14
5.6.130.0070.06318.23
5.6.120.0130.07320.99
5.6.110.0130.07321.03
5.6.100.0070.08021.14
5.6.90.0070.06021.00
5.6.80.0030.08320.38
5.6.70.0370.07020.37
5.5.350.0330.07720.48
5.5.340.0100.07317.98
5.5.330.0070.04720.41
5.5.320.0200.04020.41
5.5.310.0170.05320.24
5.5.300.0000.06017.98
5.5.290.0070.04718.06
5.5.280.0030.06320.96
5.5.270.0030.04720.79
5.5.260.0100.04020.65
5.5.250.0170.04320.66
5.5.240.0000.04320.27
5.4.450.0030.04019.47
5.4.440.0030.05719.44
5.4.430.0070.04319.44
5.4.420.0070.04319.24
5.4.410.0070.04719.38
5.4.400.0100.07319.25
5.4.390.0100.07718.87
5.4.380.0030.07719.00
5.4.370.0070.05719.20
5.4.360.0100.03719.25
5.4.350.0200.03019.15
5.4.340.0130.05318.85
5.4.320.0100.06318.87
5.4.310.0070.07719.24
5.4.300.0070.07019.15
5.4.290.0070.03719.00
5.4.280.0000.04318.85
5.4.270.0170.06718.84
5.4.260.0130.07019.14
5.4.250.0070.06319.14
5.4.240.0170.04719.16
5.4.230.0070.07719.07
5.4.220.0100.04718.91
5.4.210.0100.07319.14
5.4.200.0100.07319.12
5.4.190.0100.07319.07
5.4.180.0070.04319.11
5.4.170.0100.03718.97
5.4.160.0100.03719.14
5.4.150.0030.04019.13
5.4.140.0100.06316.39
5.4.130.0100.05016.48
5.4.120.0100.04716.37
5.4.110.0070.03316.46
5.4.100.0170.04716.50
5.4.90.0100.05316.72
5.4.80.0170.04316.45
5.4.70.0030.03716.34
5.4.60.0100.07316.50
5.4.50.0030.03716.43
5.4.40.0030.03716.46
5.4.30.0070.07716.27
5.4.20.0070.03716.41
5.4.10.0030.04316.34
5.4.00.0030.04715.82
5.3.290.0030.08714.55
5.3.280.0070.03714.59
5.3.270.0030.04314.49
5.3.260.0000.04314.52
5.3.250.0070.03714.76
5.3.240.0030.06314.66
5.3.230.0100.07014.59
5.3.220.0130.06714.57
5.3.210.0070.04714.57
5.3.200.0170.06714.45
5.3.190.0170.06314.55
5.3.180.0030.04014.56
5.3.170.0100.07314.61
5.3.160.0170.06714.55
5.3.150.0030.04714.56
5.3.140.0030.05014.61
5.3.130.0030.05314.55
5.3.120.0030.04014.55
5.3.110.0130.03714.62
5.3.100.0100.07014.03
5.3.90.0100.07014.07
5.3.80.0100.07013.94
5.3.70.0100.07014.17
5.3.60.0170.06313.95
5.3.50.0100.07014.02
5.3.40.0070.06313.95
5.3.30.0070.04714.07
5.3.20.0000.07713.68
5.3.10.0000.03713.54
5.3.00.0000.04013.70
5.2.170.0070.06011.10
5.2.160.0030.04711.16
5.2.150.0130.05311.17
5.2.140.0000.03311.18
5.2.130.0100.03311.07
5.2.120.0100.03011.26
5.2.110.0070.02311.15
5.2.100.0030.03011.17
5.2.90.0070.02711.25
5.2.80.0000.03311.09
5.2.70.0030.02711.06
5.2.60.0000.03011.20
5.2.50.0000.03010.94
5.2.40.0030.02711.05
5.2.30.0000.03010.86
5.2.20.0000.03010.97
5.2.10.0030.02710.91
5.2.00.0070.02310.71
5.1.60.0030.0239.98
5.1.50.0030.0239.99
5.1.40.0000.0279.93
5.1.30.0030.02310.39
5.1.20.0070.02010.40
5.1.10.0000.03010.08
5.1.00.0030.02310.04
5.0.50.0000.0208.53
5.0.40.0030.0238.41
5.0.30.0000.0338.36
5.0.20.0000.0208.27
5.0.10.0030.0178.27
5.0.00.0000.0308.27
4.4.90.0000.0178.27
4.4.80.0100.0108.27
4.4.70.0000.0208.27
4.4.60.0030.0138.27
4.4.50.0000.0178.27
4.4.40.0000.0238.27
4.4.30.0000.0178.27
4.4.20.0000.0178.27
4.4.10.0000.0178.27
4.4.00.0000.0238.27
4.3.110.0000.0138.27
4.3.100.0000.0138.27
4.3.90.0000.0138.27
4.3.80.0030.0208.27
4.3.70.0030.0108.27
4.3.60.0000.0138.27
4.3.50.0000.0208.27
4.3.40.0000.0278.27
4.3.30.0030.0138.27
4.3.20.0030.0138.27
4.3.10.0000.0138.27
4.3.00.0000.0138.27

preferences:
107.95 ms | 403 KiB | 5 Q