3v4l.org

run code in 300+ PHP versions simultaneously
<?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/77BVT on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected '[', expecting ')' in /in/77BVT on line 2
Process exited with code 255.

preferences:
190.52 ms | 1395 KiB | 53 Q