Optical evidence for non-Hermitian topological phases of two-dimensional Dirac fermions