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 7.0.0 - 7.1.0
Hello World Fatal error: Uncaught Error: Call to undefined function my_real_escape_string() in /in/O4Scr:7 Stack trace: #0 {main} thrown in /in/O4Scr on line 7
Process exited with code 255.
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0
Hello World Fatal error: Call to undefined function my_real_escape_string() in /in/O4Scr on line 7
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Hello World Fatal error: Call to undefined function: my_real_escape_string() in /in/O4Scr on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Hello World Fatal error: Call to undefined function: my_real_escape_string() in /in/O4Scr on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Hello World Fatal error: Call to undefined function: my_real_escape_string() in /in/O4Scr on line 7