How to use it
- Paste the serialized text.
- Read the JSON: objects show their class as “__class”, protected and private properties by their names.
- Copy or download the JSON.
Rules and limits
What is read
- Every form of serialize() is read: null, booleans, integers, floats, strings, arrays, objects (also C: with custom serialization), enums and references.
- Private and protected properties lose PHP’s hidden markers and keep their plain names.
- A session file (name|value…) becomes one object with a key per variable.
Limits
- The text box shows the first 200,000 characters; the download has everything.
Questions and answers
Is this safe for untrusted data?
Yes: the text is parsed by a small parser in your browser. Unlike PHP’s own unserialize(), nothing is instantiated and no magic method runs.
Why does it say the length is wrong?
In s:N:"…" the number N counts bytes, not characters. Text that was edited by hand or saved in another encoding often breaks this.
What do “__reference” and “__enum” mean?
A reference (r: or R:) points to an earlier value by its number; an enum case (E:) is shown as Class:Case. Bytes that are not UTF-8 text are shown as {"$bin": Base64}; when a private or protected property has the same name as another one, the later one gets a suffix such as “a:protected” or “a:Class:private”.