3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_data($url) { $ch = curl_init(); $timeout = 5; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $data = curl_exec($ch); curl_close($ch); return $data; } $returned_content = get_data('http://78.46.104.123:8000/feed/stoc'); var_dump($returned_content); ?>

preferences:
34.13 ms | 402 KiB | 5 Q