3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<< ST <h1 class="text-align-center" style="font-size:22px;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-family:IntroBold, sans-serif;line-height:1.5;letter-spacing:0px;font-weight:700;text-align:center;">You should be&nbsp;confident solving wicked problems in a hybrid role between strategy, research, design and business&nbsp;through a discovery driven approach.&nbsp;</h1><p></p><h2 style="margin-top:0px;margin-bottom:.5em;font-family:IntroBold, sans-serif;font-size:19px;line-height:1em;text-transform:uppercase;letter-spacing:1px;font-weight:700;"><strong>KEY RESPONSIBILITIES</strong></h2> ST; $dom = new domdocument(); $dom->loadHTML($html, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD); $xpath = new domxpath($dom); $headings = $xpath->query("//h1 | //h2 | //h3 | //h4 | //h5 | //h6"); foreach ($headings as $h) { $s = $dom->createElement("strong", $h->nodeValue); $h->parentNode->replaceChild($s, $h); } echo $dom->saveHTML();

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.5.10.0100.01219.88
8.5.00.0130.01020.32
8.4.150.0030.00014.05
8.4.140.0120.01018.00
8.4.130.0050.00518.17
8.4.120.0150.00622.69
8.4.110.0100.01122.47
8.4.100.0120.00818.38
8.4.90.0130.00918.93
8.4.80.0070.00218.11
8.4.70.0100.01020.17
8.4.60.0080.01320.73
8.4.50.0110.00618.14
8.4.40.0040.00520.06
8.4.30.0060.01319.63
8.4.20.0100.01018.18
8.4.10.0060.00317.99
8.3.280.0100.01118.96
8.3.270.0110.00917.03
8.3.260.0120.00717.19
8.3.250.0130.00619.38
8.3.240.0060.00617.11
8.3.230.0050.00417.02
8.3.220.0120.00717.70
8.3.210.0060.01217.00
8.3.200.0040.00517.01
8.3.190.0050.00417.66
8.3.180.0130.00816.75
8.3.170.0150.00417.18
8.3.160.0140.00416.89
8.3.150.0060.00317.66
8.3.140.0040.01517.10
8.3.130.0030.00618.72
8.3.120.0060.01321.03
8.3.110.0000.01520.94
8.3.100.0070.00316.98
8.3.90.0040.00418.57
8.3.80.0100.00017.97
8.3.70.0060.00918.61
8.3.60.0110.01117.00
8.3.50.0130.00821.40
8.3.40.0100.01019.07
8.3.30.0070.00719.07
8.3.20.0050.00320.71
8.3.10.0060.00922.10
8.3.00.0080.00018.14
8.2.290.0050.00320.93
8.2.280.0090.01020.58
8.2.270.0040.01516.83
8.2.260.0130.00319.50
8.2.250.0080.00017.42
8.2.240.0000.00917.50
8.2.230.0070.01122.58
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0060.00616.88
8.2.190.0120.00916.86
8.2.180.0070.00718.81
8.2.170.0120.00322.96
8.2.160.0060.00921.54
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0060.00322.80
8.2.120.0090.00026.35
8.2.110.0060.00322.64
8.2.100.0000.01218.28
8.2.90.0000.00917.97
8.2.80.0040.00419.63
8.2.70.0030.00517.88
8.2.60.0000.00818.30
8.2.50.0050.00318.41
8.2.40.0060.00322.65
8.2.30.0080.00019.58
8.2.20.0080.00018.44
8.2.10.0040.00418.68
8.2.00.0000.00718.68
8.1.330.0050.00524.13
8.1.320.0060.01416.30
8.1.310.0180.00016.97
8.1.300.0030.00616.36
8.1.290.0000.00918.88
8.1.280.0090.00925.92
8.1.270.0040.00424.21
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00524.07
8.1.230.0060.00621.41
8.1.220.0080.00018.25
8.1.210.0030.00619.25
8.1.200.0030.00617.72
8.1.190.0000.00817.60
8.1.180.0080.00018.10
8.1.170.0000.00819.14
8.1.160.0050.00219.21
8.1.150.0000.00822.24
8.1.140.0040.00420.04
8.1.130.0030.00319.38
8.1.120.0020.00517.90
8.1.110.0040.00417.88
8.1.100.0000.00917.83
8.1.90.0060.00517.87
8.1.80.0060.00717.88
8.1.70.0110.00217.86
8.1.60.0090.00617.95
8.1.50.0060.00817.90
8.1.40.0100.00417.91
8.1.30.0080.00517.94
8.1.20.0110.00318.04
8.1.10.0100.00417.95
8.1.00.0090.00517.93
8.0.300.0070.00020.54
8.0.290.0040.00417.25
8.0.280.0030.00318.84
8.0.270.0020.00517.57
8.0.260.0030.00321.09
8.0.250.0000.00717.42
8.0.240.0070.00317.44
8.0.230.0030.00717.36
8.0.220.0070.00417.25
8.0.210.0090.00317.27
8.0.200.0070.00517.37
8.0.190.0080.00417.31
8.0.180.0060.00717.27
8.0.170.0070.00617.30
8.0.160.0090.00317.31
8.0.150.0100.00317.26
8.0.140.0060.00517.29
8.0.130.0090.00315.53
8.0.120.0090.00417.33
8.0.110.0110.00217.32
8.0.100.0050.00817.21
8.0.90.0080.00517.34
8.0.80.0110.00517.36
8.0.70.0020.01017.24
8.0.60.0080.00417.31
8.0.50.0080.00417.30
8.0.30.0110.00717.32
8.0.20.0100.00917.52
8.0.10.0090.00217.35
8.0.00.0090.00717.24
7.4.330.0020.00215.55
7.4.320.0040.00416.98
7.4.300.0110.00216.81
7.4.290.0070.00516.93
7.4.280.0070.00416.83
7.4.270.0080.00517.02
7.4.260.0070.00616.95
7.4.250.0090.00416.94
7.4.240.0080.00416.89
7.4.230.0060.00316.92
7.4.220.0030.00716.92
7.4.210.0050.00917.00
7.4.200.0080.00316.82
7.4.190.0120.00417.03
7.4.180.0070.00716.95
7.4.160.0100.00616.88
7.4.150.0120.00517.08
7.4.140.0140.00617.60
7.4.130.0100.01016.97
7.4.120.0130.00816.92
7.4.110.0130.00116.92
7.4.100.0120.00516.92
7.4.90.0100.00716.90
7.4.80.0090.01018.08
7.4.70.0110.00616.92
7.4.60.0070.00816.83
7.4.50.0120.00516.89
7.4.40.0060.00916.76
7.4.30.0070.00516.84
7.4.20.0030.00616.86
7.4.10.0030.00616.67
7.4.00.0080.00215.80
7.3.330.0060.00515.14
7.3.320.0090.00115.18
7.3.310.0060.00516.70
7.3.300.0050.00716.66
7.3.290.0080.00716.80
7.3.280.0070.01116.78
7.3.270.0100.00616.98
7.3.260.0100.00716.76
7.3.250.0090.00916.74
7.3.240.0080.00916.75
7.3.230.0100.00916.62
7.3.220.0150.00016.50
7.3.210.0110.00616.64
7.3.200.0130.00316.75
7.3.190.0120.00716.76
7.3.180.0150.00216.72
7.3.170.0060.00916.70
7.3.160.0100.00616.74
7.3.150.0150.00016.71
7.3.140.0100.00716.71
7.3.130.0100.00616.79
7.3.120.0120.00316.54
7.3.110.0140.00316.63
7.3.100.0100.00716.56
7.3.90.0160.00016.98
7.3.80.0110.00416.64
7.3.70.0170.00016.79
7.3.60.0070.00716.92
7.3.50.0120.00316.84
7.3.40.0100.00716.61
7.3.30.0110.00416.63
7.3.20.0100.00518.61
7.3.10.0050.01018.44
7.3.00.0060.00618.68
7.2.340.0100.00516.82
7.2.330.0090.00816.90
7.2.320.0090.00616.83
7.2.310.0090.00616.86
7.2.300.0130.00616.88
7.2.290.0100.00616.93
7.2.280.0120.00316.88
7.2.270.0080.00816.59
7.2.260.0170.00016.60
7.2.250.0080.00816.83
7.2.240.0110.00516.51
7.2.230.0110.00316.82
7.2.220.0170.00016.86
7.2.210.0070.01116.72
7.2.200.0170.00017.00
7.2.190.0130.00316.84
7.2.180.0140.00316.92
7.2.170.0140.00317.05
7.2.160.0080.00816.93
7.2.150.0140.00418.57
7.2.140.0120.00418.77
7.2.130.0130.00219.00
7.2.120.0110.00618.70
7.2.110.0130.00318.94
7.2.100.0120.00418.69
7.2.90.0080.00918.68
7.2.80.0140.00418.80
7.2.70.0140.00218.71
7.2.60.0080.00717.97
7.2.50.0140.00318.91
7.2.40.0110.00618.64
7.2.30.0140.00418.88
7.2.20.0090.00618.91
7.2.10.0110.00518.73
7.2.00.0130.00318.95
7.1.330.0120.00217.49
7.1.320.0120.00217.70
7.1.310.0150.00017.62
7.1.300.0140.00317.54
7.1.290.0080.00817.57
7.1.280.0150.00017.70
7.1.270.0150.00017.73
7.1.260.0110.00517.67
7.1.250.0080.00817.71
7.1.240.0140.00017.57
7.1.230.0090.00617.66
7.1.220.0140.00017.51
7.1.210.0140.00217.63
7.1.200.0110.00416.93
7.1.190.0100.00517.77
7.1.180.0160.00017.71
7.1.170.0090.00517.43
7.1.160.0050.01017.48
7.1.150.0090.00617.67
7.1.140.0140.00017.53
7.1.130.0120.00217.61
7.1.120.0120.00317.71
7.1.110.0080.00717.71
7.1.100.0110.00217.59
7.1.90.0100.00517.55
7.1.80.0130.00517.68
7.1.70.0080.00617.35
7.1.60.0060.00717.58
7.1.50.0100.00517.55
7.1.40.0160.01126.13
7.1.30.0160.01026.15
7.1.20.0150.01026.08
7.1.10.0100.00617.16
7.1.00.0090.00517.17
7.0.330.0120.00417.46
7.0.320.0110.00417.42
7.0.310.0090.00617.51
7.0.300.0070.00717.41
7.0.290.0150.00017.41
7.0.280.0110.00517.35
7.0.270.0120.00417.28
7.0.260.0110.00317.43
7.0.250.0090.00617.39
7.0.240.0140.00017.61
7.0.230.0120.00417.53
7.0.220.0120.00317.29
7.0.210.0100.00617.31
7.0.200.0060.01117.22
7.0.190.0100.00617.59
7.0.180.0120.00416.92
7.0.170.0060.00916.86
7.0.160.0070.00916.73
7.0.150.0070.00816.93
7.0.140.0110.00316.94
7.0.130.0090.00516.97
7.0.120.0090.00516.98
7.0.110.0070.00716.81
7.0.100.0080.00616.87
7.0.90.0080.00816.87
7.0.80.0020.01116.88
7.0.70.0070.00716.94
7.0.60.0090.00516.79
7.0.50.0080.00716.90
7.0.40.0080.00616.93
7.0.30.0040.01216.94
7.0.20.0100.00316.85
7.0.10.0020.00916.91
7.0.00.0060.00616.88
5.6.400.0140.00016.20
5.6.390.0150.00016.07
5.6.380.0110.00416.17
5.6.370.0070.00716.18
5.6.360.0070.00715.98
5.6.350.0110.00316.11
5.6.340.0100.00516.04
5.6.330.0140.00015.96
5.6.320.0070.00715.95
5.6.310.0120.00316.19
5.6.300.0090.00616.03
5.6.290.0050.00916.16
5.6.280.0030.01116.12
5.6.270.0070.00716.08
5.6.260.0100.00516.20
5.6.250.0110.00416.25
5.6.240.0120.00316.18
5.6.230.0090.00616.23
5.6.220.0070.00716.29
5.6.210.0100.00816.20
5.6.200.0110.00316.21
5.6.190.0110.00316.17
5.6.180.0090.00616.25
5.6.170.0130.00316.14
5.6.160.0100.00516.25
5.6.150.0140.00016.37
5.6.140.0110.00416.21
5.6.130.0100.00516.20
5.6.120.0100.00516.31
5.6.110.0130.00016.18
5.6.100.0080.00516.17
5.6.90.0130.00316.18
5.6.80.0110.00516.18
5.6.70.0120.00416.25
5.6.60.0120.00516.25
5.6.50.0130.00416.03
5.6.40.0050.01016.18
5.6.30.0110.00416.13
5.6.20.0090.00516.04
5.6.10.0130.00015.90
5.6.00.0040.01116.03

preferences:
36.99 ms | 403 KiB | 5 Q