Jarrod Saltalamacchia doubled, Enrique Hernandez walked, and Adeiny Hechavarria singled to load the bases with nobody out. Jordany Valdespin grounded out which allowed Saltalamacchia to score, and a Christian Yelich RBI single made it a 4-3 contest.
Justin Bour singled to tie the game, and Yelich scored on a wild pitch which gave Miami its first lead of the day before Steve Cishek closed things in the bottom of the frame.
Philadelphia got on the board first against Tom Koehler in the bottom of the third. Freddy Galvis singled to open the frame, and with two outs after advancing to second on a passed ball, scored on a Maikel Franco RBI single to center field.
Miami's lone run against David Buchanan came in the fourth, when Enrique Hernandez hit a solo home run to left field.
The Phillies added two more in the fourth, when Domonic Brown grounded into a double play which allowed Chase Utley to score and Carlos Ruiz's RBI single made it a 3-1 contest.
Ben Revere singled against Dan Jennings and stole second to open the bottom of the eighth before scoring on an Utley ground ball to shortstop which gave the Phillies a three run edge.
Carter Capps pitched well in relief, and Anthony DeSclafani relieved Jennings before Cishek closed the game.
Hero of The Game: Christian Yelich (+.476 WPA)
Goat of The Game: Casey McGehee (-.244 WPA)
Play of The Game: Christian Yelich scored on a wild pitch in the top of the ninth to make it a 5-4 game. (+.330 WPA)