3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new domDocument(); $dom->strictErrorChecking = false; $dom->recover = true; $html = "https://www.wordproject.org/bibles/am/01/1.htm"; $dom->loadHTML($html); $h2 = $dom->getElementsByTagName("h2"); var_dump($h2); foreach($h2 as $element) { echo $element->ownerDocument->saveHTML($element); }
Output for rfc.property-hooks, git.master, git.master_jit
object(DOMNodeList)#2 (1) { ["length"]=> int(0) }

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:
74.77 ms | 2018 KiB | 4 Q