3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0"?> <response><error code="0" message="" details=""></error><data><item id="12266824" subscriberid="47218" faxtype="0" listid="157750" fileid="858352" filename="" proprity="1" jobstatus="7" filetosend="RF20160912043659_1651144_sb47218.docx" faxnumber="83466727822" attempts="1" attemptsdone="" delay="5" nextattemptstart="2016-09-12 16:36" assigntochanel="-1" tifffilepages="1" notifyonok="0" notify="0" notifyemail="" isdialext="0" dialextval="" dialexttimeout="0" msgsend="0" arrlist="Array" schid="" priority="1"></item></data></response>'; //echo print_r(json_decode(json_encode((array) simplexml_load_string($xml)), 1), 1); function xml2array($xmlObject, $out = array()) { foreach ((array) $xmlObject as $index => $node) $out[$index . 'pref'] = ( is_object($node) ) ? xml2array($node) : $node; return $out; } echo print_r(xml2array(simplexml_load_string($xml)), 1);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [errorpref] => Array ( [@attributespref] => Array ( [code] => 0 [message] => [details] => ) ) [datapref] => Array ( [itempref] => Array ( [@attributespref] => Array ( [id] => 12266824 [subscriberid] => 47218 [faxtype] => 0 [listid] => 157750 [fileid] => 858352 [filename] => [proprity] => 1 [jobstatus] => 7 [filetosend] => RF20160912043659_1651144_sb47218.docx [faxnumber] => 83466727822 [attempts] => 1 [attemptsdone] => [delay] => 5 [nextattemptstart] => 2016-09-12 16:36 [assigntochanel] => -1 [tifffilepages] => 1 [notifyonok] => 0 [notify] => 0 [notifyemail] => [isdialext] => 0 [dialextval] => [dialexttimeout] => 0 [msgsend] => 0 [arrlist] => Array [schid] => [priority] => 1 ) ) ) )

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:
168.98 ms | 411 KiB | 5 Q