3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo preg_replace("/^//", "", $_SERVER['PATH_INFO']);
based on UKeY9
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined index: PATH_INFO in /in/mHbJJ on line 2 Warning: preg_replace(): Unknown modifier '/' in /in/mHbJJ on line 2
Output for hhvm-3.12.0
Notice: Undefined index: PATH_INFO in /in/mHbJJ on line 2 Warning: Unknown modifier '/': [/^//] in /in/mHbJJ on line 2
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.11 - 5.2.17
Notice: Undefined index: PATH_INFO in /in/mHbJJ on line 2 Warning: preg_replace(): Unknown modifier '/' in /in/mHbJJ on line 2
Output for 4.3.0 - 4.3.10
Notice: Undefined index: PATH_INFO in /in/mHbJJ on line 2 Warning: Unknown modifier '/' in /in/mHbJJ on line 2