3v4l.org

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