"He was bent over the driver's seat, reaching for an iced-tea bottle, when he felt a gun on the back of neck," said Officer Christine O'Brien, a police spokeswoman.
As he turned toward his assailants, the victim told police, he saw two teens in hoodies holding pistols.
He decided to run, police said. As he sprinted past his attackers, one struck him in the nose with a gun. Then he heard a shot, and felt pain in the left side of his back.
The victim stayed on his feet and ran around the block, returning to his car a few minutes later. The gunmen had fled.
Bleeding heavily, the victim waved down a passerby who called 911.
Officers from the Sixth District drove the victim to Thomas Jefferson University Hospital, where he was listed in stable condition.
Investigators from Central Detectives were visiting the area's bars and restaurants, searching for security-camera footage that may have captured the perpetrators, O'Brien said.
The shooting appears to have been an isolated crime, O'Brien said.
"There hasn't been a rash of robberies or robberies with guns in that area," she said.