3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlString = <<<EOF <soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:body> <ns2:getauthresponse xmlns:ns2="http://dpd.com/common/service/types/LoginService/2.0" xmlns:ns3="http://dpd.com/common/service/exceptions"> <return> <delisid>thedelisid</delisid> <customeruid>thecustomerid</customeruid> <authtoken>theauthenticationcode</authtoken> <depot>thedepot</depot> </return> </ns2:getauthresponse> </soap:body> </soap:envelope> EOF; $xml = new SimpleXMLElement($xmlString); print_r($xml->body);

preferences:
34.15 ms | 402 KiB | 5 Q