3v4l.org

run code in 300+ PHP versions simultaneously
<?php function do_html_heading($level = 1, $heading) { // print heading echo "<h" . (int)$level ? : 1 . ">" . $heading . "</h" . $heading; //var_dump($level); } do_html_heading("jkjsdkds", "mon titre");

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.0150.00018.55
8.3.50.0250.00517.51
8.3.40.0090.01218.79
8.3.30.0090.00618.84
8.3.20.0060.00318.70
8.3.10.0080.00018.66
8.3.00.0080.00019.26
8.2.180.0150.00016.63
8.2.170.0040.01122.96
8.2.160.0100.00618.82
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0000.00726.16
8.2.120.0080.00019.54
8.2.110.0000.00922.13
8.2.100.0070.00417.72
8.2.90.0040.00417.63
8.2.80.0080.00417.97
8.2.70.0030.00517.38
8.2.60.0040.00417.91
8.2.50.0030.00518.07
8.2.40.0050.00319.48
8.2.30.0060.00317.62
8.2.20.0030.00617.51
8.2.10.0000.00717.54
8.2.00.0050.00217.63
8.1.280.0030.02025.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00717.23
8.1.230.0080.00318.86
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.13
8.1.190.0030.00717.23
8.1.180.0040.00418.10
8.1.170.0000.00718.89
8.1.160.0040.00418.95
8.1.150.0020.00518.57
8.1.140.0000.00717.36
8.1.130.0080.00017.38
8.1.120.0030.00317.31
8.1.110.0040.00417.30
8.1.100.0000.00717.42
8.1.90.0000.00817.41
8.1.80.0030.00317.27
8.1.70.0030.00317.35
8.1.60.0000.00717.37
8.1.50.0060.00317.29
8.1.40.0030.00517.47
8.1.30.0000.00917.61
8.1.20.0040.00817.49
8.1.10.0000.00717.44
8.1.00.0000.00817.32
8.0.300.0030.00618.77
8.0.290.0000.00816.75
8.0.280.0030.00318.49
8.0.270.0030.00317.10
8.0.260.0030.00316.86
8.0.250.0000.00816.99
8.0.240.0050.00316.82
8.0.230.0000.00816.90
8.0.220.0030.00316.86
8.0.210.0070.00016.93
8.0.200.0000.00716.94
8.0.190.0040.00416.86
8.0.180.0040.00416.95
8.0.170.0080.00016.82
8.0.160.0030.00316.84
8.0.150.0000.00816.75
8.0.140.0000.00716.73
8.0.130.0030.00313.36
8.0.120.0000.00916.86
8.0.110.0020.00516.87
8.0.100.0040.00416.77
8.0.90.0050.00316.90
8.0.80.0060.00916.93
8.0.70.0000.00716.83
8.0.60.0030.00616.94
8.0.50.0080.00016.73
8.0.30.0110.00716.83
8.0.20.0170.00516.99
8.0.10.0000.00717.01
8.0.00.0080.01016.82
7.4.330.0000.00512.93
7.4.320.0060.00016.48
7.4.300.0060.00016.43
7.4.290.0090.00016.47
7.4.280.0070.00016.49
7.4.270.0100.00016.44
7.4.260.0050.00313.13
7.4.250.0030.00616.37
7.4.240.0000.00716.52
7.4.230.0040.00416.50
7.4.220.0070.01116.58
7.4.210.0130.00716.48
7.4.200.0040.00416.50
7.4.190.0000.00816.68
7.4.160.0130.01016.26
7.4.150.0090.00916.29
7.4.140.0030.01417.86
7.4.130.0090.00916.45
7.4.120.0060.01016.64
7.4.110.0070.01916.46
7.4.100.0140.00716.33
7.4.90.0100.01016.36
7.4.80.0070.01019.39
7.4.70.0090.00916.37
7.4.60.0060.01016.34
7.4.50.0030.00316.42
7.4.40.0080.00516.13
7.4.30.0100.00716.66
7.4.00.0050.01314.92
7.3.330.0030.00313.13
7.3.320.0030.00313.10
7.3.310.0080.00016.13
7.3.300.0030.00316.31
7.3.290.0050.00916.28
7.3.280.0110.00516.36
7.3.270.0210.00316.43
7.3.260.0060.01216.37
7.3.240.0070.01316.46
7.3.230.0180.00016.57
7.3.210.0110.01116.36
7.3.200.0130.00316.34
7.3.190.0120.00616.30
7.3.180.0070.01316.18
7.3.170.0180.00416.44
7.3.160.0140.00716.36
7.3.120.0090.00814.81
7.3.110.0130.00614.99
7.3.100.0060.01014.52
7.3.90.0030.00614.73
7.3.80.0140.00014.92
7.3.70.0090.00615.02
7.3.60.0080.00314.97
7.3.50.0080.00814.55
7.3.40.0030.00914.78
7.3.30.0070.00714.75
7.3.20.0040.00816.77
7.3.10.0100.00316.73
7.3.00.0040.00416.54
7.2.330.0060.01216.51
7.2.320.0210.00016.73
7.2.310.0120.00616.62
7.2.300.0070.01016.65
7.2.290.0040.01416.39
7.2.250.0130.00714.78
7.2.240.0140.00715.21
7.2.230.0070.01115.22
7.2.220.0040.00814.77
7.2.210.0120.00415.15
7.2.200.0030.00715.05
7.2.190.0070.00715.11
7.2.180.0030.01014.80
7.2.170.0100.00315.15
7.2.60.0080.00416.78
7.2.00.0070.00719.20
7.1.330.0070.01015.50
7.1.320.0040.00815.67
7.1.310.0090.00615.78
7.1.300.0070.00715.75
7.1.290.0060.00615.80
7.1.280.0000.00915.67
7.1.270.0040.01115.48
7.1.260.0100.00015.45
7.1.200.0200.00615.22
7.1.100.0040.00817.94
7.1.70.0000.00717.02
7.1.60.0090.01519.25
7.1.50.0090.01616.69
7.1.00.0030.03322.44
7.0.200.0000.00716.80
7.0.140.0000.07722.06
7.0.120.0000.07722.05
7.0.60.0130.05719.87
7.0.50.0030.04317.95
7.0.40.0070.05020.21
7.0.30.0200.05020.21
7.0.20.0370.07320.36
7.0.10.0070.08720.37
7.0.00.0070.03720.25
5.6.280.0000.07720.78
5.6.210.0000.05720.67
5.6.200.0070.05018.25
5.6.190.0070.08020.34
5.6.180.0200.08320.67
5.6.170.0270.04020.53
5.6.160.0070.08720.48
5.6.150.0070.07018.18
5.6.140.0070.08018.17
5.6.130.0070.03718.18
5.6.120.0070.04721.02
5.6.110.0100.08721.00
5.6.100.0030.05721.01
5.6.90.0030.06021.02
5.6.80.0030.03720.41
5.6.70.4070.04720.51
5.5.350.0400.06720.50
5.5.340.0070.05318.10
5.5.330.0070.04720.46
5.5.320.0230.03720.30
5.5.310.0330.07720.25
5.5.300.0070.04718.03
5.5.290.0100.07717.94
5.5.280.0070.08020.88
5.5.270.0130.07720.86
5.5.260.0030.04320.95
5.5.250.0100.08320.59
5.5.240.4130.04320.19
5.4.450.0070.08019.18
5.4.440.0030.04019.48
5.4.430.0130.07019.56
5.4.420.0100.07319.47
5.4.410.0000.04719.27
5.4.400.0100.03719.24
5.4.390.0130.03318.98
5.4.380.0000.08019.24
5.4.370.0070.04719.11
5.4.360.0130.07019.25
5.4.350.0100.07319.21
5.4.340.0100.06019.24
5.4.320.0070.06318.87
5.4.310.0030.03719.15
5.4.300.0100.03718.85
5.4.290.0070.07718.85
5.4.280.0100.07319.14
5.4.270.0070.07318.83
5.4.260.0070.05319.24
5.4.250.0070.07019.17
5.4.240.0030.04719.23
5.4.230.0030.04719.11
5.4.220.0000.05019.14
5.4.210.0100.04019.23
5.4.200.0100.04018.95
5.4.190.0030.05719.13
5.4.180.0030.06319.23
5.4.170.0130.06319.23
5.4.160.0030.07018.83
5.4.150.0070.07718.96
5.4.140.0170.06316.28
5.4.130.0030.04016.38
5.4.120.0030.03716.40
5.4.110.0070.04716.30
5.4.100.0130.06316.30
5.4.90.0100.04016.47
5.4.80.0130.03016.29
5.4.70.0130.06016.45
5.4.60.0070.07016.39
5.4.50.0030.03716.27
5.4.40.0070.06016.38
5.4.30.0000.04316.40
5.4.20.0170.03016.50
5.4.10.0030.04016.40
5.4.00.0030.04315.84
5.3.290.0030.04314.71
5.3.280.0100.05314.58
5.3.270.0000.07714.64
5.3.260.0070.07714.69
5.3.250.0100.06714.75
5.3.240.0070.06714.63
5.3.230.0100.04014.74
5.3.220.0100.03314.59
5.3.210.0070.08314.62
5.3.200.0100.07014.62
5.3.190.0100.07714.48
5.3.180.0070.07014.72
5.3.170.0100.07014.58
5.3.160.0030.08014.62
5.3.150.0030.04014.56
5.3.140.0030.03714.55
5.3.130.0130.06314.69
5.3.120.0070.04014.55
5.3.110.0030.07714.60
5.3.100.0070.03314.07
5.3.90.0070.04014.07
5.3.80.0030.05014.17
5.3.70.0030.07313.98
5.3.60.0000.04714.00
5.3.50.0030.04713.97
5.3.40.0000.05013.94
5.3.30.0030.04313.79
5.3.20.0100.05313.73
5.3.10.0030.04713.66
5.3.00.0070.04013.64
5.2.170.0030.05011.22
5.2.160.0000.06311.07
5.2.150.0070.03311.11
5.2.140.0030.04011.15
5.2.130.0030.06311.13
5.2.120.0030.03311.13
5.2.110.0000.05311.25
5.2.100.0000.03011.14
5.2.90.0030.02711.05
5.2.80.0030.06711.24
5.2.70.0000.03711.24
5.2.60.0000.04311.05
5.2.50.0070.04310.97
5.2.40.0070.03011.16
5.2.30.0000.06310.86
5.2.20.0030.04010.85
5.2.10.0130.02310.87
5.2.00.0070.06310.76
5.1.60.0000.0309.94
5.1.50.0030.0479.94
5.1.40.0070.05010.00
5.1.30.0070.03710.39
5.1.20.0000.03010.42
5.1.10.0070.0439.97
5.1.00.0030.0409.97
5.0.50.0030.0238.45
5.0.40.0000.0208.36
5.0.30.0000.0508.36
5.0.20.0000.0408.22
5.0.10.0070.0278.13
5.0.00.0000.0478.16
4.4.90.0030.0207.83
4.4.80.0000.0307.83
4.4.70.0000.0237.83
4.4.60.0030.0277.83
4.4.50.0000.0237.83
4.4.40.0030.0507.83
4.4.30.0030.0137.83
4.4.20.0000.0207.83
4.4.10.0000.0207.83
4.4.00.0100.0177.83
4.3.110.0030.0137.83
4.3.100.0030.0337.83
4.3.90.0000.0307.83
4.3.80.0030.0307.83
4.3.70.0000.0277.83
4.3.60.0000.0207.83
4.3.50.0030.0277.83
4.3.40.0000.0337.83
4.3.30.0000.0407.83
4.3.20.0000.0337.83
4.3.10.0030.0207.83
4.3.00.0000.0377.83

preferences:
37.53 ms | 401 KiB | 5 Q