3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test_array = array ( 'bla' => 'blub', 'foo' => 'bar', 'another_array' => array ( 'stack' => 'overflow', ), ); $xml = new SimpleXMLElement('<root/>'); array_walk_recursive($test_array, array ($xml, 'addChild')); print $xml->asXML();
Output for git.master_jit, git.master, rfc.property-hooks
<?xml version="1.0"?> <root><blub>bla</blub><bar>foo</bar><overflow>stack</overflow></root>

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