3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class hi { function __destruct() { echo 'hi'; } } $foo = 'O:2:"hi":0:'; $data = unserialize($foo); var_dump($data);

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
Notice: unserialize(): Error at offset 12 of 11 bytes in /in/amB0d on line 9 hibool(false)
Output for Arrow functions
Notice: unserialize(): Error at offset 13 of 11 bytes in /in/amB0d on line 9 hibool(false)
Output for Object typehint
Notice: unserialize(): Error at offset 13 of 11 bytes in /in/amB0d on line 9 hibool(false)
Output for Array change keys
hi Notice: unserialize(): Error at offset 13 of 11 bytes in /in/amB0d on line 9 bool(false)
Output for Lexical anon
hi Notice: unserialize(): Error at offset 13 of 11 bytes in /in/amB0d on line 9 bool(false)

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page