3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 's:2:"hi"ts:4:"haha";'; var_dump(unserialize($str));
based on L6M2S
Output for 5.6.21 - 5.6.28, 7.0.6 - 7.1.0
Notice: unserialize(): Error at offset 8 of 20 bytes in /in/F9ZMq on line 4 bool(false)
Output for 4.3.0 - 5.6.20, hhvm-3.12.0, 7.0.0 - 7.0.5
string(2) "hi"
Output for hhvm-3.10.0

Process exited with code 153.