3v4l.org

run code in 300+ PHP versions simultaneously
<?php$server_ip = "carsija.topstream.net";$portbase = "19406";if (!is_numeric($portbase)) { print "Invalid port"; exit;}$fp = @fsockopen($server_ip,$portbase,$errno,$errstr,1);if (!$fp) { print "<p>Connection refused, the server appears to be offline.</p>"; exit;} else { fputs($fp, "GET /played.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n"); while (!feof($fp)) { $info = fgets($fp); } $content = get_string_between($info, "Admin Login</a></font></td></tr></table></td></tr></table><br>", "<br><br><table"); print $content; fclose($fp);}function get_string_between($string, $start, $end) { $string = " " . $string; $ini = strpos($string, $start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string, $end, $ini) - $ini; return substr($string, $ini, $len);}?>

This is an error 404

There are `0` results


preferences:
144.89 ms | 1399 KiB | 7 Q