3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = <<<EOT <?xml version="1.0" encoding="UTF-8"?> <Response> <Errors> <Error> <ErrorId>XML999</ErrorId> <ErrorText><![CDATA[cvc-complex-type: Invalid content was found starting with XXX. One of '{XXX}' is expected.]]></ErrorText> </Error> </Errors> </Response> EOT; $xml = simplexml_load_string($s); echo $xml->Errors->Error->ErrorId.PHP_EOL; echo $xml->Errors->Error->ErrorText.PHP_EOL; echo var_dump($xml);
Output for git.master, git.master_jit, rfc.property-hooks
XML999 cvc-complex-type: Invalid content was found starting with XXX. One of '{XXX}' is expected. object(SimpleXMLElement)#1 (1) { ["Errors"]=> object(SimpleXMLElement)#4 (1) { ["Error"]=> object(SimpleXMLElement)#2 (2) { ["ErrorId"]=> string(6) "XML999" ["ErrorText"]=> object(SimpleXMLElement)#3 (0) { } } } }

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