Jeff Golden, Getty Images
Dodgers' Matt Kemp laughs on the field after hitting a walk-off two-run home run.

LOS ANGELES — Matt Kemp hit a two-run homer in the 12th inning, giving the Los Angeles Dodgers a 5-3 victory over the Philadelphia Phillies on Wednesday.

Rookie left-hander Jake Diekman (2-0) walked Mark Ellis with one out and Kemp drove a 1-0 pitch the other way into the pavilion seats in right-center for his 13th home run and sixth career walk-off homer, capping the 4-hour, 25-minute marathon.

Hunter Pence hit a two-run single in the 10th inning with the bases loaded to give Philadelphia a 3-1 lead.

GIANTS 9, BRAVES 4 (11 INNINGS): At Atlanta, Brandon Crawford and Gregor Blanco hit three-run homers in the 11th inning and the San Francisco Giants recovered after blowing a two-run lead in the 10th.

BREWERS 4, CARDINALS 3: At Milwaukee, the Milwaukee Brewers pounced on Adam Wainwright and a shaky St. Louis Cardinals infield early then held on through a nervous ninth inning.

PADRES 8, ASTROS 4: At San Diego, Yonder Alonso went 2 for 4 with 3 RBIs and the San Diego Padres took advantage of a five-run fourth inning.

PIRATES 9, ROCKIES 6: At Denver, Garrett Jones had three hits, including one of Pittsburgh's four home runs.

DIAMONDBACKS 7, REDS 1: At Cincinnati, Jason Kubel returned from a sore hamstring and homered in his first two at-bats as Arizona dropped Cincinnati back into a first-place tie in the NL Central.

NATIONALS 4, METS 3: At Washington, Jordan Zimmermann pitched six shutout innings and Adam LaRoche hit a two-run homer while Steve Lombardozzi added a two-run double as the Nationals handed the Mets a sixth straight loss.

CUBS 5, MARLINS 1 (7 INNINGS): At Chicago, Starlin Castro homered and the Chicago Cubs batted around in a four-run seventh inning in a rain-shortened game.

American League

YANKEES 6, BLUE JAYS 0 (6 INNINGS): At New York, Hiroki Kuroda pitched four-hit ball, Mark Teixeira hit a two-run homer in a four-run first inning and the New York Yankees completed a thorough sweep of the Toronto Blue Jays with a rain-shortened victory.

RED SOX 10, WHITE SOX 1: At Boston, Cody Ross hit three-run homers in consecutive innings and Felix Doubront pitched six solid innings while Adrian Gonzalez added a solo homer and drove in four runs.

ATHLETICS 4, RANGERS 3: At Oakland, Calif., Brandon Hicks led off the bottom of the ninth with a towering home run to center for his first major league clout.

TIGERS 7, ANGELS 2: At Detroit, Doug Fister gave up just two hits over eight innings and Prince Fielder capped a four-run second inning with a two-run single.

INDIANS 10, RAYS 6: At St. Petersburg, Fla., Carlos Santana hit a three-run homer during a five-run seventh inning to help the Indians rally.

ORIOLES 2, TWINS 1: At Minneapolis, Adam Jones hit a two-run homer in the first inning against Francisco Liriano and the Baltimore Orioles hung on to the lead.

ROYALS 8, MARINERS 7: At Kansas City, Mo., Billy Butler homered to lead off the bottom of the ninth inning. Butler went 3-for-3 and walked twice.