TysonAndre
Recursively loop over objects and arrays (no cycles, each is reachable exactly once) and replace any strings in array values/object properties with the deduplicated or interned string. debug_zval_dump shows that literals in code aren't deduplicated.