3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = 'a:2:{i:0;O:8:"stdClass":2:{s:3:"aaa";a:2:{i:0;;s:4:"test";i:3;i:4;}s:3:"aaa";i:1;}s:3:"ccc";R:3;}'; $x = unserialize($data); //var_dump($x); if(in_array($x['ccc'], array('test'))) echo 'haha'; else echo 'fuck';
based on q9Kk1
Output for 4.3.2 - 7.2.0
Notice: unserialize(): Error at offset 46 of 97 bytes in /in/JCgcC on line 4 fuck
Output for 4.3.0 - 4.3.1
Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 46 of 97 bytes in /in/JCgcC on line 4 fuck