3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_SESSION = array(); $_SERVER["REQUEST_URI"] = "/register/Y/4/md5"; $Request = array(); $Request["URI"] = $_SERVER["REQUEST_URI"][0] == "/" ? substr($_SERVER["REQUEST_URI"], 1) : $_SERVER["REQUEST_URI"]; 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/Ur383 on line 7 Warning: Trying to access array offset on value of type null in /in/Ur383 on line 7 Warning: Undefined variable $RequestURI in /in/Ur383 on line 8 Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /in/Ur383 on line 8 Warning: Undefined variable $Results in /in/Ur383 on line 9 Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /in/Ur383 on line 9 Warning: Cannot modify header information - headers already sent by (output started at /in/Ur383:7) in /in/Ur383 on line 11 <pre>Array ( [URI] => register/Y/4/md5 ) </pre>
Output for rfc.property-hooks
Warning: Undefined array key "TeachMe-Server" in /in/Ur383 on line 7 Warning: Trying to access array offset on null in /in/Ur383 on line 7 Warning: Undefined variable $RequestURI in /in/Ur383 on line 8 Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /in/Ur383 on line 8 Warning: Undefined variable $Results in /in/Ur383 on line 9 Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /in/Ur383 on line 9 Warning: Cannot modify header information - headers already sent by (output started at /in/Ur383:7) in /in/Ur383 on line 11 <pre>Array ( [URI] => register/Y/4/md5 ) </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:
50.77 ms | 402 KiB | 8 Q