ohhh shit!!

Okay so I was chewing gum and I heard a snapping sound and felt something hard in my mouth. Then I looked at it and it looked like a piece of tooth? But I looked at my tooth and it's an old filling that just came out. Wtf??? I mean it was a filling from probably over 10 years ago. I haven't had a cavity since I was a child. Am I in for some severe pain? Obviously it's time for a dentist visit but should I just prepare myself? It's a deep hole in my tooth. The entire filling came out. I'm scared next time I eat or drink it's going to hurt. Teeth problems and dentists fully freak me out. Also is it normal for them to fall out over long periods of time?