3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $excludes = array('1', '2"'); $excludes = array_map('mysql_real_escape_string', $excludes); print_r($excludes);
based on UfPEi
Output for 5.3.0 - 7.2.0
Warning: array_map() expects parameter 1 to be a valid callback, function 'mysql_real_escape_string' not found or invalid function name in /in/5dp2V on line 4
Output for 5.0.0 - 5.2.17
Warning: array_map(): The first argument, 'mysql_real_escape_string', should be either NULL or a valid callback in /in/5dp2V on line 4
Output for 4.3.2 - 4.4.9
Warning: mysql_real_escape_string(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /in/5dp2V on line 4 Warning: mysql_real_escape_string(): A link to the server could not be established in /in/5dp2V on line 4 Warning: mysql_real_escape_string(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /in/5dp2V on line 4 Warning: mysql_real_escape_string(): A link to the server could not be established in /in/5dp2V on line 4 Array ( [0] => [1] => )
Output for 4.3.0 - 4.3.1
Warning: mysql_real_escape_string() [http://www.php.net/function.mysql-real-escape-string]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /in/5dp2V on line 4 Warning: mysql_real_escape_string() [http://www.php.net/function.mysql-real-escape-string]: A link to the server could not be established in /in/5dp2V on line 4 Warning: mysql_real_escape_string() [http://www.php.net/function.mysql-real-escape-string]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /in/5dp2V on line 4 Warning: mysql_real_escape_string() [http://www.php.net/function.mysql-real-escape-string]: A link to the server could not be established in /in/5dp2V on line 4 Array ( [0] => [1] => )