3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Test { function test() { return 1; } } $array = array(1=>new Test, 2=>new Test); var_dump(end($array)->test();
Output for 5.3.0 - 5.4.14
Parse error: syntax error, unexpected ';' in /in/vXmVk on line 11
Process exited with code 255.