3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test($var) { echo "Test $var\n"; } class foo { var $arr = @array("test"); function bar() { $this->arr[0]('testvalue'); } } $a = new foo(); $a->bar(); ?>
based on AtuH8
Output for 7.0.0 - 7.0.2
Fatal error: Constant expression contains invalid operations in /in/P0jF5 on line 11
Process exited with code 255.
Output for 5.3.21 - 5.6.17
Parse error: syntax error, unexpected '@' in /in/P0jF5 on line 11
Process exited with code 255.