Kawhi Leonard scored 35 points for Toronto, Pascal Siakam added 21 and Kyle Lowry 20.
The 76ers, who led by as many as 19 points in the second quarter, took a six-point advantage into the fourth.
Philadelphia opened the final period with a 7-2 surge to lead by 11 with 8:44 to play.
The advantage reached 13 on a seven-foot shot by Harris with 5:44 to go.
Lowry struck with a three-pointer to bring Toronto within four points with two minutes left.
After Butler sank two free throws, Lowry made another three-pointer with 1:36 left. Siakam reduced the deficit to one with a put-back layup before Embiid banked in a hook shot with 24.3 seconds to play.
After Toronto’s Danny Green missed a three-point attempt for the tie with 10.3 seconds to go, Harris ended the game by hitting two free throws with 3.8 seconds left.
Ennis closed the first-quarter scoring with a three-pointer to give the 76ers a 26-17 lead.
The 76ers led by 18 when Ennis nailed a three with 4:19 remaining in the half. Raptors coach Nick Nurse was called for a technical foul, and Butler made the foul shot to boost the lead to 19.
The Raptors cut that to 13 on Siakam’s layup with 2:09 to play.
Philadelphia pulled ahead by 18 before Green made a three-pointer after a steal by Leonard to complete the scoring in the first half.
Philadelphia led 51-38 at half-time with Butler scoring 13 points and Ennis adding 12. Leonard topped Toronto with 15 first-half points, and Lowry had 10.
The Raptors shot 32.6 percent from the field in the first half, and the 76ers shot 41 percent. For the game, Philadelphia had an edge in field-goal shooting 39.5 percent to 36.3 percent.
Leonard scored the first five points of the third quarter, trimming the deficit to eight. Siakam made a three-pointer and a layup to cut the margin to five.
Marc Gasol’s two free throws pulled the Raptors within one point with 2:50 remaining in the quarter, but the 76ers led 69-63 after three periods before closing out the contest in the final quarter.
Field Level Media