3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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) ?>
based on J1vVi
Output for 7.0.0 - 7.2.0
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.3.20 - 5.6.28
Fatal error: Call to undefined function curl_init() in /in/BOvDA on line 5
Process exited with code 255.