Lee, who has been plagued by poor run support, pitched six innings and trailed 3-1 when he departed.
"I didn't want to come out of the game," he said. "I never want to come out of a game. In the National League, that happens. We won. That's all that really matters."
Shane Victorino extended his hitting streak to 14 games when he led off the eighth with his sixth homer, which came off Mike Dunn and made the score 3-all. Pete Orr entered the game in the seventh and had two doubles for Philadelphia.
"It was a game it didn't look like we were going to win until the end," Orr said.
With the score 3-all and one out in the ninth, Dane Sardinha singled and took third on a double by Orr. Both scored on the single by Rollins, who had stranded four runners earlier in the game.
"He came through," manager Charlie Manuel said. "You can take one cut and save a bad night."
Before Rollins' hit, the Phillies were 2-for-12 with runners in scoring position after going 0-for-6 in a loss Tuesday.
"I guess if we play long enough, we're going to get some hits and score some runs," Manuel said. "We were having a tough time."
The Marlins lost the three-game series, and they've dropped nine of their past 10 home games against Philadelphia, with the lone victory Tuesday over Roy Halladay.
"Baseball is weird," Nolasco said. "We lost two of three, but we always battle against these guys. We'll see them again."
Lee allowed seven hits and struck out only four after fanning a career-high 16 strikeouts in his last start. He and the Phillies fell behind 3-0 after six innings, and at that point they had scored only one run in Lee's past four starts.
"I was concerned about us not scoring for him," Manuel said. "It's not like they're not trying to score for him. That's just baseball. That's the way it goes sometimes. Sometimes it goes a month. Sometimes it goes two or three years."
Lee had to wonder about his luck when Phils catcher Brian Schneider had a chance to score easily from second on a two-out single in the fifth but strained his left hamstring rounding third and limped back to the base. Rollins then grounded out to end the inning.
"I felt bad, man," Schneider said. "It definitely didn't feel good. If it did, I would have scored."
Schneider was replaced by Sardinha. The Phillies are already without catcher Carlos Ruiz, who is on the disabled list with lower back inflammation.
After the game, Florida optioned outfielder Bryan Petersen and right-hander Steve Cishek to Triple-A New Orleans. ... Marlins left fielder Logan Morrison hit a three-run homer Wednesday in the third game of his rehabilitation stint with Class A Jupiter. The Marlins expect him to join them this weekend at Washington. ... Phillies right-hander Joe Blanton threw a bullpen session before the game and said that while his right elbow is not yet 100 percent, he expects to make his next scheduled start Saturday at Atlanta. Blanton came off the DL on Monday to beat Florida. ... Stanton, trying unsuccessfully to catch a foul ball, ran into a three-foot-high railing and tumbled upside down into the Marlins' bullpen. ... Lee and Ramirez looked like dancing partners when they reached first base at the same time after Ramirez hit into a 3-1 groundout. Both players laughed, and Lee gave Ramirez a friendly pat with his glove.
Giants aim to break 4-game slide, play the Mets
New York Mets (28-15, first in the NL East) vs. San Francisco Giants (22-18, third in the NL West)
Nationals begin 3-game series against the Dodgers
Los Angeles Dodgers (27-13, first in the NL West) vs. Washington Nationals (14-28, fifth in the NL East)
Astros start 3-game series with the Guardians
Cleveland Guardians (17-20, third in the AL Central) vs. Houston Astros (27-15, first in the AL West)
Yankees host the Orioles to begin 3-game series
Baltimore Orioles (17-25, fifth in the AL East) vs. New York Yankees (29-12, first in the AL East)
Mariners begin 3-game series with the Athletics
Oakland Athletics (17-26, fifth in the AL West) vs. Seattle Mariners (17-25, fourth in the AL West)
Reds take on the Cubs in first of 4-game series
Chicago Cubs (16-24, third in the NL Central) vs. Cincinnati Reds (12-28, fifth in the NL Central)