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);}?>
Output for git.master, git.master_jit, rfc.property-hooks
<?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 tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
37.08 ms | 403 KiB | 8 Q