3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(mysql_real_escape_string(null));
based on 3UAkd
Output for 7.0.0 - 7.2.11
Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in /in/GVKV5:3 Stack trace: #0 {main} thrown in /in/GVKV5 on line 3
Process exited with code 255.
Output for hhvm-3.22.0
Warning: supplied argument is not a valid MySQL-Link resource in /in/GVKV5 on line -1 bool(false)
Output for hhvm-3.10.1, hhvm-3.20.2 - 3.21.3
Warning: supplied argument is not a valid MySQL-Link resource in /in/GVKV5 on line 3 bool(false)
Output for hhvm-3.11.1 - 3.19.2
Warning: mysql_real_escape_string() expects parameter 1 to be string, null given in /in/GVKV5 on line 3 NULL
Output for 5.3.21 - 5.6.38
Fatal error: Call to undefined function mysql_real_escape_string() in /in/GVKV5 on line 3
Process exited with code 255.