3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $urlInfo = parse_url($_SERVER['REQUEST_URI']); $info = explode('/', $urlInfo['path']);
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc3
Notice: Undefined index: REQUEST_URI in /in/vV2jc on line 2
Output for hhvm-3.15.4
Notice: Undefined index: REQUEST_URI in /in/vV2jc on line 2 Warning: parse_url() expects parameter 1 to be string, null given in /in/vV2jc on line 2 Warning: explode() expects parameter 2 to be string, null given in /in/vV2jc on line 3