Doing this just 3 times shouldn't cause any permanent damage. Don't worry about it, just don't make it a habit.
Maybe you don't feel much difference the first three times, but it adds up. Last semester in college, I pulled about 2 all nighters (staying up for 48 hours to some cases of even 70) on average a week. That, caused a lot of damage to my body and mind.
Don't be worried about the amount that you did, just switch back to regular sleeping patterns, and eat well.