Quartic anharmonic oscillator and non-Hermiticity