3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $URI_Parts = explode('/', $_SERVER['REQUEST_URI']); $URI_FirstSegment = $URI_Parts[0]; print($URI_FirstSegment);
Output for 5.3.0 - 7.1.0
Notice: Undefined index: REQUEST_URI in /in/uIHvL on line 2
Output for 4.3.0 - 5.2.17
Notice: Undefined index: REQUEST_URI in /in/uIHvL on line 2