The Dodgers scored three times in the eighth inning Wednesday to beat the Diamondbacks 4-1 and reduce their magic number in the West to six.