3v4l.org

run code in 300+ PHP versions simultaneously
<?php $uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); $base = dirname($_SERVER['SCRIPT_NAME']); if (0 === strpos($uri, $base)) { $baseuri = substr($uri, strlen($base)); } var_dump($baseuri);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "REQUEST_URI" in /in/VjLBs on line 3 Deprecated: parse_url(): Passing null to parameter #1 ($url) of type string is deprecated in /in/VjLBs on line 3 Warning: Undefined variable $baseuri in /in/VjLBs on line 11 NULL

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:
51.59 ms | 401 KiB | 8 Q