Add default php version to factory method