Three-photon Hong-Ou-Mandel interference at a multiport mixer