Junior Sosa, Andrew McCutchen, Neil Walker and Michael Martinez each knocked in a run for the Pirates.
Andrew Oliver picked up the win with a scoreless top of the eighth.
Chase Utley drove in a pair of runs and Ryan Howard added a solo homer for the Phillies.
B.J. Rosenberg was tagged in defeat for five hits and four runs over his 1 1/3 relief frames.
Willy Garcia's two-run single capped a four-run eighth inning which lifted Pittsburgh past Philadelphia, 6-5, in Grapefruit League action.