3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php [ 1 => function ($a) { echo $a; } ][1]('foo'); [ 1 => function ($a) { echo $a; } ][1]; function n($o) { return $o; } n([ 1 => function ($a) { echo $a; } ])[1]; function n($o) { return $o; } n([ 1 => function ($a) { echo $a; } ])[1]('foo');
Output for 5.3.0 - 5.4.15
Parse error: syntax error, unexpected '[' in /in/Dh2QB on line 3
Process exited with code 255.