3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $_POST['search_box'] = 'test'; $search_term = mysql_real_escape_string($_POST["search_box"]); $cols = ['First_Name', 'Last_Name', 'Phone', 'Email', 'Address']; echo($search_term);
based on TN5n0
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in /in/EE2XT:4 Stack trace: #0 {main} thrown in /in/EE2XT on line 4
Process exited with code 255.
Output for 5.4.2 - 5.6.28
Fatal error: Call to undefined function mysql_real_escape_string() in /in/EE2XT on line 4
Process exited with code 255.
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/EE2XT on line 5
Process exited with code 255.