3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Test{ public static $types= array('admin', 'customer'); } var $key = 'Test'; var_dump({$key}::$types);
Output for 5.4.0 - 5.4.7
Parse error: syntax error, unexpected 'var' (T_VAR) in /in/uWrM3 on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.17
Parse error: syntax error, unexpected T_VAR in /in/uWrM3 on line 6
Process exited with code 255.