3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user_meta = array ( ['interest'] => array ( ['0'] => ) ['type'] => array ( [0] => array ) ['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.4.0 - 5.4.17
Parse error: syntax error, unexpected ')' in /in/tDTg1 on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected '[', expecting ')' in /in/tDTg1 on line 2
Process exited with code 255.

preferences:
183.18 ms | 1386 KiB | 53 Q