3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print_r(unserialize('a:3:{i:0;a:2:{i:0;O:30:"Hateoas\Configuration\Relation":5:{s:36:"Hateoas\Configuration\Relationname";s:9:"bookmarks";s:36:"Hateoas\Configuration\Relationhref";O:27:"Hateoas\Configuration\Route":4:{s:33:"Hateoas\Configuration\Routename";s:22:"api_get_user_bookmarks";s:39:"Hateoas\Configuration\Routeparameters";a:1:{s:4:"user";s:20:"expr(object.getId())";}s:37:"Hateoas\Configuration\Routeabsolute";b:0;s:38:"Hateoas\Configuration\Routegenerator";N;}s:42:"Hateoas\Configuration\Relationattributes";a:0:{}s:40:"Hateoas\Configuration\Relationembedded";O:30:"Hateoas\Configuration\Embedded":3:{s:39:"Hateoas\Configuration\Embeddedcontent";s:39:"expr(object.getBookmarks().slice(0, 3))";s:46:"Hateoas\Configuration\EmbeddedxmlElementName";N;s:41:"Hateoas\Configuration\Embeddedexclusion";N;}s:41:"Hateoas\Configuration\Relationexclusion";N;}i:1;O:30:"Hateoas\Configuration\Relation":5:{s:36:"Hateoas\Configuration\Relationname";s:7:"folders";s:36:"Hateoas\Configuration\Relationhref";O:27:"Hateoas\Configuration\Route":4:{s:33:"Hateoas\Configuration\Routename";s:20:"api_get_user_folders";s:39:"Hateoas\Configuration\Routeparameters";a:1:{s:4:"user";s:20:"expr(object.getId())";}s:37:"Hateoas\Configuration\Routeabsolute";b:0;s:38:"Hateoas\Configuration\Routegenerator";N;}s:42:"Hateoas\Configuration\Relationattributes";a:0:{}s:40:"Hateoas\Configuration\Relationembedded";O:30:"Hateoas\Configuration\Embedded":3:{s:39:"Hateoas\Configuration\Embeddedcontent";s:37:"expr(object.getFolders().slice(0, 3))";s:46:"Hateoas\Configuration\EmbeddedxmlElementName";N;s:41:"Hateoas\Configuration\Embeddedexclusion";O:31:"Hateoas\Configuration\Exclusion":5:{s:39:"Hateoas\Configuration\Exclusiongroups";a:1:{i:0;s:3:"api";}s:45:"Hateoas\Configuration\ExclusionsinceVersion";N;s:45:"Hateoas\Configuration\ExclusionuntilVersion";N;s:41:"Hateoas\Configuration\ExclusionmaxDepth";N;s:42:"Hateoas\Configuration\ExclusionexcludeIf";s:39:"expr(0 === object.getFolders().count())";}}s:41:"Hateoas\Configuration\Relationexclusion";r:37;}}i:1;a:0:{}i:2;s:136:"a:5:{i:0;s:21:"AppBundle\Entity\User";i:1;a:0:{}i:2;a:0:{}i:3;a:1:{i:0;s:38:"/var/www/src/AppBundle/Entity/User.php";}i:4;i:1430584710;}";}'));
Output for 4.3.10, 5.0.3, 5.3.0 - 7.2.0
Notice: unserialize(): Error at offset 101 of 2174 bytes in /in/aqjlP on line 3
Output for 4.3.11 - 4.4.9, 5.0.4 - 5.2.17
Notice: unserialize(): Error at offset 31 of 2174 bytes in /in/aqjlP on line 3
Output for 4.3.2 - 4.3.9, 5.0.0 - 5.0.2
Notice: unserialize(): Error at offset 103 of 2174 bytes in /in/aqjlP on line 3
Output for 4.3.0 - 4.3.1
Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 103 of 2174 bytes in /in/aqjlP on line 3