Perf php dumper

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

why trying to reuse variables for different purposes ? It makes the code much less readable (and much easier to break by mistake when doing a refactoring later)