3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?hh enum MyEnum : string { Foo = 'bar'; Baz = 'bat'; } var_dump(get_class_methods('Vector'));
based on F34pe
Output for 5.4.34
Parse error: syntax error, unexpected 'enum' (T_STRING) in /in/TMVCM on line 3
Process exited with code 255.
Output for 5.4.0 - 5.4.32
<?hh enum MyEnum : string { Foo = 'bar'; Baz = 'bat'; } var_dump(get_class_methods('Vector'));