3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // 1. инициализация $ch = curl_init(); // 2. устанавливаем опции, включая урл curl_setopt($ch, CURLOPT_URL, "http://www.google.com"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); // 3. выполнение запроса и получение ответа $output = curl_exec($ch); // 4. очистка ресурсов curl_close($ch); ?>
based on Wd1nD
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/9Zl30:3 Stack trace: #0 {main} thrown in /in/9Zl30 on line 3
Process exited with code 255.
Output for 5.3.18 - 5.6.21
Fatal error: Call to undefined function curl_init() in /in/9Zl30 on line 3
Process exited with code 255.