Trevor Plouffe crushed a three-run homer with one out in the bottom of the 16th inning off Hernandez for a 7-4 walk-off win by the Phillies in a marathon battle of first-place teams that trimmed the Dodgers' division lead to a half game over Arizona.