“Inside Out” delivered the firepower at the five-day holiday weekend box office as it finished in first ahead of “Jurassic World” and new entries “Terminator: Genisys” and “Magic Mike XXL.”

In a tight race, Disney-Pixar’s animated comedy pulled in an estimated $45.3 million in the U.S. over the five days — giving it $246.2 million stateside in its third week at 4,158 locations. “Inside Out,” with Amy Poehler, Mindy Kaling, Phyllis Smith, Lewis Black and Bill Hader voicing the emotions of an 11-year-old girl, is showing impressive staying power at multiplexes.

Universal’s fourth weekend of “Jurassic World” remained a solid draw, three weeks after its record-setting opening. The dino thriller, starring Chris Pratt and Bryce Dallas Howard, stomped its way to $43.8 million at 3,737 screens and ranks as the fourth-highest domestic grosser of all time with $568.2 million.

For the three days covering Friday through Sunday, “Jurassic World” has the edge on “Inside Out” with $30.9 million to $30.1 million, according to Sunday estimates.

“Terminator: Genisys” followed with $28.7 million for the three days and $44.2 million for the five. The Paramount-Skydance robot actioner is the fifth installment in the series with this iteration featuring Emilia Clarke and returning star Arnold Schwarzenegger.

With a hefty $155 million price tag, overseas performance will be crucial. That component provided an upside for Paramount, which saw $74 million from international markets for the weekend — led by Russia at $12.5 million, South Korea at $11.1 million and Mexico at $6.6 million — for a foreign cume of $85.5 million from 60% of all overseas markets.

Paramount Pictures vice chairman Rob Moore told Variety that downbeat reviews hurt the first two days of domestic performance for “Terminator” but pointed to a B+ Cinemascore as evidence of strong word of mouth. “The movie is a lot of fun and played well through the weekend,” he added.

Moore also forecasted that “Terminator: Genisys” should have enough firepower internationally to finish in the $300 million to $400 million range in foreign grosses — three to four times the expected U.S. final total. The film opens next week in Germany, Italy, Germany and Spain and has not yet been dated for the booming Chinese market.

Warner’s stripper sequel “Magic Mike XXL” wound up with $27 million at 3,355 sites for the five days, with a 96% female audience. Channing Tatum, Joe Manganiello and Matt Bomer reprised their roles from the 2012 sleeper hit. Performance was front-loaded with $15 million in its first two days but with a budget of just $14.8 million, “Magic Mike XXL” is already in the black for the studio.

The original “Magic Mike” opened on the June 29-July 1 weekend three years ago with a stunning $39.1 million on its way to a $113 million domestic total.

“Terminator: Genisys” and “Magic Mike XXL” were expected to finish above $40 million for the five days. Paul Dergarabedian, senior media analyst for Rentrak, told Variety that the new films faced a formidable challenge against “Inside Out” and “Jurassic World.”

“Those two holdover films are tough to open against because they are still drawing all demographics,” he added.

The weekend also saw business on Saturday — usually the heaviest moviegoing day — held down by Fourth of July celebrations. “Hollywood hates it when the calendar falls like this because many people are going to fireworks and barbecues,” Dergarabedian noted.

As a result, the Friday-Sunday total hit $137.4 million — 40% below the record Fourth of July weekend total of $230 million in 2013, when “Despicable Me 2” led the way with $84 million. It’s the 10th-lowest total on the list among the 21 since 1995, according to Rentrak.

Still, the domestic three-day total topped last year’s by $5 million, when the Fourth of July fell on a Friday. The second weekend of “Transformers: Age of Extinction” led with $37 million, followed by the $21.6 million launch of “Tammy.”

A24 reported a strong opening for Asif Kapadia’s “Amy,” a documentary on the late singer Amy Winehouse, with $222,015 from six locations for a screen average of $37,002 — one of the top limited debuts of the year. The film will expand nationwide this coming weekend as part of a global campaign launched with a nationwide debut in Winehouse’s native U.K.