Support different PHP versions