3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $URI_Parts = explode('/', $_SERVER['REQUEST_URI']); $URI_FirstSegment = $URI_Parts[0]; echo URI_FirstSegment;
Output for 5.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Notice: Undefined index: REQUEST_URI in /in/qsY0l on line 2 Notice: Use of undefined constant URI_FirstSegment - assumed 'URI_FirstSegment' in /in/qsY0l on line 4 URI_FirstSegment
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.2.17
Notice: Undefined index: REQUEST_URI in /in/qsY0l on line 2 Notice: Use of undefined constant URI_FirstSegment - assumed 'URI_FirstSegment' in /in/qsY0l on line 4 URI_FirstSegment