marc-mabe / php-enum

Simple and fast implementation of enumerations with native PHP
BSD 3-Clause "New" or "Revised" License
464 stars 36 forks source link

Optimize performance by using new language features #69

Closed marc-mabe closed 7 years ago

marc-mabe commented 8 years ago

Run some benchmarks to find out how to optimize this library by using new language features of PHP. If we find something providing good performance hit we can discuss if we want to bump up the min. required PHP version for this library.

marc-mabe commented 7 years ago

The minimum PHP version required has been increased to PHP-5.6. The following PHP features are in use now:

Of course PHP-7.x is fully supported but this lib still works with PHP-5.6 and with HHVM. (The last PHP version supported by HHVM is PHP-5.6)