3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array( "foo" => "bar", "bar" => "foo", ); echo $array; echo "lalala"; echo mysql_real_escape_string($array); ?>
based on 44VBv
Output for 7.0.0 - 7.2.0
Notice: Array to string conversion in /in/NL8Ck on line 7 Arraylalala Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in /in/NL8Ck:9 Stack trace: #0 {main} thrown in /in/NL8Ck on line 9
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Notice: Array to string conversion in /in/NL8Ck on line 7 Arraylalala Fatal error: Call to undefined function mysql_real_escape_string() in /in/NL8Ck on line 9
Process exited with code 255.
Output for 5.3.19 - 5.3.29
Arraylalala Fatal error: Call to undefined function mysql_real_escape_string() in /in/NL8Ck on line 9
Process exited with code 255.