Hollow nanostructures have attracted increasing research interest in hydrogen evolution reaction owing to their unique structural features. Herein, Ni-Co mixed metal phosphide hollow and porous polyhedrons was successfully composited (expressed as NiCoP). Benefiting from the synergistic effects of ZIF-67 by doping Ni elements and the well-defined hollow and porous structure, the as-synthesized NiCoP hollow and porous polyhedrons exhibit better electrochemical properties and mechanical stability for hydrogen evolution reaction over a pH-universal range, with a small Tafel slopes of 72, 101, 176 mV/dec, and a low overpotential of 82, 102, 261 mV at a current density of 10 mA/cm2 in 0.5 mol/L H2SO4, 1 mol/L KOH and 1 mol/L phosphate buffer solution (PBS). This general strategy can also be applied to fabricate other hollow cobalt-based phosphides and MOFs-derived materials for HER.