MIAMI (AP) — Roy Halladay earned his 200th career victory Sunday, bouncing back from consecutive poor outings to pitch eight innings and help the Philadelphia Phillies beat the Miami Marlins 2-1.

Laynce Nix broke a 1-all tie with his second pinch-hit homer of the season in the ninth inning.

READ MORE: Several People Injured After Tree Falls During West Philadelphia High School Reunion Party At Fairmount Park

Halladay (1-2) allowed five hits, walked one and lowered his ERA from 14.73 to 7.63. He’s the 109th pitcher to reach the 200-win milestone, and the first to do so in a Phillies uniform since Hall of Famer Steve Carlton in 1978.

Rocky efforts in Halladay’s two previous starts raised doubts about the future of the two-time Cy Young Award winner, who went only 11-8 and battled injuries in 2012. But he regained his winning form against the Marlins, who have scored only 20 runs in 12 games.

They went 1 for 6 with runners in scoring position and are batting .174 in those situations this year.

Nix batted for Halladay with one out in the ninth and homered into the upper deck in right field off Jon Rauch (0-2). It was the seventh run batted in by a Phils pinch hitter.

Jonathan Papelbon pitched around a leadoff walk in the ninth for his second save in as many chances. That gave the victory to Halladay, who leads all active pitchers with a winning percentage of .662 (200-102).

Among those active, only the New York Yankees’ Andy Pettite has more victories with 247.

Ryan Howard led off the Phillies’ sixth with a double. Michael Young then singled off the glove of a diving Adeiny Hechavarria at shortstop, and Howard scored standing up.

READ MORE: Encampment Outside University City Townhomes Refuses To Budge, Despite Court Order Demanding Them To Move Out

Miami made the score 1-all in seventh. Justin Ruggiano singled, Rob Brantly walked and Chris Valaika hit an RBI single.

A baserunning blunder allowed Halladay to escape further damage. Brantly misjudged a routine fly, and after the ball was caught he was doubled off second to end the inning.

The Marlins squandered other scoring chances as well. Halladay gave up a leadoff double to Greg Dobbs in the second, then retired the next three batters.

Miami’s last in the major leagues with two home runs, and last in runs. The Phillies won despite grounding into three double plays, and they had a runner caught stealing.

The Marlins’ Kevin Slowey allowed one run in 5 1-3 innings and received no decision, which represented major improvement for the right-hander. He had lost 10 consecutive starts, the longest such streak since Mike Boddicker lost 13 in a row in 1987-88, the Marlins said, citing information from the Elias Sports Bureau.

NOTES: SS Rollins was given a breather after starting the first 11 games. … The retractable roof was closed on an 87-degree afternoon. … Marlins RHP Jose Fernandez is the first pitcher 20 or younger to allow less than two runs and less than four hits in each of his first two career starts since Rudy May of the Angels in 1965, according to STATS LLC. … LHP Cliff Lee (2-0, 1.08) is scheduled to start for the Phils when they open a series Monday at Cincinnati against Bronson Arroyo (1-1, 5.25).

(© Copyright 2013 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)

MORE NEWS: 3 Women Shot In Brewerytown Were Targeted Due To Instagram Post: Philadelphia Police