Check PHP version and command line invocation