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.3.0 - 5.4.17
Parse error: syntax error, unexpected '[', expecting ')' in /in/j67pH on line 2
Process exited with code 255.