3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<pre><?php $incoming_usernames = array(); $username = 'Bob'; # array_push($incoming_usernames["incoming_friendship_request"], $username); $incoming_usernames['incoming_friendship_request'] = $username; $array_string = serialize($incoming_usernames); var_dump($array_string); ?> </pre>
Output for 4.3.0 - 7.1.0
<pre>string(51) "a:1:{s:27:"incoming_friendship_request";s:3:"Bob";}" </pre>