3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( 'id' => 1, 'name' => 'Jacopo', 'male' => true, 'hobbies' => array( 'Programming', 'TV Shows', 'Skiing' ) ); $xml = new SimpleXMLElement('<root/>'); array_walk_recursive($a, array ($xml, 'addChild')); print $xml->asXML();
Output for git.master, git.master_jit, rfc.property-hooks
<?xml version="1.0"?> <root><1>id</1><Jacopo>name</Jacopo><1>male</1><Programming>0</Programming><TV Shows>1</TV Shows><Skiing>2</Skiing></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:
47.8 ms | 401 KiB | 8 Q