PHILADELPHIA (AP) -- Aaron Altherr had a homer and five RBIs, Maikel Franco homered and went 4 for 4 and the Philadelphia Phillies used a five-run eighth inning to beat the San Francisco Giants 13-8 in a wild game Tuesday night.
Altherr broke a tie with a two-run single in the eighth, Cameron Rupp hit a three-run homer and Cesar Hernandez added four hits for the Phillies. They blew a six-run lead before rebounding to hand the NL West-leading Giants their 12th loss in 16 games since the All-Star break.
Philadelphia, which entered 29th in the majors in runs, set a season high. The Phillies' 15 hits were two shy of matching a season high.
Angel Pagan, Brandon Crawford and Brandon Belt went deep for San Francisco, which opened Tuesday leading the Dodgers by two games in the division. The Giants began this nine-game trip hoping to rebound from their worst month of the season after going 10-13 in July.
Will Smith (1-4), who was acquired from Milwaukee on Monday to bolster San Francisco's bullpen, started the eighth with a strikeout before giving up an infield single to pinch-hitter Odubel Herrera and a double off the wall in right to Hernandez. Smith was lifted for Sergio Romo, who surrendered the go-ahead single up the middle to Altherr.
Rupp blew the game open two batters later with his 11th homer of the season.
Hector Neris (4-3) pitched a scoreless eighth to earn the victory.
Giants ace Madison Bumgarner had one of his worst outings of the season but didn't factor into the decision. Bumgarner allowed eight runs -- four earned -- on 10 hits in five-plus innings while striking out four and walking two.
The Phillies jumped all over the four-time All-Star, taking a 6-0 lead through two innings. After Altherr's two-run homer in the first, Philadelphia tallied four two-out runs in the second after third baseman Eduardo Nunez made an error.
Altherr made it 3-0 with an RBI single before Franco's three-run homer put the Phillies up six runs.
The Giants battled back against Zach Eflin, getting a run in the fourth on Crawford's 10th homer of the season before a five-run fifth tied the game at six.
San Francisco scored all five runs with two outs. Crawford hit a two-run single and Belt tied the game with a three-run shot.
Eflin left after five innings, having allowed six runs on six hits with four strikeouts and three walks.
Tommy Joseph's RBI single in the bottom of the frame briefly put the Phillies back ahead 7-6 before Pagan's two-run shot in the sixth off Luis Garcia gave the Giants an 8-7 lead.
Franco's two-out single in the bottom of the frame tied the game at 8.
A fan left in the sixth inning shortly after a confrontation with plate umpire Bob Davidson. Davidson stopped the game, walked toward where the fan was sitting and had words with him. Davidson told The Associated Press the fan was yelling at Davidson and using foul language.
Davidson complained to team security about the fan's language and, when approached, the fan agreed to leave on his own.
for more features.