We study the competition between stripe states with different periods and a uniform
d-wave superconducting state in the extended two-dimensional Hubbard model at 1/8 hole doping using infinite projected entangled-pair states (iPEPS). With increasing strength of negative next-nearest neighbor hopping ${t}^{\ensuremath{'}}$, the preferred period of the stripe decreases. For the values of ${t}^{\ensuremath{'}}$ predicted for cuprate high-
Tc superconductors, we find stripes with a period 4 in the charge order, in agreement with experiments. Superconductivity in the period 4 stripe is suppressed at
1/8 doping. Only at larger doping, $0.18\ensuremath{\lesssim}\ensuremath{\delta}<0.25$, the period 4 stripe exhibits coexisting
d-wave superconducting order. The uniform
d-wave state is only favored for sufficiently large positive ${t}^{\ensuremath{'}}$.
Intertwining of spin, charge, and pairing correlations in the repulsive two-dimensional Hubbard model is shown through unrestricted variational calculations, with projected wave functions free of symmetry breaking. A crossover from incommensurate antiferromagnetism to stripe order naturally emerges in the hole-doped region when increasing the on-site coupling. Although effective attractive pairing interactions are identified, they are strongly fragmented in several modes including
d-wave pairing and more exotic channels related to an underlying stripe. We demonstrate that the entanglement of a mean-field wave function by symmetry restoration can largely account for interaction effects, and that our approach is exact for a two-site cluster.