3v4l.org

run code in 300+ PHP versions simultaneously
<?php $doc = new DOMDocument('1.0', 'utf8'); $doc->loadxml('<node><a>old content</a><a>2</a></node>'); $productRaw = $doc->getElementsByTagName('a'); print_r($productRaw[0]);
Output for git.master, git.master_jit, rfc.property-hooks
DOMElement Object ( [schemaTypeInfo] => [tagName] => a [firstElementChild] => [lastElementChild] => [childElementCount] => 0 [previousElementSibling] => [nextElementSibling] => (object value omitted) [nodeName] => a [nodeValue] => old content [nodeType] => 1 [parentNode] => (object value omitted) [childNodes] => (object value omitted) [firstChild] => (object value omitted) [lastChild] => (object value omitted) [previousSibling] => [nextSibling] => (object value omitted) [attributes] => (object value omitted) [ownerDocument] => (object value omitted) [namespaceURI] => [prefix] => [localName] => a [baseURI] => / [textContent] => old content )

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:
43.1 ms | 402 KiB | 8 Q