Potassium reacts quickly with water producing ... the hydrogen gas. This results in sparks and a lilac flame. There is sometimes a small explosion at the end of the reaction.
Hydrogen peroxide decomposes on its own into water and oxygen gas. This process is sped up by a catalyst. In this reaction, the catalyst is potassium permanganate, and the bubbles are full of oxygen ...