3v4l.org

run code in 300+ PHP versions simultaneously
<?php $thing = simplexml_load_string( '<thing> <node n="1"><child/></node> </thing>' ); $dom_thing = dom_import_simplexml($thing); $dom_node = dom_import_simplexml($thing->node); $dom_new = $dom_thing->appendChild($dom_node->cloneNode(true)); $new_node = simplexml_import_dom($dom_new); $new_node['n'] = 2; echo $thing->asXML();
Output for git.master, git.master_jit, rfc.property-hooks
<?xml version="1.0"?> <thing> <node n="1"><child/></node> <node n="2"><child/></node></thing>

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:
38.34 ms | 401 KiB | 8 Q