Teravainen's third game since Dec. 14 with at least three points provided the spark for the Hurricanes. He had an assist on Hamilton's goal 1:56 into the second period that gave Carolina a 1-0 lead. After Williams scored on the power play at 3:04 of the second to make it 2-0, Teravainen's power-play goal with 2:40 left in the period made it 3-0.
Foegele scored 5:01 into the third to give the Hurricanes a 4-0 lead.
"It seems like we're right in the game," Couturier said. "Shots are pretty even, it's up and down the ice, and we get down a goal and it gets frustrating not scoring, especially when you're getting 20-25 shots and you're not getting the bounces, and they get one bounce and it's in the back of your net and you're just chasing the game."
After the Flyers rallied with three goals in 4:41 to get to within 4-3, Teravainen finished a 2-on-1 with 4:47 remaining to make it 5-3.
"It's always hard when you have a four-goal lead and it becomes a one-goal lead," Teravainen said. "You have to keep believing. You're still winning the game. Play simple and you might get a 2-on-1 or something because they're cheating, (and) that's what happened."
Teravainen, who was named Carolina's representative for the 2019 NHL All-Star Last Men In presented by adidas fan vote Wednesday, made a strong audition to join Aho on the Metropolitan Division team at the 2019 Honda NHL All-Star Game at SAP Center in San Jose on Jan. 26.
"It would be great to see [Teravainen] and Aho go together," Hamilton said. "They've been carrying our team so far. Both so smart and so good together. They were huge for us tonight."
Simmonds scored on the power play at 6:17 of the third to make it 4-1.
Couturier tipped a Claude Giroux centering pass to cut the Hurricanes lead to 4-2 at 7:23. The goal was upheld after Carolina coach Rod Brind'Amour challenged for goaltender interference by Travis Konecny.
Van Riemsdyk scored a power-play goal at 10:58 to make it 4-3.