3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $user_meta = array ( 'interest' => array ( '0' => ''), 'type' => array ( [0] => ''), 'user_status' => array ( [0] => 'deny'), 'firstname' => array ( [0] => ''),'lastname' => array ( [0] => 'B' ) , 'email' => 'email@cc.com' ) $user_meta = (object)$user_meta; $names = array_map( function($person) { return $person[0]; }, (array)$user_meta );
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected '$user_meta' (T_VARIABLE) in /in/STDNh on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected '[', expecting ')' in /in/STDNh on line 3
Process exited with code 255.