3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<pre><?php $incoming_usernames = array(); $username = 'Bob "Dillan'; # array_push($incoming_usernames["incoming_friendship_request"], $username); $incoming_usernames['incoming_friendship_request'] = $username; $array_string = mysql_escape_string(serialize($incoming_usernames)); var_dump($array_string); ?> </pre>
Output for 7.0.0 - 7.1.0
<pre> Fatal error: Uncaught Error: Call to undefined function mysql_escape_string() in /in/cpVva:11 Stack trace: #0 {main} thrown in /in/cpVva on line 11
Process exited with code 255.
Output for 5.0.0 - 5.6.28
<pre> Fatal error: Call to undefined function mysql_escape_string() in /in/cpVva on line 11
Process exited with code 255.
Output for 4.3.0 - 4.4.9
<pre>string(65) "a:1:{s:27:\"incoming_friendship_request\";s:11:\"Bob \"Dillan\";}" </pre>