3v4l.org

run code in 300+ PHP versions simultaneously
<?php // The URL to POST to $url = "https://sandbox.plimus.com/services/2/shoppers/19492086"; // The value for the SOAPAction: header $action = "GET"; $credentials = "API_13866166444551616457841:ArgosR1sk"; $ch = curl_init(); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($ch, CURLOPT_USERPWD, $credentials); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type:application/xml')); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $record = curl_exec($ch); print_r($record); curl_close($ch); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/ap3Cq:13 Stack trace: #0 {main} thrown in /in/ap3Cq on line 13
Process exited with code 255.

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:
46.01 ms | 401 KiB | 8 Q