3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_export(mysql_escape_string("test xx\x00yy")); var_export(mysql_escape_string("xx\nyy")); var_export(mysql_escape_string("xx\ryy")); var_export(mysql_escape_string('xx\yy')); var_export(mysql_escape_string("xx'yy")); var_export(mysql_escape_string('xx"yy')); var_export(mysql_escape_string("xx\x1ayy"));
based on 2vW8X
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function mysql_escape_string() in /in/4mJ3l:3 Stack trace: #0 {main} thrown in /in/4mJ3l on line 3
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Fatal error: Call to undefined function mysql_escape_string() in /in/4mJ3l on line 3
Process exited with code 255.