PHILADELPHIA (AP) -- Marlon Byrd hit a two-run homer, David Buchanan threw five effective innings and the Philadelphia Phillies beat the Miami Marlins 7-4 on Tuesday night.

Marlon Byrd of the Philadelphia Phillies hits a three-run home run at Citizens Bank Park in Philadelphia. (Mitchell Leff, Getty Images)

Buchanan (4-3) allowed two runs and six hits to help the Phillies snap a three-game losing streak. The rookie right-hander struck out Marcell Ozuna on a 3-2 changeup with two runners on and two outs in the fifth, preserving a 4-2 lead. He pumped his fist and shouted as he walked off the mound.

Miami's Garrett Jones hit a two-run homer off B.J. Rosenberg in the eighth. Jonathan Papelbon tossed a scoreless ninth for his 18th save in 20 tries.

Andrew Heaney (0-2) gave up five runs and four hits in five-plus innings in his second career start for the Marlins.

(Copyright 2014 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)