I've run out a few times. One time right as I was pulling into my gap.
Another time I was about 5 minutes from home and it ran out. However after about 2 minutes it started and I made it home. I guess the engine cooled and some gas fumes condensed, giving me enough fuel to go another 5km.
Hopefully when I get a working gas tank sensor it won't happen anymore cuz right now the needle is permanently on E.