PITTSBURGH -

Pedro Alvarez hit his 20th homer of the season, Andrew McCutchen had two hits to boost his batting average to a major-league best .372 and the Pittsburgh Pirates beat the Miami Marlins 4-3 on Friday night.

Kevin Correia (7-6) overcame a shaky start to win his fifth consecutive decision. Joel Hanrahan worked out of a two-on, one-out jam for 27th save as the Pirates moved to a season-best 12 games over .500 (52-40) and remained a half-game behind Cincinnati for first place in the NL Central.

Neil Walker led off the sixth with a homer off Ricky Nolasco (8-8) to help the Pirates rally for their 27th come-from-behind victory, second-most in baseball.

Jose Reyes had three hits, including his fifth homer of the season, for the Marlins. John Buck singled and doubled for Miami, which has dropped three straight and seven of 10.