Moved php version check to install function