3v4l.org

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