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.2.0 - 8.2.27, 8.3.0 - 8.3.16, 8.4.1 - 8.4.3
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/VFAvZ:3 Stack trace: #0 {main} thrown in /in/VFAvZ on line 3
Process exited with code 255.

preferences:
41.7 ms | 406 KiB | 5 Q