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.3.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 hhvm-3.10.1 - 3.22.0
string(6) "xx\0yy" string(6) "xx\nyy" string(6) "xx\ryy" string(6) "xx\\yy" string(6) "xx\'yy" string(6) "xx\"yy" string(6) "xx\Zyy"
Output for 5.3.18 - 5.6.38
Fatal error: Call to undefined function mysql_escape_string() in /in/9UePg on line 3
Process exited with code 255.