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->return->authtoken)
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected end of file in /in/kA1u1 on line 18
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/kA1u1 on line 18
Process exited with code 255.

preferences:
182.23 ms | 1395 KiB | 66 Q