3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = $_SERVER['REQUEST_URI']; $path = parse_url($path, PHP_URL_PATH); $router = new Router([ new Route('/register', 'register.php') ]); $route = $router->route($path); require_once($route->get('controllerName'));
Output for git.master_jit, git.master, rfc.property-hooks
Warning: Undefined array key "REQUEST_URI" in /in/XjAUB on line 3 Deprecated: parse_url(): Passing null to parameter #1 ($url) of type string is deprecated in /in/XjAUB on line 4 Fatal error: Uncaught Error: Class "Router" not found in /in/XjAUB:6 Stack trace: #0 {main} thrown in /in/XjAUB on line 6
Process exited with code 255.

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:
28.52 ms | 406 KiB | 5 Q