3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $xml = SimpleXmlElement("<response type='5'> <body order_code='9ee56c2e5-de9b-4d13-a2bd-4175c6f43b97' 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' /> </places> </trip-segment> </body> </response>"); var_dump($xml->body->order_code);
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function SimpleXmlElement() in /in/hevrb:2 Stack trace: #0 {main} thrown in /in/hevrb on line 2
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Fatal error: Call to undefined function SimpleXmlElement() in /in/hevrb on line 10
Process exited with code 255.
Output for 5.0.0 - 5.6.28
Fatal error: Call to undefined function SimpleXmlElement() in /in/hevrb on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: simplexmlelement() in /in/hevrb on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: simplexmlelement() in /in/hevrb on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: simplexmlelement() in /in/hevrb on line 2