From Longman Dictionary of Contemporary Englishpop into your head/mindpop into your head/mindto suddenly think of something All at once an idea popped into her head. → pop
Examples from the Corpus
pop into your head/mind• A line from an old drinking song popped into his head.• And Arnie was the first lie that popped into her head.• Funny, the sort of things which popped into your head.• Whenever the question of whether or not she needed him popped into her head, Constance conveniently ducked it.• List these assets and liabilities at random as they pop into your mind or as they are suggested to you by others.