3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path_info = $_SERVER['PATH_INFO'] // If PATH_INFO isn't enabled, strip everything up to and including 'index.php/' off the full URI ?: substr($_SERVER['REQUEST_URI'], strpos($_SERVER['REQUEST_URI'], 'index.php') + 10); $uri_args = explode('/', $path_info);

preferences:
46.43 ms | 402 KiB | 5 Q