A Philadelphia man faces up to a dozen years in prison after he was found in illegal possession of a gun in Horsham Township.