3v4l.org

run code in 300+ PHP versions simultaneously
<?php $oDOMElement = new DOMElement('balise'); var_dump($oDOMElement); ?>
Output for 8.1rc1
object(DOMElement)#1 (22) { ["schemaTypeInfo"]=> NULL ["tagName"]=> string(6) "balise" ["firstElementChild"]=> NULL ["lastElementChild"]=> NULL ["childElementCount"]=> int(0) ["previousElementSibling"]=> NULL ["nextElementSibling"]=> NULL ["nodeName"]=> string(6) "balise" ["nodeValue"]=> string(0) "" ["nodeType"]=> int(1) ["parentNode"]=> NULL ["childNodes"]=> string(22) "(object value omitted)" ["firstChild"]=> NULL ["lastChild"]=> NULL ["previousSibling"]=> NULL ["nextSibling"]=> NULL ["attributes"]=> string(22) "(object value omitted)" ["namespaceURI"]=> NULL ["prefix"]=> string(0) "" ["localName"]=> string(6) "balise" ["baseURI"]=> NULL ["textContent"]=> string(0) "" }
Output for 8.0.0 - 8.0.11
object(DOMElement)#1 (22) { ["tagName"]=> string(6) "balise" ["schemaTypeInfo"]=> NULL ["firstElementChild"]=> NULL ["lastElementChild"]=> NULL ["childElementCount"]=> int(0) ["previousElementSibling"]=> NULL ["nextElementSibling"]=> NULL ["nodeName"]=> string(6) "balise" ["nodeValue"]=> string(0) "" ["nodeType"]=> int(1) ["parentNode"]=> NULL ["childNodes"]=> string(22) "(object value omitted)" ["firstChild"]=> NULL ["lastChild"]=> NULL ["previousSibling"]=> NULL ["nextSibling"]=> NULL ["attributes"]=> string(22) "(object value omitted)" ["namespaceURI"]=> NULL ["prefix"]=> string(0) "" ["localName"]=> string(6) "balise" ["baseURI"]=> NULL ["textContent"]=> string(0) "" }
Output for 7.0.20, 7.1.5 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.30, 7.4.0 - 7.4.23
object(DOMElement)#1 (17) { ["tagName"]=> string(6) "balise" ["schemaTypeInfo"]=> NULL ["nodeName"]=> string(6) "balise" ["nodeValue"]=> string(0) "" ["nodeType"]=> int(1) ["parentNode"]=> NULL ["childNodes"]=> string(22) "(object value omitted)" ["firstChild"]=> NULL ["lastChild"]=> NULL ["previousSibling"]=> NULL ["nextSibling"]=> NULL ["attributes"]=> string(22) "(object value omitted)" ["namespaceURI"]=> NULL ["prefix"]=> string(0) "" ["localName"]=> string(6) "balise" ["baseURI"]=> NULL ["textContent"]=> string(0) "" }
Output for 5.6.0 - 5.6.29, 7.0.0 - 7.0.14, 7.1.0
object(DOMElement)#1 (16) { ["tagName"]=> string(6) "balise" ["schemaTypeInfo"]=> NULL ["nodeName"]=> string(6) "balise" ["nodeValue"]=> string(0) "" ["nodeType"]=> int(1) ["parentNode"]=> NULL ["childNodes"]=> string(22) "(object value omitted)" ["firstChild"]=> NULL ["lastChild"]=> NULL ["previousSibling"]=> NULL ["attributes"]=> string(22) "(object value omitted)" ["namespaceURI"]=> NULL ["prefix"]=> string(0) "" ["localName"]=> string(6) "balise" ["baseURI"]=> NULL ["textContent"]=> string(0) "" }

preferences:
62.08 ms | 538 KiB | 14 Q