A Ph D or D Phil is a postgraduate degree obtained by conducting research in any academic subject and writing a thesis, a lengthy scholarly text. Most holders of Ph Ds are not medical doctors.
A degree in medicine (MB ChB or variants thereof) usually takes five years to obtain.
Specialisation in a particular field of medicine requires further training over several years while working as a junior doctor.