MIAMI -- Ike Davis hit his 32nd home run, Scott Hairston and Andres Torres also homered, and the New York Mets beat the Miami Marlins 4-2 Wednesday in the season finale.
Mets starter Jeremy Hefner (4-7) tossed 7 1/3 innings, allowing two runs, five hits and two walks. He struck out seven in the second-longest outing of his career.
Bobby Parnell pitched the ninth for his seventh save in 12 chances, extending his career-best scoreless inning streak to 11 1/3 innings.
New York (74-88) finished fourth in the National League East, ahead of only Miami (69-93).
Ruben Tejada had three hits for the Mets, giving the 22-year old shortstop 14 three-plus-hit games.
Marlins right-hander Tom Koehler (0-1) made his first career start, and he allowed three runs and six hits in five innings. He struck out three.
Jose Reyes stole his 40th base for the Marlins, giving him his highest stolen-base total since he swiped 56 in 2008 while with the Mets.
Davis' home run to left field off Chad Gaudin gave the Mets a 4-0 lead in the top of the sixth.
Miami's Donnie Murphy doubled in the bottom of the sixth and scored on a base hit by Gorkys Hernandez to cut the Marlins' deficit to 4-1.
The Mets loaded the bases in the eighth, but A.J. Ramos came in to get the final two outs to get the Marlins out of the jam.
A passed ball pushed across Miami's second run of the game to pull the Marlins within 4-2. Miami had an opportunity to get even closer after back-to-back walks issued by Elvin Ramirez to load the bases with two outs.
Manny Acosta relieved Ramirez to face Donovan Solano, Tuesday's hero, who had a walk-off single in the 11th inning. Solano hit a soft liner to Tejada to end the inning.
The Mets led 3-0 through five innings.
Torres gave the Mets a 1-0 lead with his third home run of the season in the third inning.
Davis doubled and scored on Hairston's 20th home run, a career high.
Bryan Petersen led off the first with a double for the Marlins, who did not get another hit until the sixth.
NOTES: The Marlins drew an attendance of 2,219,444 (27,400 average) in the first season at their new stadium. It's their highest figure since they attracted 2.3 million fans in 1997. ... New York won the season series 12-6, tying the mark for most wins for the Mets against the Marlins in a season. The Mets also won 12 in 2001. ... Both teams open the 2013 season on April 1.