Pregnant after break up?

Has anyone found out they were pregnant after a breakup? Me and my boyfriend just broke up after being together for a few years and I’m a few days late. I know that might not seem like much to anyone but I have pretty regular cycles. What do I do?

Edit: Obviously I know to take a test. I meant like what do I do regarding all these emotions and a possible child? I’m devstated by the breakup and was just looking for advice.