3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new SimpleXmlElement('<?xml version="1.0" encoding="UTF-8"?><response></response>'); $xml->response->addChild('id_shop', 1234); $xml->response->addChild('result', 0); echo $xml->asXML();
Output for git.master, git.master_jit, rfc.property-hooks
Warning: SimpleXMLElement::addChild(): Cannot add child. Parent is not a permanent member of the XML tree in /in/eWEQV on line 4 Warning: SimpleXMLElement::addChild(): Cannot add child. Parent is not a permanent member of the XML tree in /in/eWEQV on line 5 <?xml version="1.0" encoding="UTF-8"?> <response/>

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.67 ms | 402 KiB | 8 Q