3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $_SESSION = array(); $_GET = array("token" => "Y", "uid"=> "4", "key"=>"md5"); $_SERVER["REQUEST_URI"] = "/register/Y/4/md5"; $Request = array(); $Request["URI"] = $_SERVER["REQUEST_URI"][0] == "/" ? substr($_SERVER["REQUEST_URI"], 1) : $_SERVER["REQUEST_URI"]; $Request["URI"] = substr($Request["URI"], 0, strlen($Request["URI"]) - strlen("/".$_GET["token"]."/".$_GET["uid"]."/".$_GET["key"]); if($_SESSION["TeachMe-Server"]["loggedin"] !== true && !(substr($RequestURI, 0, strpos("/", $Request["URI"])) == "register" || substr($Results, 0, strpos("/", $Request["URI"])) == "login")) { header("X-API-Status: 40201 Login Required"); die("<pre>".print_r($Request, true)."</pre>"); }
based on Ur383
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.4.32
Parse error: syntax error, unexpected ';' in /in/P9b3h on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected ';' in /in/P9b3h on line 7
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/P9b3h on line 7
Process exited with code 255.