An 18-year-old has been charged with attempted murder after a Toronto police officer was dragged under a car door for 75 metres early Thursday morning.

Police say an officer from 54 Division stopped the car at Pharmacy Avenue near Danforth Avenue at 12:30 a.m.

The officer was holding onto the car door near the passenger side when the vehicle began to reverse suddenly.

Stephan Cummings was brought into court in a wheelchair. ((Natalie Berman/CBC))

The officer was pinned under the door and dragged for 75 metres before he was able to free himself.

"[The officer] did manage to break free, at which point the back tires hit the curb, causing the car to flip and then when it flipped, it landed on the driver’s side," said Toronto Police Const. Tony Vella.

The driver attempted to flee from the vehicle but was arrested a short distance away, police said.

The officer was treated for bruises and an injured ankle and was released from hospital.

Steven Cummings, 18, is charged with attempted murder and dangerous operation of a vehicle causing bodily harm, failure to stop for police and failure to comply with probation. Cummings was the only one in the car, police said.

Cummings made a brief appearance in a Toronto courtroom on Thursday. He was wheeled into court in a wheelchair.

He is scheduled to make his next appearance on Aug. 30.

The incident is similar to the one that resulted in the death of York Regional Police Const. Garrett Styles, who died in June after he was dragged by a car he had pulled over north of Toronto.