3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = '<?xml version="1.0" encoding="UTF-8"?><checkOrderResponse performedDatetime="2017-07-09T16:11:52+03:00" code="0" invoiceId="2000729266842" shopId="45951"/>'; $data = new SimpleXMLElement($x); echo $data->asXML();
Output for 5.6.30, hhvm-3.15.4 - 3.22.0, 7.0.0 - 7.2.9
<?xml version="1.0" encoding="UTF-8"?> <checkOrderResponse performedDatetime="2017-07-09T16:11:52+03:00" code="0" invoiceId="2000729266842" shopId="45951"/>