3v4l.org

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