3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(mysql_escape_string("test xx\x00yy")); var_export(mysql_escape_string("test xx\x00yy")); var_dump(mysql_escape_string('test xx\x00yy')); 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 uMhQ9
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function mysql_escape_string() in /in/gdSTg:3 Stack trace: #0 {main} thrown in /in/gdSTg on line 3
Process exited with code 255.
Output for 5.3.18 - 5.6.21
Fatal error: Call to undefined function mysql_escape_string() in /in/gdSTg on line 3
Process exited with code 255.