Credit: Jaap Buitendijk/Warner Bros. Pictures

Box office magic!

Harry Potter and the Deathly Hallows Part 2 earned a staggering $475.6 million worldwide in its opening weekend, making it the best showing of all time.

According to the Hollywood Reporter, the previous opening weekend record holder was 2009's Harry Potter and the Half-Blood Prince, which brought in $394 million worldwide in its opening weekend.

Deathly Hallows 2's debut internationally earned $307 million, while it earned $168.8 million in the United States and Canada.

The film with the second-highest opening weekend in North America was 2008's The Dark Knight, which earned $158 million in its opening weekend.

Harry Potter and the Deathly Hallows Part 2 is the final Harry Potter movie. The first film, Harry Potter and the Sorcerer's Stone, premiered in 2001.

Daniel Radcliffe, who played Potter in each installment, admitted to CNN that he "wept like a child" when filming of the final film wrapped.

"I've had such an amazing time on Potter. It's been such an extraordinary experience to work with, essentially, the same group of people for 10 years," the 21-year-old actor said. "You develop such close bonds with so many people."

Tell Us: Did you see Harry Potter and the Deathly Hallows Part 2 this weekend?