MIAMI -- After a rough start, Roy Halladay finished his final outing of the season on a positive note.
Halladay (11-8) allowed four runs, three in the first inning, in five innings to help the Philadelphia Phillies beat the Miami Marlins 9-5 Saturday.
"The first inning was obviously pretty sloppy," Halladay said. "I felt like after that it got better, we scored runs and got a win out of it."
Chase Utley led the offensive attack for the Phillies, driving in three runs. Carlos Ruiz and Pete Orr each drove in two runs in a 4-hour, 3-minute affair as both teams combined to use 13 pitchers.
"It was a very ugly game," Marlins manager Ozzie Guillen said. "What was it, like 700 pitches between two teams, at least 700. ... Very boring, crazy game, a long one."
Halladay struck out seven and walked three in bouncing back from his last outing in which he allowed seven runs in 1 2/3 innings against Atlanta.
"He did better than he did the other day," Phillies manager Charlie Manuel said.
Halladay missed seven weeks during the season with a strained right shoulder that prevented him from reaching the 200-inning plateau for the first time in seven seasons. The 35-year old is looking forward to a strong off-season to help avoid injuries next season.
"I honestly look forward to it," Halladay said. "I look forward to kind of wipe the slate clean. I feel some of the issues that I had this year kind of snuck up on me. So having an idea of what those issues were now and be able to go into the winter to focus on taking care of some of those areas I feel I was really lacking all year, I'm looking forward to it."
Jimmy Rollins had three hits and scored twice for the Phillies, who are 79-79 and looking to avoid a losing season for the first time since 2002.
Giancarlo Stanton drove in three runs and hit his 36th home run for the Marlins and second in as many days.
"I'm happy he came back and did it that way," Guillen said.
Ricky Nolasco (12-13) took the loss, allowing five runs in five innings for the Marlins, who have lost eight of nine.
"I just got beat," Nolasco said. "We did a good of getting to Halladay early, just wasn't able to hold them off."
Ruiz's two-run double in the seventh inning extended the Phillies' lead to 7-4. Utley and Kevin Frandsen added RBI singles to cap the scoring for the Phillies.
Miami trailed 9-5 in the bottom of the ninth and strung together three consecutive singles off Jonathan Papelbon with one out to load the bases. Papelbon got Carlos Lee to pop out and Greg Dobbs to strike out.
The Phillies led 5-4 through five innings.
Miami got to Halladay immediately as the first three batters reached base, loading the bases for Stanton, who returned to the lineup Friday after missing nine games with an oblique strain.
Stanton hit a two-run single to center and three batters later Rob Brantley pushed the Marlins' lead to 3-0 with an RBI single.
The Phillies responded with two runs in the second to pull to 3-2 on a two-run double by Pete Orr.
Stanton drove in his third run of the game with his 36th home run of the season to deep left field to lead off the third. Stanton also homered on Friday off Cliff Lee, which put him second on the club's season list. Gary Sheffield holds the club record with 42 home runs in 1996.
In the fifth, Halladay and Rollins led off with singles. Juan Pierre laid down a sacrifice bunt before Utley hit a two-run single to tie the score at 4.
Domonic Brown tripled to right-center field on a fly ball that took one bounce before hitting the wall, which scored Utley for a 5-4 advantage.
NOTES: Marlins 2B Donovan Solano went 3 for 5 and has hit safely in nine consecutive games posting a .471 (16 for 34) average during that span. ... Nolasco finished his 2012 campaign with a 4.48 ERA, his lowest since posting a 3.52 ERA in 2008. ... Rollins has had three-plus hits nine times and he eclipsed the 100-run mark for the sixth time of his career. ... The Phillies will send LHP Cole Hamels (16-6, 3.11 ERA) to the mound in the series finale Sunday to face Marlins RHP Nathan Eovaldi (3-6, 4.42 ERA). Eovaldi is coming off a career-best eight-strikeout game against the Braves. Hamels is 1-3 with a 3.54 ERA against the Marlins this season.