3v4l.org

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