use passed in variable to determin php version