3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo array_shift((explode(".",$_SERVER['HTTP_HOST'])));
Output for 7.0.0 - 7.3.0rc4
Notice: Undefined index: HTTP_HOST in /in/s03vK on line 2 Notice: Only variables should be passed by reference in /in/s03vK on line 2
Output for 5.3.20 - 5.6.28
Notice: Undefined index: HTTP_HOST in /in/s03vK on line 2