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.70.0040.01116.75
8.3.60.0160.00316.63
8.3.50.0120.01016.36
8.3.40.0140.00018.77
8.3.30.0100.00718.56
8.3.20.0000.00818.60
8.3.10.0030.00518.77
8.3.00.0080.00019.38
8.2.180.0070.00725.92
8.2.170.0120.00919.09
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0030.00620.71
8.2.110.0060.00321.02
8.2.100.0000.01117.72
8.2.90.0060.00319.39
8.2.80.0040.00419.21
8.2.70.0000.00817.50
8.2.60.0000.00817.66
8.2.50.0000.00918.07
8.2.40.0000.01018.03
8.2.30.0000.00717.88
8.2.20.0040.00419.38
8.2.10.0050.00217.71
8.2.00.0000.00717.54
8.1.280.0090.00625.92
8.1.270.0040.00424.66
8.1.260.0140.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00322.48
8.1.230.0080.00421.04
8.1.220.0000.00917.74
8.1.210.0040.00418.90
8.1.200.0030.00617.35
8.1.190.0060.00317.53
8.1.180.0030.00718.10
8.1.170.0000.00818.80
8.1.160.0070.00018.73
8.1.150.0000.00718.57
8.1.140.0040.00417.36
8.1.130.0000.00717.82
8.1.120.0000.00717.28
8.1.110.0050.00317.29
8.1.100.0030.00517.39
8.1.90.0000.00717.41
8.1.80.0040.00417.41
8.1.70.0070.00017.29
8.1.60.0030.00517.50
8.1.50.0030.00617.43
8.1.40.0030.00617.30
8.1.30.0000.00817.44
8.1.20.0000.00717.41
8.1.10.0000.00817.43
8.1.00.0040.00417.39
8.0.300.0070.00019.89
8.0.290.0000.00716.59
8.0.280.0000.00818.41
8.0.270.0030.00317.05
8.0.260.0030.00316.81
8.0.250.0070.00017.01
8.0.240.0070.00016.98
8.0.230.0000.00816.82
8.0.220.0000.00716.85
8.0.210.0030.00316.76
8.0.200.0000.00716.93
8.0.190.0060.00316.95
8.0.180.0070.00016.89
8.0.170.0050.00516.77
8.0.160.0000.00816.87
8.0.150.0030.00616.88
8.0.140.0040.00416.84
8.0.130.0000.00613.35
8.0.120.0000.00816.80
8.0.110.0050.00316.84
8.0.100.0000.00816.77
8.0.90.0000.00716.89
8.0.80.0110.00416.80
8.0.70.0000.00716.91
8.0.60.0000.00816.85
8.0.50.0040.00416.78
8.0.30.0140.00417.13
8.0.20.0100.00816.96
8.0.10.0020.00516.92
8.0.00.0050.01216.79
7.4.330.0060.00012.93
7.4.320.0030.00316.34
7.4.300.0070.00016.55
7.4.290.0060.00316.36
7.4.280.0040.00416.41
7.4.270.0000.00816.57
7.4.260.0050.00013.32
7.4.250.0000.00816.54
7.4.240.0020.00516.39
7.4.230.0000.00716.58
7.4.220.0090.00916.46
7.4.210.0090.00616.52
7.4.200.0040.00416.64
7.4.190.0060.00316.59
7.4.160.0100.00716.43
7.4.150.0090.01216.49
7.4.140.0140.00916.47
7.4.130.0100.00716.43
7.4.120.0110.00616.48
7.4.110.0100.00716.33
7.4.100.0120.00616.39
7.4.90.0060.01316.45
7.4.80.0100.00719.39
7.4.70.0180.00416.61
7.4.60.0120.00616.35
7.4.50.0060.00616.38
7.4.40.0070.00716.38
7.4.30.0130.00316.19
7.4.00.0050.01214.87
7.3.330.0000.00613.27
7.3.320.0060.00013.29
7.3.310.0000.00716.16
7.3.300.0040.00316.31
7.3.290.0090.00616.30
7.3.280.0080.00916.30
7.3.270.0060.00916.33
7.3.260.0130.00916.37
7.3.250.0140.00916.49
7.3.240.0130.00616.28
7.3.230.0120.00616.61
7.3.210.0060.00916.41
7.3.200.0130.00316.35
7.3.190.0140.00716.32
7.3.180.0080.00816.54
7.3.170.0070.01316.32
7.3.160.0100.00616.37
7.3.120.0100.00814.86
7.3.110.0180.00414.79
7.3.100.0100.00714.67
7.3.90.0080.00414.51
7.3.80.0000.01114.82
7.3.70.0000.00914.81
7.3.60.0030.01014.71
7.3.50.0070.00714.67
7.3.40.0090.00614.61
7.3.30.0040.00814.84
7.3.20.0040.01116.48
7.3.10.0050.00816.63
7.3.00.0080.00616.49
7.2.330.0140.00416.62
7.2.320.0060.01516.62
7.2.310.0100.00716.35
7.2.300.0070.01016.69
7.2.290.0090.00616.59
7.2.250.0060.00615.12
7.2.240.0030.01314.93
7.2.230.0110.00415.07
7.2.220.0040.00714.96
7.2.210.0070.01015.17
7.2.200.0070.00315.21
7.2.190.0000.01214.97
7.2.180.0080.00615.11
7.2.170.0050.00514.78
7.2.130.0000.01116.96
7.2.120.0070.00716.92
7.2.110.0000.01216.79
7.2.100.0070.00417.00
7.2.90.0040.01116.88
7.2.80.0080.00816.81
7.2.70.0050.00516.96
7.2.60.0090.00316.81
7.2.50.0040.00716.67
7.2.40.0030.01316.85
7.2.30.0040.00716.94
7.2.20.0000.01316.33
7.2.10.0000.01316.57
7.2.00.0030.01018.10
7.1.330.0070.00715.69
7.1.320.0060.00616.00
7.1.310.0030.00915.43
7.1.300.0070.00715.64
7.1.290.0100.00315.50
7.1.280.0070.00715.65
7.1.270.0080.00015.61
7.1.260.0060.00615.63
7.1.250.0030.00915.65
7.1.200.0110.00415.80
7.1.100.0120.00817.89
7.1.70.0040.00716.89
7.1.60.0150.00919.40
7.1.50.0070.01416.65
7.1.00.0070.07322.44
7.0.200.0040.00416.39
7.0.140.0070.06721.92
7.0.120.0000.07322.05
7.0.110.0000.07019.88
7.0.100.0100.07720.01
7.0.90.0030.05719.98
7.0.80.0070.07719.85
7.0.70.0070.08019.84
7.0.60.0070.07719.67
7.0.50.0100.08319.93
7.0.40.0070.07719.82
7.0.30.0000.08719.85
7.0.20.0100.07019.85
7.0.10.0000.04319.88
7.0.00.0100.08319.64
5.6.280.0000.07021.12
5.6.260.0030.06020.62
5.6.250.0070.05720.72
5.6.240.0000.09020.70
5.6.230.0070.08020.66
5.6.220.0130.07020.62
5.6.210.0000.08320.73
5.6.200.0130.07320.48
5.6.190.0100.06020.47
5.6.180.0070.07320.64
5.6.170.0170.07020.70
5.6.160.0030.08020.59
5.6.150.0070.07320.66
5.6.140.0070.08320.57
5.6.130.0070.08320.66
5.6.120.0070.03720.70
5.6.110.0130.07320.55
5.6.100.0100.03720.54
5.6.90.0030.07720.64
5.6.80.0030.06320.00
5.6.70.0130.07320.00
5.6.60.0030.06719.84
5.6.50.0030.03720.06
5.6.40.0100.06719.93
5.6.30.0070.06319.95
5.6.20.0070.03319.97
5.6.10.0030.08019.95
5.6.00.0030.03720.07
5.5.380.0100.04717.70
5.5.370.0000.04017.70
5.5.360.0030.08017.67
5.5.350.0030.04317.61
5.5.340.0030.08018.26
5.5.330.0130.06718.23
5.5.320.0070.08018.09
5.5.310.0100.07317.93
5.5.300.0030.06317.79
5.5.290.0070.06318.10
5.5.280.0070.08717.93
5.5.270.0030.03718.09
5.5.260.0070.06718.25
5.5.250.0070.07017.89
5.5.240.0070.07317.30
5.5.230.0030.08317.48
5.5.220.0070.06017.44
5.5.210.0030.04717.30
5.5.200.0070.05717.31
5.5.190.0030.03717.48
5.5.180.0000.06717.44
5.5.160.0170.06717.45
5.5.150.0070.07717.57
5.5.140.0070.06717.40
5.5.130.0000.04017.54
5.5.120.0100.06717.25
5.5.110.0030.08317.42
5.5.100.0100.05317.36
5.5.90.0070.06017.33
5.5.80.0070.03317.38
5.5.70.0030.04017.47
5.5.60.0000.03717.29
5.5.50.0100.06017.20
5.5.40.0100.04017.37
5.5.30.0000.08317.07
5.5.20.0070.07317.14
5.5.10.0030.05017.37
5.5.00.0100.06017.33
5.4.450.0130.06719.49
5.4.440.0030.07319.51
5.4.430.0070.04019.27
5.4.420.0030.07019.50
5.4.410.0030.07719.24
5.4.400.0030.03719.17
5.4.390.0030.08019.00
5.4.380.0000.06019.01
5.4.370.0100.06719.01
5.4.360.0030.04019.03
5.4.350.0070.03719.34
5.4.340.0070.05019.22
5.4.320.0100.06019.18
5.4.310.0030.07018.98
5.4.300.0070.05719.00
5.4.290.0100.07318.98
5.4.280.0100.06719.09
5.4.270.0100.07319.00
5.4.260.0030.05719.00
5.4.250.0100.06719.33
5.4.240.0100.04318.96
5.4.230.0100.06019.16
5.4.220.0070.07719.23
5.4.210.0000.06719.01
5.4.200.0000.06319.32
5.4.190.0070.08018.98
5.4.180.0030.04018.94
5.4.170.0070.06719.00
5.4.160.0070.07718.99
5.4.150.0070.07319.32
5.4.140.0030.06016.63
5.4.130.0130.05316.38
5.4.120.0100.04716.38
5.4.110.0070.04016.55
5.4.100.0000.04016.41
5.4.90.0030.06016.56
5.4.80.0030.03016.30
5.4.70.0030.06016.45
5.4.60.0000.05716.45
5.4.50.0100.04716.44
5.4.40.0000.06716.60
5.4.30.0000.03316.47
5.4.20.0070.05716.51
5.4.10.0030.05716.33
5.4.00.0000.05716.07
5.3.290.0000.05014.89
5.3.280.0100.03714.55
5.3.270.0130.06714.64
5.3.260.0070.04314.61
5.3.250.0070.07714.61
5.3.240.0070.04714.63
5.3.230.0000.04714.74
5.3.220.0070.04014.59
5.3.210.0000.04714.65
5.3.200.0070.03714.69
5.3.190.0030.03714.43
5.3.180.0100.03314.79
5.3.170.0030.05014.57
5.3.160.0000.03714.52
5.3.150.0070.06714.52
5.3.140.0030.07314.58
5.3.130.0030.03314.63
5.3.120.0100.06014.63
5.3.110.0100.03014.68
5.3.100.0000.04014.13
5.3.90.0030.03314.03
5.3.80.0100.07314.02
5.3.70.0030.06314.09
5.3.60.0030.03314.03
5.3.50.0100.06013.93
5.3.40.0070.07313.79
5.3.30.0030.06713.98
5.3.20.0030.04013.75
5.3.10.0030.03313.67
5.3.00.0070.07013.64
5.2.170.0030.02712.07
5.2.160.0000.03712.07
5.2.150.0000.04012.07
5.2.140.0070.04712.07
5.2.130.0000.07012.07
5.2.120.0000.04012.07
5.2.110.0000.04012.07
5.2.100.0100.05312.07
5.2.90.0000.03012.07
5.2.80.0130.04012.07
5.2.70.0130.04712.07
5.2.60.0070.04012.07
5.2.50.0030.05312.07
5.2.40.0030.03312.07
5.2.30.0070.05312.07
5.2.20.0000.06312.07
5.2.10.0100.06012.07
5.2.00.0070.04012.07
5.1.60.0070.02312.07
5.1.50.0100.02712.07
5.1.40.0000.04312.07
5.1.30.0030.05012.07
5.1.20.0030.04712.07
5.1.10.0070.05012.07
5.1.00.0100.04312.07
5.0.50.0000.05012.07
5.0.40.0030.02712.07
5.0.30.0000.04012.07
5.0.20.0030.04012.07
5.0.10.0070.03712.07
5.0.00.0070.06012.07
4.4.90.0030.02712.07
4.4.80.0030.03012.07
4.4.70.0030.03012.07
4.4.60.0030.03012.07
4.4.50.0000.02012.07
4.4.40.0030.02312.07
4.4.30.0030.02012.07
4.4.20.0070.03712.07
4.4.10.0100.02012.07
4.4.00.0070.04712.07
4.3.110.0070.02012.07
4.3.100.0030.03312.07
4.3.90.0030.03012.07
4.3.80.0000.04312.07
4.3.70.0030.01712.07
4.3.60.0000.02012.07
4.3.50.0030.03012.07
4.3.40.0030.05012.07
4.3.30.0000.03012.07
4.3.20.0030.03312.07
4.3.10.0000.03012.07
4.3.00.0030.03012.07

preferences:
34.69 ms | 401 KiB | 5 Q