shaam,
The thing is that you have to get a source for data.
PHP is capable of doing many things, reading/writing from local files (csv/xml, etc), databases, and even scraping data from websites.
If you have a source for the data you can do it.. have you thought about where you will find your top 5 stats?