3v4l.org

run code in 300+ PHP versions simultaneously
<?php $root = new DOMDocument(); $root->loadXML('<foo/>'); $node = new DOMDocument(); $node->loadXML('<bar>baz</bar>'); $node = $root->importNode($node); $root->appendChild($node);
Output for git.master, git.master_jit
Warning: DOMDocument::importNode(): Cannot import: Node Type Not Supported in /in/oGUTT on line 9 Fatal error: Uncaught TypeError: DOMNode::appendChild(): Argument #1 ($node) must be of type DOMNode, bool given in /in/oGUTT:10 Stack trace: #0 /in/oGUTT(10): DOMNode->appendChild(false) #1 {main} thrown in /in/oGUTT on line 10
Process exited with code 255.
Output for rfc.property-hooks
Warning: DOMDocument::importNode(): Cannot import: Node Type Not Supported in /in/oGUTT on line 9 Fatal error: Uncaught TypeError: DOMNode::appendChild(): Argument #1 ($node) must be of type DOMNode, false given in /in/oGUTT:10 Stack trace: #0 /in/oGUTT(10): DOMNode->appendChild(false) #1 {main} thrown in /in/oGUTT on line 10
Process exited with code 255.

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:
66.04 ms | 401 KiB | 8 Q