Pavel Datsyuk and Niklas Kronwall each contributed a goal and two assists for Detroit, which scored three power-play goals in snapping a two-game losing streak.
Jimmy Howard earned the win, turning aside 32-of-34 shots.
Erik Gustafsson and Tye McGinn tallied for the Flyers, who dropped to 1-5-0 on the season.
Philadelphia goalie Ray Emery was touched for four goals on 29 shots.
Pot vending machine to debut
Pistorius testifies he didn't consciously pull trigger when he shot girlfriend