relocate list of php versions validation so --version and --help can always be invoked