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]; }, $user_meta );
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.38, 7.0.0 - 7.0.32, 7.1.0 - 7.1.24, 7.2.0 - 7.2.12
Parse error: syntax error, unexpected ')', expecting '(' in /in/7kUJ9 on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/7kUJ9 on line 2
Process exited with code 255.

preferences:
296.2 ms | 1395 KiB | 232 Q