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 my_real_escape_string(trim($_SERVER['HTTP_USER_AGENT']); echo 'Hello World'; ?>
Output for 5.3.0 - 5.4.24
Parse error: syntax error, unexpected ';' in /in/6NqLB on line 7
Process exited with code 255.