3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = '<Auth uid="999999990019" tid="public" ac="public" sa="public" ver="1.5" lk="MKg8njN6O+QRUmYF+TrbBUCqlrCnbN/Ns6hYbnnaOk99e5UGNhhE/xQ=" txn="ilXwVcqzpZNSBMHG5W5/+y/FcfOPAoA7SYHVRNtNIx8=&#10;"><Skey ci="20150922">w7Ze8431BC0g5d/v4vJhH/38ZukDDfau5RrTaWV8hxdr1StjdD/WNSadThrOVE/yuDXL3i0piCNM7sbVnEdDPE+gobEAdwSlwob8ypYeNNh5b6SIIE7hKkJFBGbMy/8Cbcp9llqLH2zRaP78NM9LcRfoXjz02TOfx35RJdBGhzh5OESdiz60Mp7yJ5PbQdgAYqKvK0iW3z7kItuc6GduZiZCoiRiRSAX4nglYBi5vLV+DNuF0OaefJV5hAu4o4qqhBFkF7IoWP58t2w5Lju0vrR+WquMW9AZl4BnBqHpCdpNFTgQbfhWNL9axfeIqB4ctz2QZOENwnIjBCMR+hyJFQ==</Skey><Uses pi="n" pa="n" pfa="n" bio="y" bt="FMR" pin="n" otp="n"/><Data>+gNeHgNW8biLFLZ/Ha0p6FJZ6/+CkORBIbt2lc2OSfbCu4zDbRhTe72piCO/4GUnCW0UL7Ah03Epx2J5AH/Q1Wqxb86eVVHkgDanMkBO4LZXmhIbeMDnAp0xxTTVF5LI15lxOGmd3onjeq0eExwHow==</Data><Hmac>aRQ6EIxtiAFVZSz1CHtdGKr4t3LpKqJ5jeFxLUt0IqvLN3h0LTQcgiPARabNHAhY</Hmac><Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><DigestValue>xmdFH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VoPjFc2Al2odjToZdFN8+/upJnBH02TRb1Wq63OtcuyBIFA==</X509Certificate><X509SubjectName>CN=Public AUA,OU=Public,O=Public AUA,L=Bangalore,ST=KA,C=IN</X509SubjectName></X509Data></KeyInfo></Signature></Auth>'; //print_r($data); $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, 'http://auth.uidai.gov.in/1.6/public/9/9/MKg8njN6O+QRUmYF+TrbBUCqlrCnbN/Ns6hYbnnaOk99e5UGNhhE/xQ='); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $data); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true); $out = curl_exec( $ch); Header ("Content-type: text/xml"); //echo $out; print_r($out); ?>
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/BkT4r:7 Stack trace: #0 {main} thrown in /in/BkT4r on line 7
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Call to undefined function curl_init() in /in/BkT4r on line 7
Process exited with code 255.