A car wound up on the second floor of a dental office in Orange County after hitting a median on the street.

The crash happened around 5:25 a.m. near the intersection of French and 17th streets in Santa Ana, the Santa Ana Police Department said in a press release. The white sedan, which was traveling northbound on French Street at high speeds, hit a raised center median on 17th Street and went airborne.

The car caught fire after it went into the building, said Orange County Fire Authority Capt. Stephen Horner. The driver managed to get out, but was left dangling off the bottom of the vehicle until police could catch him, said Daniel Sanchez, who witnessed the crash.

"It was crazy, it really was," Sanchez said. The driver, who admitted to using drugs, was taken to a hospital, along with a passenger. Both sustained minor injuries, the SAPD said. There were no other reported injuries.

This story has been updated.