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();
Output for git.master, git.master_jit, rfc.property-hooks
<strong>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;KEY RESPONSIBILITIES</strong>

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
150 ms | 406 KiB | 5 Q