Sarah Hyland fears for her life because of her ex

She reveals that she was in an abusive relationship.

In solid proof that you never really know what’s going on behind closed doors, Sarah Hyland has taken out a restraining order against her ex-boyfriend Matthew Prokop, and admits she currently fears for her life.

Their pair shocked when they split in August after five years together. They were often seen looking loved up at celeb events and on red carpets together.

According to TMZ, Sarah has just filed court documents stating they were in an abusive relationship for the past four years. She claims he choked her, pushed her and made repeated threats against her.

"[He] relentlessly bombarded me with vile, threatening and emotionally disturbing texts and voice mails including his own suicide threats," she told the court.

He also threatened to burn down her home and hurt her dog.

TMZ have obtained the official docs and state that:

According to the docs, Prokop — an actor who once appeared on "Modern Family" — pinned Hyland against a car during an argument about her outfit back in May and unleashed hell ... calling her "ct, ct, c**t" and choking her. Hyland says in the docs, "His grip was so tight that I could not breathe or speak. I was scared and in fear for my life."

Sarah says she suffered injuries to her voice — and had a "very sore throat following this event." In the docs, Hyland says she knew she was in an abusive relationship — and asked her TV mom Julie Bowen to come to her house to help "peacefully end the relationship."

Hyland says she had purchased a plane ticket to send Matthew back to his home in Texas — but when Matthew arrived to the home and saw Julie (along with others), he freaked out ... "ran outside into the backyard and began screaming."

Hyland says Prokop threw a lighter at her -- and that's when Julie stepped in and told Sarah to get out of the house because she wasn't safe around Prokop.

Prokop entered rehab following their breakup last month. TMZ claim that the director of his rehab facility advised Sarah to take out a restraining order based on his "mental state and attitude against her."

He now cannot come within 100 yards of Sarah or her dog.