3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server['REQUEST_URI'] = '/index.php?x/'; $server['HTTP_HOST'] = 'neos.dev'; $host = isset($server['HTTP_HOST']) ? $server['HTTP_HOST'] : 'localhost'; $requestUri = isset($server['REQUEST_URI']) ? $server['REQUEST_URI'] : '/'; $requestUri = str_replace('/index.php', '', $requestUri); $uriString = 'http://' . $host . $requestUri; $uriParts = parse_url($uriString); var_dump($uriParts);
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { ["scheme"]=> string(4) "http" ["host"]=> string(8) "neos.dev" ["query"]=> string(2) "x/" }

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