3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?hh enum Sara: int as int { Drunk = 1; High = 2; Normal = 3; } var_dump((int)Sara::High);
based on 0Rc3b
Output for 5.4.0 - 5.4.32
<?hh enum Sara: int as int { Drunk = 1; High = 2; Normal = 3; } var_dump((int)Sara::High);