3v4l.org

run code in 200+ 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]; }, $user_meta );
Output for 5.4.0 - 5.6.38, 7.0.0 - 7.2.12
Parse error: syntax error, unexpected ')', expecting '(' in /in/hORqa on line 2
Process exited with code 255.
Output for hhvm-3.22.0
Fatal error: Uncaught Error: syntax error, unexpected ')', expecting '(' in /in/hORqa:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.11.1 - 3.21.3
Fatal error: Uncaught Error: syntax error, unexpected ')', expecting '(' in /in/hORqa:2 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.1
Fatal error: syntax error, unexpected ')', expecting '(' in /in/hORqa on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/hORqa on line 2
Process exited with code 255.