Phase evolution of Peregrine-like breathers in optics and hydrodynamics.