I'm not sure that $ZFC^p$ is well-defined. One of the favored definitions of $(x,y)=z$ is $z=\{x,\{x,y\}\}$ but this is an abbreviation for $\forall a\;(a\in z\iff (a=x\lor (\forall b\; (b\in a\iff (b=x\lor b=y)))).$ If you want to replace such a string of characters in $\varphi$ with $p(x,y,z),$ there can be a sentence $S$ that is logically equivalent to $\varphi$ but in which parts of this string appear non-consecutively. E.g. somewhere in $S$ it says $a\in z,$ elsewhere in $S$ it says $\{a,b\} \in z$ and elsewhere in $S$ it is asserted that $z$ has at most $2$ members. —
DanielWainfleet 8 hours ago