3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <?xml?> <html> <head><title></title></head> <body> <content>the content</content> </body> </html> XML; $xe = new SimpleXMLElement($xml); echo $xe->content;
Output for git.master, git.master_jit, rfc.property-hooks
Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : XML declaration allowed only at the start of the document in /in/4f9BM on line 11 Warning: SimpleXMLElement::__construct(): <?xml?> in /in/4f9BM on line 11 Warning: SimpleXMLElement::__construct(): ^ in /in/4f9BM on line 11 Fatal error: Uncaught Exception: String could not be parsed as XML in /in/4f9BM:11 Stack trace: #0 /in/4f9BM(11): SimpleXMLElement->__construct('<?xml?>\n<html>\n...') #1 {main} thrown in /in/4f9BM on line 11
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:
39.48 ms | 402 KiB | 8 Q