The Hangover Part II had one of the biggest Thursday openings in box office history, taking in $31.7 million yesterday. The Warner Bros. comedy sequel landed the third-highest Thursday opening day gross, behind Star Wars: Episode III - Revenge of the Sith ($50 million) and The Matrix Reloaded ($37.5 million).

That number includes the $10.4 million it earned through midnight screenings, which we reported on yesterday. The studio opened The Hangover Part II in 3,615 theaters, which set a new record for the widest R-rated theater count, in any genre. The Hangover Part II screened in approximately 2,600 theaters for its midnight debut.

Analysts are predicting anywhere between $110 million to $125 million for The Hangover Part II for the five-day holiday weekend frame.

Related: The Hangover Part III Red Band Trailer

Also opening on Thursday was the DreamWorks Animation sequel Kung Fu Panda 2, which took in $5.8 million on its opening day. However, since the movie skews more towards children, and most schools are still in session, Kung Fu Panda 2 is expected to do well over the weekend. Kung Fu Panda 2 is expected to rake in between $65 and $70 million between Thursday and Monday.