3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DOMDocument(); $created = $dom->createComment('foo'); $imported = $dom->importNode($created, TRUE); var_dump($imported);
Output for git.master, git.master_jit, rfc.property-hooks
object(DOMComment)#2 (20) { ["data"]=> string(3) "foo" ["length"]=> int(3) ["previousElementSibling"]=> NULL ["nextElementSibling"]=> NULL ["nodeName"]=> string(8) "#comment" ["nodeValue"]=> string(3) "foo" ["nodeType"]=> int(8) ["parentNode"]=> NULL ["childNodes"]=> string(22) "(object value omitted)" ["firstChild"]=> NULL ["lastChild"]=> NULL ["previousSibling"]=> NULL ["nextSibling"]=> NULL ["attributes"]=> NULL ["ownerDocument"]=> string(22) "(object value omitted)" ["namespaceURI"]=> NULL ["prefix"]=> string(0) "" ["localName"]=> NULL ["baseURI"]=> NULL ["textContent"]=> string(3) "foo" }

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