PHILADELPHIA (AP) -- Zack Greinke pitched an outstanding game, hit a home run off Cliff Lee and left with a five-run lead.
The bullpen let him down.
Hunter Pence singled in the go-ahead run after Carlos Ruiz hit a tying, three-run double and the Philadelphia Phillies rallied with six runs in the eighth inning to beat the Milwaukee Brewers 7-6 on Tuesday night.
A night earlier, the Phillies scored four runs in the ninth off Francisco Rodriguez to beat Milwaukee by the same score.
''I don't know what's going on,'' Brewers manager Ron Roenicke said. ''These guys have always done a good job.''
Greinke allowed one run and three hits, striking out five. He retired the last 14 batters he faced, but left after seven innings with the Brewers up 6-1 only to see them lose their season-worst fifth straight.
''He hadn't pitched in 11 days,'' Roenicke said. ''It was right to get him out.''
Pinch-hitter Eric Kratz got the Phillies started in the eighth with a two-run homer off Manny Parra to cut it to 6-3. Shane Victorino, Chase Utley and Ryan Howard worked consecutive two-out walks to load the bases.
''My command has been terrible the last two days,'' Parra said. ''When you don't have to swing the bat, you don't swing the bat. I didn't give them anything to hit. I feel terrible.''
Kameron Loe (4-4) replaced Parra to face Ruiz, who ripped a 1-2 pitch to the gap in left-center to clear the bases. Pence followed with a looping RBI single to right.
The last-place Phillies suddenly seem like the team that has won five straight NL East titles. They have won three straight, including consecutive walkoff wins.
Still, the Phillies entered the night 10 games behind in the wild-card race.
Michael Schwimer (1-1) pitched a scoreless eighth to earn the win. Jonathan Papelbon finished for his 22nd save in 25 tries.
With several scouts watching, Greinke showed he can certainly help a contender down the stretch if the Brewers decide to deal him before the July 31 non-waiver trade deadline rather than risk losing him in free agency after the season.
The 2009 AL Cy Young Award winner was scratched from his last start because of fatigue after pitching three straight games around the All-Star break. But he proved he doesn't have a tired arm, consistently throwing his fastball in the low 90s and reaching a high of 94 mph.
''I thought about it a little bit,'' Greinke said when asked if he considered the fact this could have been his last start with the Brewers. ''I don't really like thinking about. It's kind of fun playing here. We've got a lot of good players, just not pulling out wins at the moment, which is disappointing.''
Ryan Braun, Carlos Gomez and Aramis Ramirez also hit homers off Lee.
Lee gave up six runs and 12 hits in seven-plus innings. It's unfathomable that Lee, who is earning $21.5 million this season, has one win in 17 starts.
Braun ripped his NL-leading 27th homer over the ivy-covered brick wall in center to give the Brewers a 2-1 lead in the sixth.
Greinke connected in the seventh, driving his third career homer out to left.
Gomez hit one way out off the facade of the second deck in left in the eighth. Ramirez ended Lee's night with a two-run shot later in the inning.
Lee struggled at the start, allowing four hits and a run in the first. He retired 10 straight batters before Martin Maldonado started the fifth with an infield single. The Brewers loaded the bases with one out, but Lee picked Maldonado off third base and struck out Gomez to end the inning.
Notes: Four homers allowed by Lee tied a career-high. Orioles did it against him on Aug. 21, 2010. The 12 hits also tied a career-high. ... Brewers RHP Shaun Marcum threw a bullpen session. He hasn't pitched since June 14 because of right elbow tightness. ... Rickie Weeks is 1-for-17 on Milwaukee's road trip. ... Vance Worley (5-6, 3.82) pitches for the Phillies against Marco Estrada (0-4, 4.10) when the teams finish their series Wednesday afternoon.
Rob Maaddi can be reached at https://www.twitter.com/RobMaaddi