Heterojunction engineering represents a robust strategy for accelerating carrier transfer, thereby enhancing the activity of photocatalytic hydrogen evolution. In this work, a series of innovative CoNiP@W/Z-CdS heterojunctions were prepared for the purpose of investigating the photocatalytic hydrogen evolution activity under visible light-driven. To achieve high efficiency, lamellar CoNiP was first synthesized through the phosphatisation of CoNi LDH precursor. Subsequently, the W/Z-CdS homojunction was in-situ grown on the CoNiP via the hydrothermal method, resulting in the formation of the CoNiP@W/Z-CdS homojunction/heterojunction. The hydrogen evolution rate of 3% CoNiP@W/Z-CdS composite reaches 60.6 mmol/g/h, which is 3.6 times, 7.0 times and 11.9 times higher than that of W/Z-CdS, W-CdS and Z-CdS, respectively. The enhanced photocatalytic performance of 3% CoNiP@W/Z-CdS can be attributed to the introduction of an ultra-thin CoNiP bimetallic phosphide as cocatalyst, which increases the specific surface area to provide a large number of active sites for the catalytic reaction, and broadens the absorption range of sunlight. In particular, the synergistic effect between homojunction and Schottky junction in 3% CoNiP@W/Z-CdS further accelerates separation and migration rate of double interfacial carriers, improving photocatalytic H2 rate. This work offers a new perspective for the rational design of three-phase binary photocatalysts with high activity and stability.