3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml=simplexml_load_string(<<<XML <?xml version="1.0" encoding="UTF-8"?> <paymentService version="1.0" xmlns:ns0="http://www.tibco.com/ns/no_namespace_schema_location/Payment/PaymentProcessors/WorldPay_CC/SharedResources/Schemas/paymentService_v1.dtd"> <ns0:submit> <ns0:order> <description>description</description> <amount value="500" currencyCode="EUR" exponent="2"/> <ns0:paymentDetails> <ns0:VISA-SSL> <cardNumber>00009875083428500</cardNumber> <expiryDate> <date month="02" year="2008"/> </expiryDate> <cardHolderName>test</cardHolderName> </ns0:VISA-SSL> <session shopperIPAddress="192.165.22.35" id=""/> </ns0:paymentDetails> <shopper> <browser> <acceptHeader>text/html</acceptHeader> <userAgentHeader>mozilla 5.0</userAgentHeader> </browser> </shopper> </ns0:order> </ns0:submit> </paymentService> XML ); foreach($xml->xpath('/paymentService/ns0:submit/ns0:order/ns0:paymentDetails/ns0:VISA-SSL/cardNumber') as $node) { echo (string)$node; }
Output for git.master, git.master_jit, rfc.property-hooks
00009875083428500

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
56.43 ms | 401 KiB | 8 Q