Simplify PHP version check

Opened against integration branch as requested in #2274