3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = 'O:8:"DateTime":3:{s:4:"date";s:19:"2014-03-31 14:55:58";s:13:"timezone_type";}'; var_dump( unserialize( $test ) );
Output for 4.3.10 - 5.6.28, 7.0.0 - 7.1.0
Notice: unserialize(): Unexpected end of serialized data in /in/p9pfZ on line 3 Notice: unserialize(): Error at offset 77 of 78 bytes in /in/p9pfZ on line 3 bool(false)
Output for hhvm-3.10.0 - 3.12.0
Notice: Unable to unserialize: [O:8:"DateTime":3:{s:4:"date";s:19:"2014-03-31 14:55:58";s:13:"timezone_type";}]. Unexpected end of buffer during unserialization. in /in/p9pfZ on line 3 bool(false)
Output for 4.3.2 - 4.3.9
Notice: Unexpected end of serialized data in /in/p9pfZ on line 3 Notice: unserialize(): Error at offset 77 of 78 bytes in /in/p9pfZ on line 3 bool(false)
Output for 4.3.0 - 4.3.1
Notice: Unexpected end of serialized data in /in/p9pfZ on line 3 Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 77 of 78 bytes in /in/p9pfZ on line 3 bool(false)