3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //$link = mysql_connect('localhost', 'root', '') or die('ERROR: ' . mysql_error()); //$sel = mysql_select_db(DB_NAME, $link) or die('ERROR: ' . mysql_error()); echo 'Hello World'; echo $_SERVER['HTTP_USER_AGENT']; echo 'Hello World'; ?>
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Hello World Notice: Undefined index: HTTP_USER_AGENT in /in/7HnrN on line 7 Hello World
Output for 4.3.0 - 5.2.17
Hello World Notice: Undefined index: HTTP_USER_AGENT in /in/7HnrN on line 7 Hello World