3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $strResponse = '<api version="1.0"><response><operation name="ADD_REQUEST"><result><statuscode>200</statuscode><status>Success</status> <message>Request added successfully</message> </result> <details open=""> <workorderid>625398</workorderid> </details> <details open=""> <parameter> <name>workorderid</name> <value>625398</value> </parameter> </details> </operation> </response> </api>'; $responseXml = simplexml_load_string($strResponse); echo $responseXml;
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0alpha1