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($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(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/OcKEL on line 13 Warning: file(): 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/OcKEL on line 13 Warning: file(https://wedstrijdadministratie.scgouda.nl/api/v1/pietvanoosten): Failed to open stream: Operation not permitted in /in/OcKEL on line 13

preferences:
42.75 ms | 407 KiB | 5 Q