3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function test($arr) { return $arr; } $array = array('a','b','c'); echo test($array)[0]; ?>
Output for 5.4.0 - 7.1.0
a
Output for 5.3.7 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ',' or ';' in /in/9KfnJ on line 6
Process exited with code 255.