3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo mysql_real_escape_string("SELECT _%asdf from user where user=%s", "_");
based on qFiWo
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in /in/Bbgqj:3 Stack trace: #0 {main} thrown in /in/Bbgqj on line 3
Process exited with code 255.
Output for hhvm-3.10.1 - 3.11.1, hhvm-3.13.2 - 3.17.3
Warning: mysql_real_escape_string() expects parameter 2 to be resource, string given in /in/Bbgqj on line 3
Output for hhvm-3.12.14

Process exited with code 137.
Output for 5.4.0 - 5.6.30
Fatal error: Call to undefined function mysql_real_escape_string() in /in/Bbgqj on line 3
Process exited with code 255.