3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ECHO 'http://'.$_SERVER['HTTP_HOST'].':'.$_SERVER["SERVER_PORT"]."/LttService/getdata/getdata.json"; ?>
based on 43lYB
Output for 5.3.0 - 7.2.0
Notice: Undefined index: HTTP_HOST in /in/fUb5L on line 2 Notice: Undefined index: SERVER_PORT in /in/fUb5L on line 2 http://:/LttService/getdata/getdata.json
Output for 4.3.0 - 5.2.17
Notice: Undefined index: HTTP_HOST in /in/fUb5L on line 2 Notice: Undefined index: SERVER_PORT in /in/fUb5L on line 2 http://:/LttService/getdata/getdata.json