Stability results for nonlinear hyperbolic equations