PHILADELPHIA (AP) Zack Greinke was 3 for 3 with a homer to offset his worst start in three years and the Los Angeles Dodgers beat the Philadelphia Phillies 10-8 on Thursday.

Greinke (11-2) gave up five runs before recording an out and finished with six runs allowed and seven hits in six innings. But he helped himself at the plate and Adrian Gonzalez hit a three-run homer to pace the NL West-leading Dodgers.

The six runs equaled the total Greinke gave up in his previous nine starts combined. He had a scoreless streak of 45 2-3 innings during that span. Greinke hadn't allowed six earned runs since Aug. 19, 2012 when he gave up six for the Angels at Tampa Bay.

More from FoxSports

Greinke's ERA rose from 1.41 to 1.71. His batting average went from .170 to .220.

Kenley Jansen got the final two outs to record his 21st save in 22 chances

Domonic Brown hit a three-run homer for the Phillies. Philadelphia starter David Buchanan (2-6) lasted four innings and gave up seven runs and 10 hits.

CARDINALS 3, REDS 0

CINCINNATI (AP) - Michael Wacha gave St. Louis' tired bullpen a respite by throwing seven innings in the rain, and the Cardinals pulled away to beat Cincinnati.

The Cardinals improved to 30 games over .500 for the first time since the end of the 2013 season. They have the best record in the major leagues at 69-39. They took two of three in Cincinnati and have won 15 of their last 18 series together. The Reds were shut out for the last 18 innings.

Wacha (13-4) overcame a 68-minute rain delay at the start. The right-hander allowed four hits and a pair of walks, allowing only two runners to reach second base. Trevor Rosenthal gave up an infield single and a walk in the ninth while getting his 32nd save in 34 chances and completing a five-hitter.

Tony Cruz snapped his 0-for-15 slump with an RBI single, and Kolten Wong singled home two more off Michael Lorenzen (3-7) as the teams played through intermittent, sometimes heavy rain. There was a long delay after the sixth inning to spread a drying compound around the infield.

NATIONALS 8, DIAMONDBACKS 3

WASHINGTON (AP) - Ian Desmond broke out of a slump with a home run and Bryce Harper reached base five times to help Washington beat Arizona.

Desmond's 12th homer of the season ended a 2-for-35 skid. His double to left leading off the fourth inning gave him more extra bases hits than he had produced in his previous nine games. He advanced to third on Wilson Ramos' single and scored on a fielder's choice by Michael Taylor.

Joe Ross (3-3) pitched six solid innings just giving up a solo homer to Jarrod Saltamacchia in the fifth inning. The rookie gave up five hits and struck out seven.

The victory enabled the struggling Nats to split the series and move within 1 1/2 games of the idle front-running New York Mets in the NL East.

Jeremy Hellickson (7-8) gave up four runs and five hits in 4 2-3 innings.

Clint Robinson put the game away with a three-run homer in the eighth.

TIGERS 8, ROYALS 6

DETROIT (AP) - Ian Kinsler hit a two-run homer off Ryan Madson in the ninth inning to lift Detroit past Kansas City.

Jose Iglesias led off with a single against Madson (1-2) before Kinsler hit a 2-0 fastball into the bullpen in left field. Alex Wilson (2-3) got the win after getting out of a bases-loaded jam in the ninth.

Victor Martinez hit a three-run homer in the third and a two-run shot in the fifth to help the Tigers take a 6-3 lead. Martinez hadn't homered since July 17 and hadn't had a multi-homer game since hitting two for Boston against Toronto on Sept. 17, 2010.

The Royals tied it with a three-run seventh. Drew Butera led off with a homer, and Kendrys Morales had a two-run double.

BREWERS 10, PADRES 1

MILWAUKEE (AP) - Khris Davis hit two three-run homers for Milwaukee, and Matt Garza limited San Diego to two hits in seven innings.

Davis homered for the first time since July 18, connecting off Padres starter Odrisamer Despaigne (5-8) in the third - a shot into the San Diego bullpen that made it 4-0. Davis also homered off Kevin Quackenbush in the eighth.

Garza (6-12) walked two and struck out five in his first victory in three starts. He avoided joining teammate Kyle Lohse as the only 13-game losers in the majors.

Garza gave up a single to Derek Norris in the second and then nothing more until Melvin Upton Jr. hit a home run in the fifth. Garza retired the next seven batters and left with a 7-1 lead.