Photodissociation region diagnostics across galactic environments