change of version checks to use PHP_VERSION_ID constant.

This was discussed in #zftalk.dev. PR created as result.