The Fox action-comedy starring the funny ladies as mismatched detectives earned $40 million in second place in its opening weekend, topping the $25.7 million debut haul of Sony's "White House Down," according to studio estimates Sunday.

The Disney-Pixar animated prequel "Monsters University" remained box-office valedictorian in its second weekend, earning $46.1 million in first place.

As for "The Heat," employing two female leads to buck the male-dominated buddy-cop formula paid off in ticket sales.

"I think the fact that we have a female-centric movie standing out in a forest of giant tent-pole movies is phenomenal," said Chris Aronson, Fox's president of domestic distribution. "Audiences really responded. We positioned this to be a female event movie, and we got the opening that we were hoping for this weekend."

"White House Down," which features Tatum as a wannabe Secret Service agent and Foxx as the President of the United States of America, was inaugurated below expectations in fourth place. The film's White House takeover plot is strikingly similar to FilmDistrict's "Olympus Has Fallen," which opened in March and starred Gerard Butler and Aaron Eckhart.

"It turned out to be a very competitive weekend," said Rory Bruer, Sony's president of worldwide distribution. "We had hoped 'White House Down' did better, just from the standpoint that we love this film, but I feel very hopeful that with the July 4th holiday coming up, it will be the perfect film for audiences, and it'll really add up for us."

Meanwhile, Paramount's "World War Z" took another bite out of the box office in its second weekend domestically with $29.8 million. Overseas, the globe-trotting zombie thriller starring Brad Pitt cleared $70.1 million in 51 territories.

"I think the variety of films is what brought people out to the movie theaters," said Paul Dergarabedian, an analyst for box-office tracker Hollywood.com. "There's a G-rated movie at the top of the chart and an R-rated movie in second place. That says a lot about the summer marketplace and how a unique slate of films can propel the box office."

"Man of Steel" is still flying high in its third week, coming in fifth place with $20.8 million in North America and $52.2 million in such international markets as Australia, Sweden and China. The Warner Bros. retelling of Superman's origin passed the $500 million mark on Saturday.

Overall, Dergarabedian said revenue and attendance are now both down just 2 percent over last year, and this weekend's films grossed 8.5 percent less than last year when Universal's "Ted" opened with $54.4 million at the box office. He said those numbers could shift further next week when Disney's "The Lone Ranger" and Universal's "Despicable Me 2" debut.

___

Estimated ticket sales for Friday through Sunday at U.S. and Canadian theaters, according to Hollywood.com. Where available, latest international numbers are also included. Final domestic figures will be released on Monday.