Enumerations for PHP 5 (without SplEnum)