3v4l.org

run code in 300+ PHP versions simultaneously
<?php $serviceURL = "https://development.avalara.net"; $accountNumber = "1234567890"; $licenseKey = "A1B2C3D4E5F6G7H8"; $uri = $_POST['uri']; $method = $_POST['method']; $request = $_POST['request']; $url = $serviceURL . "/1.0/" . $uri; $curl = curl_init(); curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($curl, CURLOPT_USERPWD, $accountNumber . ":" . $licenseKey); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); if ($method == 'POST') { curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $request); } $curl_response = curl_exec($curl); curl_close($curl); echo $curl_response; ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "uri" in /in/aksbv on line 5 Warning: Undefined array key "method" in /in/aksbv on line 6 Warning: Undefined array key "request" in /in/aksbv on line 7 Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/aksbv:9 Stack trace: #0 {main} thrown in /in/aksbv on line 9
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:
42.74 ms | 401 KiB | 8 Q