3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(Test::$table); // dumps empty array() class Test { static $table = array( '_0' => 1, '_1' => 1, '_2' => 1,); }
Output for 5.0.0 - 7.2.0
array(3) { ["_0"]=> int(1) ["_1"]=> int(1) ["_2"]=> int(1) }
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected ')', expecting '(' in /in/n7JR2 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected ')', expecting '(' in /in/n7JR2 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `'('' in /in/n7JR2 on line 3
Process exited with code 255.