An all-nighter can impair cognitive performance, such as attention, working memory, and decision-making. It can also cause increased stress, mood swings, and physical health issues, including headaches and exhaustion. Hence, it is generally recommended to prioritize getting enough sleep for optimal cognitive and physical functioning.