3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fp = fsockopen("www.baidu.com", 80, $errno, $errstr, 30); if (!$fp) die('error fsockopen'); stream_set_blocking($fp,0); $http = "GET /index.php / HTTP/1.1\r\n"; $http .= "Host: www.baidu.com\r\n"; $http .= "Connection: Close\r\n\r\n"; fwrite($fp,$http); fclose($fp); ?>

preferences:
47.26 ms | 402 KiB | 5 Q