3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $cookie = "O%3A11%3A%22SERIAL_User%22%3A3%3A%7Bs%3A8%3A%22username%22%3Bs%3A4%3A%22test%22%3Bs%3A8%3A%22password%22%3Bs%3A8%3A%22testtest%22%3Bs%3A9%3A%22userlevel%22%3Bi%3A0%3B%7D"; $pt = unserialize($cookie); echo $pt ?>
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0beta1
Notice: unserialize(): Error at offset 0 of 169 bytes in /in/3XUY1 on line 5
Output for hhvm-3.12.14 - 3.17.3
Notice: Unable to unserialize: [O%3A11%3A%22SERIAL_User%22%3A3%3A%7Bs%3A8%3A%22username%22%3Bs%3A4%3A%22test%22%3Bs%3A8%3A%22password%22%3Bs%3A8%3A%22testtest%22%3Bs%3A9%3A%22userlevel%22%3Bi%3A0%3B%7D]. Expected ':' but got '%'. in /in/3XUY1 on line 5