Associated Press photo by Matt Slocum / The Philadelphia Phillies' Cesar Hernandez celebrates in the dugout after hitting a home run off Atlanta Braves starter Julio Teheran during the first inning of Thursday's game in Philadelphia.

Updated with more information at 12:10 a.m. on Sept. 13, 2019

PHILADELPHIA — A playoff chase has J.T. Realmuto feeling energized.

He was one of four players who homered for the Philadelphia Phillies on Thursday night as they beat the Atlanta Braves 9-5.

Cesar Hernandez had a homer and an RBI single, and Adam Haseley and Jean Segura also went deep for the Phillies, who remained two games behind the Chicago Cubs and the Milwaukee Brewers for the Nationals League's second wild-card spot.

Philadelphia blew the game open with three runs in the eighth off right-hander Anthony Swarzak, thanks to Realmuto's 25th homer of the season, a two-run shot, and Sean Rodriguez's RBI double.

It was the fifth homer in the past eight games and 10th in 26 contests for Realmuto, whom the Phillies have leaned on heavily this season. The catcher appeared in his 138th game Thursday.

Realmuto said he's gotten an extra boost from the playoff push.

"That gives me extra adrenaline and makes me forget I am tired when the game starts," he said. "Everybody that plays the game wants to be part of a playoff race, wants to get to the World Series and win the World Series."

Realmuto became the fifth catcher in Phillies history to hit 25 homers in a season.

"He's seemingly getting stronger," Philadelphia manager Gabe Kapler said.

Ronald Acuna Jr. hit his 39th homer of 2019 and Ozzie Albies doubled, homered and drove in a pair of runs for the NL-East leading Braves, who were 8 1/2 games in front of the second-place Washington Nationals.

Philadelphia's Jared Hughes (5-5) pitched 1 2/3 scoreless innings in relief of Drew Smyly.

The Phillies led 5-4 in the sixth when Hernandez singled to right with two outs to score Maikel Franco from second and make it a two-run game.

Atlanta pulled within a run again in the seventh on Acuna's two-out drive to center that gave him 95 RBIs for the year.

The Braves threatened in the eighth, getting runners to second and third with two outs, but Hector Neris got Dansby Swanson to line out to left for the final out. Neris then pitched a 1-2-3 ninth, registering the final four outs for his 26th save in 32 chances.

Braves manager Brian Snitker wasn't thrilled that Neris took several extra warmup pitches in the bullpen after Kapler came out to inform home-plate umpire Roberto Ortiz of a pitching change.

"I mean, the guy just keeps throwing," Snitker said. "They go out and get him, and he just keeps throwing. It's probably something that's going to need to be addressed in the future with the league. If the reliever gets told to come in the game and he doesn't come in the game, there needs to be a consequence for it."

Haseley gave Philadelphia the lead for good by driving an 89 mph fastball from Julio Teheran (10-9) on a 3-1 count over the wall in right-center to make it 3-2.

Albies put the Braves in front 2-0 in the first with a two-run shot, his 22nd homer this year, to left.

Hernandez led off the bottom of the first by going deep to right-center off Teheran, who allowed five runs on five hits in four innings.

Smyly allowed four runs on four hits with six strikeouts and a walk in four innings.

Philadelphia set a club record for home runs at home with 117, topping the 116 hit in 2007.

Acuna stole a pair of bases in the first, giving him 36 for the season. The 21-year-old is the youngest player in MLB history to have at least 35 homers and 35 steals in a season.

Atlanta left-hander A.J. Minter (left shoulder inflammation) was placed on the 60-day injured list, ending his season. He had a 7.06 ERA in 36 appearances. Braves left fielder Johan Camargo (right shin contusion) was not in the lineup after fouling a ball of his shin in Wednesday's game.

Braves right fielder Nick Markakis, out since July 27 with a fractured left wrist, took batting practice for the second straight day. He'll be reevaluated Friday, when a decision on whether to activate him will be made in advance of a weekend series at Washington.