3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php array_map( function ($string) { array_map( function ($token) { if (is_array($token)) { echo token_name($token[0]) . ', '; } }, token_get_all($text) ) }, array ('<?php $a = array (1);', '<?php $a = [1]') );
Output for 5.3.0 - 5.4.24
Parse error: syntax error, unexpected '}' in /in/lOZee on line 12
Process exited with code 255.