3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url= "https://api.instagram.com/v1/users/2298693825?access_token=2298693825.1677ed0.b27784d7f3494084b156332c1775464e"; function curl_get_contents($url) { $curl = curl_init($url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); $data = curl_exec($curl); curl_close($curl); return $data; } $datafile=curl_get_contents($url); var_dump($datafile) ?>
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/BOvDA:5 Stack trace: #0 /in/BOvDA(14): curl_get_contents('https://api.ins...') #1 {main} thrown in /in/BOvDA on line 5
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Fatal error: Call to undefined function curl_init() in /in/BOvDA on line 5
Process exited with code 255.

preferences:
262.4 ms | 401 KiB | 326 Q