3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xml= <<<EOT <?xml version="1.0" encoding="utf-16"?><result errors="no"><information><ordersCreated><ReferenceId><OrderNumber>TRP-CCT5012598-1</OrderNumber><ShipToContactId>Contact1</ShipToContactId></ReferenceId></ordersCreated></information></result> EOT; simplexml_load_string($xml); print_r($xml) ?>
Output for 5.1.0 - 5.1.1, 5.1.3 - 7.2.6
Warning: simplexml_load_string(): Entity: line 1: parser error : Document labelled UTF-16 but has UTF-8 content in /in/iq8el on line 6 Warning: simplexml_load_string(): <?xml version="1.0" encoding="utf-16"?><result errors="no"><information><ordersC in /in/iq8el on line 6 Warning: simplexml_load_string(): ^ in /in/iq8el on line 6 <?xml version="1.0" encoding="utf-16"?><result errors="no"><information><ordersCreated><ReferenceId><OrderNumber>TRP-CCT5012598-1</OrderNumber><ShipToContactId>Contact1</ShipToContactId></ReferenceId></ordersCreated></information></result>
Output for 5.1.2
Warning: simplexml_load_string(): Entity: line 1: parser error : Document labelled UTF-16 but has UTF-8 content in /in/iq8el on line 7 Warning: simplexml_load_string(): <?xml version="1.0" encoding="utf-16"?><result errors="no"><information><ordersC in /in/iq8el on line 7 Warning: simplexml_load_string(): ^ in /in/iq8el on line 7 <?xml version="1.0" encoding="utf-16"?><result errors="no"><information><ordersCreated><ReferenceId><OrderNumber>TRP-CCT5012598-1</OrderNumber><ShipToContactId>Contact1</ShipToContactId></ReferenceId></ordersCreated></information></result>
Output for 5.0.0 - 5.0.5
Warning: Entity: line 1: parser error : Document labelled UTF-16 but has UTF-8 content in /in/iq8el on line 6 Warning: <?xml version="1.0" encoding="utf-16"?><result errors="no"><information><ordersC in /in/iq8el on line 6 Warning: ^ in /in/iq8el on line 6 <?xml version="1.0" encoding="utf-16"?><result errors="no"><information><ordersCreated><ReferenceId><OrderNumber>TRP-CCT5012598-1</OrderNumber><ShipToContactId>Contact1</ShipToContactId></ReferenceId></ordersCreated></information></result>
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: simplexml_load_string() in /in/iq8el on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.1, 4.4.3 - 4.4.4
Fatal error: Call to undefined function: simplexml_load_string() in /in/iq8el on line 6
Process exited with code 255.
Output for 4.4.2
Fatal error: Call to undefined function: simplexml_load_string() in /in/iq8el on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: simplexml_load_string() in /in/iq8el on line 6