3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //To SANITIZE Sql query value use function mysqlCleaner($data) { $data= mysql_real_escape_string($data); $data= stripslashes($data); return $data; //or in one line code //return(stripslashes(mysql_real_escape_string($data))); } //example: $insert="delete from vbtube_tubes WHERE tubeid =1"; $insert= mysqlCleaner($insert); mysql_query($insert);
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in /in/DFfFI:6 Stack trace: #0 /in/DFfFI(15): mysqlCleaner('delete from vbt...') #1 {main} thrown in /in/DFfFI on line 6
Process exited with code 255.
Output for 5.3.22 - 5.6.28
Fatal error: Call to undefined function mysql_real_escape_string() in /in/DFfFI on line 6
Process exited with code 255.