3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s =<<<EOS <root> <Formula> <formulaname attr="1.0">Basic</formulaname> <movespeed>1</movespeed> <box>4</box> <chicken>3</chicken> <ducks>1</ducks> <cereal>2</cereal> </Formula> </root> EOS; $xml = simplexml_load_string($s); $arr = (array) $xml; var_dump($arr);
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { ["Formula"]=> object(SimpleXMLElement)#2 (6) { ["formulaname"]=> string(5) "Basic" ["movespeed"]=> string(1) "1" ["box"]=> string(1) "4" ["chicken"]=> string(1) "3" ["ducks"]=> string(1) "1" ["cereal"]=> string(1) "2" } }

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:
34.62 ms | 402 KiB | 8 Q