A woman was nearly sucked out of a Southwest Airlines flight Tuesday when an engine exploded in midair, causing shrapnel to shatter the jet’s window, according to terrified passengers.

The left engine of Flight 1380 — bound for Dallas from LaGuardia Airport — suddenly burst around 11:30 a.m. as the plane was near Philadelphia, passengers said on social media.

A piece of shrapnel from the explosion blew out a window, and a female passenger was partially sucked out the hole, sending her fellow fliers scrambling to her rescue.

“One passenger, a woman, was partially … was drawn out towards the out of the plane … was pulled back in by other passengers,” Todd Baur, the father of a passenger, told NBC10.

Marty Martinez, who was aboard the flight, said a female flier — it’s unclear whether it was the same woman nearly sucked out — suffered a heart attack in the chaos.

“Someone on the plane had a heart attack and it looks like an engine blew out then a window was blown open,” he said on Facebook. “We are still on the plane and they are trying to revive a woman on the plane.”

The Boeing 737-700 made an emergency landing at Philadelphia International Airport, where its 143 customers and five crew members were being deplaned, Southwest said in a statement.

On the tarmac, Joe Marcus tweeted a photo of the plane’s mangled engine, captioned, “What a flight! Made it!! Still here!!”

The airline didn’t immediately offer any official insight into what caused the terrifying breakdown.