3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlStr = <<<EOD <response type='5'> <body order_code='9e8fc2e5-de9b-4dff-a2bd-4175c1063b97' pay_summ='166.37' comiss='7.16' comiss_descr='Комиссия банка: 3 грн + 2,5% от стоимости билета. Сервисный сбор РЦ Министерства транспорта и связи Укр - 18 грн' total_summ='173.53'> <trip-segment ticket='21П-Н1-1847975-1906' creation_time='19.06.2013 08:57:28' num='1' tot_price='166.37' transporte_type='2' tax='3.00'> <places> <place car_num='15' car_type='1040' loc_num='06' /> <place car_num='15' car_type='1040' loc_num='07' /> </places> </trip-segment> </body> </response> EOD; $xmlObj = new SimpleXMLElement($xmlStr); var_dump($xmlObj);
Output for git.master, git.master_jit, rfc.property-hooks
object(SimpleXMLElement)#1 (2) { ["@attributes"]=> array(1) { ["type"]=> string(1) "5" } ["body"]=> object(SimpleXMLElement)#2 (2) { ["@attributes"]=> array(5) { ["order_code"]=> string(36) "9e8fc2e5-de9b-4dff-a2bd-4175c1063b97" ["pay_summ"]=> string(6) "166.37" ["comiss"]=> string(4) "7.16" ["comiss_descr"]=> string(194) "Комиссия банка: 3 грн + 2,5% от стоимости билета. Сервисный сбор РЦ Министерства транспорта и связи Укр - 18 грн" ["total_summ"]=> string(6) "173.53" } ["trip-segment"]=> object(SimpleXMLElement)#3 (2) { ["@attributes"]=> array(6) { ["ticket"]=> string(21) "21П-Н1-1847975-1906" ["creation_time"]=> string(19) "19.06.2013 08:57:28" ["num"]=> string(1) "1" ["tot_price"]=> string(6) "166.37" ["transporte_type"]=> string(1) "2" ["tax"]=> string(4) "3.00" } ["places"]=> object(SimpleXMLElement)#4 (1) { ["place"]=> array(2) { [0]=> object(SimpleXMLElement)#5 (1) { ["@attributes"]=> array(3) { ["car_num"]=> string(2) "15" ["car_type"]=> string(4) "1040" ["loc_num"]=> string(2) "06" } } [1]=> object(SimpleXMLElement)#6 (1) { ["@attributes"]=> array(3) { ["car_num"]=> string(2) "15" ["car_type"]=> string(4) "1040" ["loc_num"]=> string(2) "07" } } } } } } }

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:
54.55 ms | 405 KiB | 8 Q