3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DOMDocument(); $dom->loadXML('<dip xmlns="http://itzbund.de/ozg/bzst/post/dip/v1/" version="1.0"/>'); $xpath = new DOMXpath($dom); $xpath->registerNamespace("x", "http://itzbund.de/ozg/bzst/post/dip/v1/"); $elements = $xpath->query("//x:dip"); var_dump($elements); $dom = new DOMDocument(); $dom->loadXML('<dip:dip xmlns:dip="http://itzbund.de/ozg/bzst/post/dip/v1/" version="1.0"/>'); $xpath = new DOMXpath($dom); $xpath->registerNamespace("x", "http://itzbund.de/ozg/bzst/post/dip/v1/"); $elements = $xpath->query("//x:dip"); var_dump($elements);
Output for git.master, git.master_jit
object(DOMNodeList)#4 (1) { ["length"]=> int(1) } object(DOMNodeList)#6 (1) { ["length"]=> int(1) }

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:
58.68 ms | 405 KiB | 5 Q