Fixed `array()` usage and added `HHVM_VERSION` check