Improve php role to choose version