3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://www.google.com/"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); if (curl_error($ch)) { $error_msg = curl_error($ch); var_dump($error_msg);exit; } curl_close($ch); var_dump($response);
Output for 7.1.25 - 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.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.25, 8.4.1 - 8.4.12
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/Kt86v:3 Stack trace: #0 {main} thrown in /in/Kt86v on line 3
Process exited with code 255.

preferences:
151.14 ms | 408 KiB | 5 Q