Where did this "8 hours" figure come from? I find it funny that people want to get this mysterious 8 hours of sleep while here I'm wanting to sleep less (I routinely get 9-10 hours or even more every night despite drinking coffee 2-3 times).
It's about getting 5 REM-NREM cycles of sleep. [1][2] The exact time varies from person to person and situation to situation, but roughly speaking the cycle takes 90 minutes and 5 * 90 min = 7.5 hours. Add some minutes lying in bed but not yet asleep, and you've got the 8 hours.
The book Why We Sleep mentions some experiments comparing the difference between 8 and 7 hours per night. I haven't looked into the actual studies, but the book suggests that 8 hours of sleep opportunity is the ideal for most people.