3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(phpversion()); $xml = '<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">" "<CardDetailsTransactionResponse xmlns="https://www.thepaymentgateway.net/"><CardDetailsTransactionResult AuthorisationAttempted="False"><StatusCode>3</StatusCode><Message>Issuer authentication required</Message></CardDetailsTransactionResult><TransactionOutputData CrossReference="130828091805278401583980"><CardTypeData><CardType>VISA</CardType><CardClass>PERSONAL</CardClass><Issuer ISOCode="250">Credit Industriel et Commercial</Issuer></CardTypeData><AmountReceived>2</AmountReceived><ThreeDSecureOutputData><PaREQ>eJxVUstO6zAQ3V/p/oOVPbGdNMGtpkaF8qhES3VJFyyDM0BK44CTkJavv3aS8pC8mHPsM+M5M3C2L3bkA02Vl3rqcZ95BLUqs1w/T71NcnUivDP59w8kLwZxfo+qMShhiVWVPiPJs6m3nv3D94DHY8FDNhaehI6RMGSVNqkfAD1CKzbqJdW1hFS9ny9WkgfhKIpPBdCBgALNYv7Fj4H2BOi0QDnHx7wmV7lOtUJyUe52qGqbuQLa3YMqG12bgxRBDPQIoDE72batnzn5U6/2Vek3r0DdHdDvj60bF1U21z7P5Gq7aVfJ5ecyUYe75GG/3D60y+0mvEsWU6DuBWRpjTJg1gERCMLZhIsJi4B2PKSF+4RkPrM+DADeXI1ZDyz9E4J12dgxHFs4IsD9W6mxF3zFkGGl5Do9FBaRp9KQmeq6nhARcB6Mrm9ZOLbudu+Afjd3ceNmoGprbRyN7OFhHDE3ho5z5XJrHY94X88BoE5FhxnTYRNs9GtD/gNQx8SN</PaREQ><ACSURL>https://gw1.paymentsensegateway.com:4430/ACS/Default.aspx</ACSURL></ThreeDSecureOutputData><GatewayEntryPoints><GatewayEntryPoint EntryPointURL="https://gw1.paymentsensegateway.com:4430/" Metric="100" /><GatewayEntryPoint EntryPointURL="https://gw2.paymentsensegateway.com:4430/" Metric="200" /></GatewayEntryPoints></TransactionOutputData></CardDetailsTransactionResponse>" "</soap:Envelope>'; $XmlDoc = new SimpleXMLElement($xml,LIBXML_NOCDATA); $a = $XmlDoc->CardDetailsTransactionResponse->CardDetailsTransactionResult->StatusCode[0]; var_dump($a);

preferences:
32.03 ms | 402 KiB | 5 Q