It happened before 1:30 a.m. Tuesday in the 2900 block of North 4th Street.
Officers arrived to find the victim shot in the leg and buttocks and 21 shell casings littering the scene.
[Ads /]
Three parked cars were also hit by gunfire.
The victim was taken to Temple University Hospital in critical but stable condition.
Police recovered a rifle at the scene and took at least one person into custody.
Investigators are asking anyone with information about the incident to contact Philadelphia Police.