I can't remember my iPhone passcode?

It's my old iPhone so I don't care if I have to erase everything but everything I look up says you need either a computer with iTunes(I don't have a pc), or it says something about iCloud and find my iPhone! Is there a way just to erase everything on it to get passed the code without having to do all that other stuff?

Yes. This just happened to me… Just look up how to reset your iPhone! That will erase everything though.