Long-range correlation-the non-local interdependence of distant events-is a crucial feature in many natural and artificial environments. In the context of solid state physics, impurity spins in doped spin chains and ladders with antiferromagnetic interaction are a prominent manifestation of this phenomenon, which is the physical origin of the unusual magnetic and thermodynamic properties of these materials. It turns out that such systems are described by a one-dimensional Dirac equation for a relativistic fermion with random mass. Here we present an optical configuration, which implements this one-dimensional random mass Dirac equation on a chip. On this platform, we provide a miniaturized optical test-bed for the physics of Dirac fermions with variable mass, as well as of antiferromagnetic spin systems. Moreover, our data suggest the occurence of long-range correlations in an integrated optical device, despite the exclusively short-ranged interactions between the constituting channels.