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; } curl_get_contents; ?>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught Error: Undefined constant "curl_get_contents" in /in/J1vVi:14 Stack trace: #0 {main} thrown in /in/J1vVi on line 14
Process exited with code 255.
Output for 7.2.6 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: Use of undefined constant curl_get_contents - assumed 'curl_get_contents' (this will throw an Error in a future version of PHP) in /in/J1vVi on line 14
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33
Notice: Use of undefined constant curl_get_contents - assumed 'curl_get_contents' in /in/J1vVi on line 14

preferences:
177.94 ms | 402 KiB | 211 Q