3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = simplexml_load_string('<?xml version="1.0" encoding="UTF-8"?><item><DATA>123</DATA><S>S</S></item>'); $xml->addChild('SS', 'SS'); $xml->addChild('S', 'S Edited'); var_dump($xml); var_dump($xml->SS);
Output for git.master_jit, git.master
object(SimpleXMLElement)#1 (3) { ["DATA"]=> string(3) "123" ["S"]=> array(2) { [0]=> string(1) "S" [1]=> string(8) "S Edited" } ["SS"]=> string(2) "SS" } object(SimpleXMLElement)#2 (1) { [0]=> string(2) "SS" }

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:
57.29 ms | 406 KiB | 5 Q