3v4l.org

run code in 500+ PHP versions simultaneously
<?php $xml = new DOMDocument; $xslt = $xml->createProcessingInstruction('xml-stylesheet', 'type="text/xsl" href="xml2html.xsl"'); $xml->appendChild($xslt); $xml->appendChild( $xml->importNode( (new DOMDocument)->loadXml('<foo>Foo</foo>') ) ); echo $xml->saveXML();
Output for git.master, git.master_jit
Fatal error: Uncaught TypeError: DOMDocument::importNode(): Argument #1 ($node) must be of type DOMNode, bool given in /in/p9JCg:8 Stack trace: #0 /in/p9JCg(8): DOMDocument->importNode(true) #1 {main} thrown in /in/p9JCg on line 8
Process exited with code 255.
Output for rfc.property-hooks
Fatal error: Uncaught TypeError: DOMDocument::importNode(): Argument #1 ($node) must be of type DOMNode, true given in /in/p9JCg:8 Stack trace: #0 /in/p9JCg(8): DOMDocument->importNode(true) #1 {main} thrown in /in/p9JCg on line 8
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:
126.64 ms | 1728 KiB | 4 Q