It isn't in fact the second best university in the world, Harvard, Yale and Oxford are all rated higher, and there may even be a few more. Look on the Times Higher Ed site to check it.
However, it is extremely hard to get a PhD at Cambridge, you would almost certainly need a 1st and good experience as well, at best you would need a 1st and a very good project.