3v4l.org

run code in 300+ PHP versions simultaneously
<?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>"); }
Output for git.master, git.master_jit
Warning: Undefined array key "TeachMe-Server" in /in/BmaDT on line 9 Warning: Trying to access array offset on value of type null in /in/BmaDT on line 9 Warning: Undefined variable $RequestURI in /in/BmaDT on line 10 Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /in/BmaDT on line 10 Warning: Undefined variable $Results in /in/BmaDT on line 11 Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /in/BmaDT on line 11 Warning: Cannot modify header information - headers already sent by (output started at /in/BmaDT:9) in /in/BmaDT on line 13 <pre>Array ( [URI] => register ) </pre>
Output for rfc.property-hooks
Warning: Undefined array key "TeachMe-Server" in /in/BmaDT on line 9 Warning: Trying to access array offset on null in /in/BmaDT on line 9 Warning: Undefined variable $RequestURI in /in/BmaDT on line 10 Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /in/BmaDT on line 10 Warning: Undefined variable $Results in /in/BmaDT on line 11 Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /in/BmaDT on line 11 Warning: Cannot modify header information - headers already sent by (output started at /in/BmaDT:9) in /in/BmaDT on line 13 <pre>Array ( [URI] => register ) </pre>

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:
42.94 ms | 402 KiB | 8 Q