A couple of times. Once while racing a dirt bike and jammed my foot under the brake pedal and a large rock. Dropped a small anvil on my foot wearing tennis shoes the other time.

Did it hurt? Not as much as a kidney stone but enough that I was wishing my mom and dad hadn't met, at least for the first hour or so.