3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test() { echo "Testing..."; } class foo { var $arr = array("test"); function bar() { ($this->arr[0])(); } } $foo = new foo; $foo->bar();
based on Xuuj2
Output for 7.0.0 - 7.2.0
Testing...
Output for 5.3.21 - 5.6.21
Parse error: syntax error, unexpected '(' in /in/Osb8l on line 12
Process exited with code 255.