3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$endpoint = 'https://wedstrijdadministratie.scgouda.nl/api/v1/pietvanoosten'; //$ch = curl_init(); //curl_setopt($ch, CURLOPT_URL, $endpoint); //curl_setopt($ch, CURLOPT_POST, true); //curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //curl_setopt($ch, CURLOPT_POSTFIELDS, []); //$response = curl_exec($ch); //curl_close($ch); //$response = json_decode($response); //echo $response; $url = 'https://wedstrijdadministratie.scgouda.nl/api/v1/pietvanoosten'; $data = file_get_contents($url); echo $data;
Output for 8.0.28, 8.2.0 - 8.2.27, 8.3.0 - 8.3.16, 8.4.1 - 8.4.3
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/2hbZD on line 13 Warning: file_get_contents(): open_basedir restriction in effect. File(https://wedstrijdadministratie.scgouda.nl/api/v1/pietvanoosten) is not within the allowed path(s): (/tmp:/in:/etc) in /in/2hbZD on line 13 Warning: file_get_contents(https://wedstrijdadministratie.scgouda.nl/api/v1/pietvanoosten): Failed to open stream: Operation not permitted in /in/2hbZD on line 13

preferences:
46.03 ms | 408 KiB | 5 Q