3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump( unserialize('O:1:"Y":7:{s:1:"a";N;s:1:"b";i:2;s:4:"*c";N;s:4:"*d";s:1:"d";s:4:"Ye";N;s:4:"Yi";s:3:"bar";s:4:"Xi";s:3:"foo";}') );
based on OYr4A
Output for 4.3.10 - 4.4.9, 5.0.3 - 5.6.28, 7.0.0 - 7.1.0
Notice: unserialize(): Error at offset 42 of 111 bytes in /in/e0MIp on line 5 bool(false)
Output for hhvm-3.10.0 - 3.12.0
Notice: Unable to unserialize: [O:1:"Y":7:{s:1:"a";N;s:1:"b";i:2;s:4:"*c";N;s:4:"*d";s:1:"d";s:4:"Ye";N;s:4:"Yi";s:3:"bar";s:4:"Xi";s:3:"foo";}]. Expected '"' but got 'N'. in /in/e0MIp on line 5 bool(false)
Output for 4.3.2 - 4.3.9, 5.0.0 - 5.0.2
Notice: unserialize(): Error at offset 55 of 111 bytes in /in/e0MIp on line 5 bool(false)
Output for 4.3.0 - 4.3.1
Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 55 of 111 bytes in /in/e0MIp on line 5 bool(false)