3v4l.org

run code in 300+ PHP versions simultaneously
<?php $userGuid = "ee034881-d641-48e9-935d-b79819ceb83c"; $apiKey = "1XzbK/S/MAzPtkwRtmoUM0CnLWveqIMAkXZGhokuzg5P87lT+cedfeOAqXbgkjGip1X6qnY1mbQdW3DdajUhUw=="; function query($connectorGuid, $input, $userGuid, $apiKey, $additionalInput) { $url = "https://api.import.io/store/connector/" . $connectorGuid . "/_query?_user=" . urlencode($userGuid) . "&_apikey=" . urlencode($apiKey); $data = array("input" => $input); if ($additionalInput) { $data["additionalInput"] = $additionalInput; } $ch = curl_init($url); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json')); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data)); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); $result = curl_exec($ch); curl_close($ch); return json_decode($result); } // Query for tile Betezy Promos $result = query("a31b0662-07ca-44f1-b1ab-76a39d2014d9", array( "webpage/url" => "http://blog.betezy.com.au/category/promotions/", ), $userGuid, $apiKey, false); var_dump($result); // Query for tile Betstar Promos $result = query("b0f3c82d-4983-474b-b911-34bb84cc7569", array( "webpage/url" => "https://www.betstar.com.au/promotions/", ), $userGuid, $apiKey, false); var_dump($result); // Query for tile Bookmaker Promos $result = query("09a2bab1-9615-4281-924f-2e83d88f1a3f", array( "webpage/url" => "https://www.bookmaker.com.au/promotions/", ), $userGuid, $apiKey, false); var_dump($result); // Query for tile Betfred Promos $result = query("7b3a36f8-70ef-400c-a6ee-ec84e660adf3", array( "webpage/url" => "https://m.betfred.com.au/promotions/sports", ), $userGuid, $apiKey, false); var_dump($result); // Query for tile Centrebet Promos $result = query("bc6a4943-61a7-4b94-947e-7fe6751507d2", array( "webpage/url" => "http://centrebet.com/promotions", ), $userGuid, $apiKey, false); var_dump($result); // Query for tile Iasbet Promos $result = query("2721151f-db07-49b6-83bf-f88ca2c1371e", array( "webpage/url" => "http://www.iasbet.com/content/page/latest-promotions-overview/", ), $userGuid, $apiKey, false); var_dump($result); // Query for tile ladbrokes promos $result = query("f6833c85-4a92-47b1-9b96-4c287eac5d24", array( "webpage/url" => "https://www.ladbrokes.com.au/promotions/", ), $userGuid, $apiKey, false); var_dump($result); // Query for tile Luxbet Promos $result = query("2537c316-c0e7-4ad2-a671-01a2097e195d", array( "webpage/url" => "https://www.luxbet.com/staticcontent/promotions", ), $userGuid, $apiKey, false); var_dump($result); // Query for tile Sportingbet Promos $result = query("3971816e-e240-414f-9689-2143028af925", array( "webpage/url" => "https://info.sportingbet.com.au/", ), $userGuid, $apiKey, false); var_dump($result); // Query for tile Tom WH Promos $result = query("e9cb74ff-3a8c-4be1-a23f-8797da1845e7", array( "webpage/url" => "http://info.tomwaterhouse.com/", ), $userGuid, $apiKey, false); var_dump($result); // Query for tile SportsBet Promos $result = query("5967d9a8-456c-4f79-ab83-e27781408eef", array( "webpage/url" => "http://www.sportsbet.com.au/content/page/offers/", ), $userGuid, $apiKey, false); var_dump($result); // Query for tile Unibet Promos $result = query("1ce3343a-9b7b-458f-b2a5-580a324e1dcc", array( "webpage/url" => "https://www.unibet.com.au/promotions", ), $userGuid, $apiKey, false); var_dump($result);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/ab0mu:15 Stack trace: #0 /in/ab0mu(28): query('a31b0662-07ca-4...', Array, 'ee034881-d641-4...', '1XzbK/S/MAzPtkw...', false) #1 {main} thrown in /in/ab0mu on line 15
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.05 ms | 401 KiB | 8 Q