3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 11; $fp = fsockopen("www.baidu.com.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.com\r\n"; $http .= "Connection: Close\r\n\r\n"; fwrite($fp,$http); fclose($fp); echo 22; ?>

preferences:
56.08 ms | 402 KiB | 5 Q