3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = 'a:3:{s:6:"entity";s:29:"Aulinks\Model\Entities\Widget";s:7:"depends";a:1:{i:0;s:33:"Aulinks\Model\Entities\WidgetArea";}s:4:"data";a:9:{i:0;a:2:{s:6:"fields";a:5:{s:12:"factoryClass";s:83:"Aulinks\FrontModule\Components\Layout\Widgets\MainMenuWidget\IMainMenuWidgetFactory";s:4:"name";s:1:"1";s:8:"position";i:1;s:4:"data";a:0:{}s:2:"id";i:1;}s:12:"associations";a:1:{s:4:"area";i:1;}}i:1;a:2:{s:6:"fields";a:5:{s:12:"factoryClass";s:89:"Aulinks\FrontModule\Components\Layout\Widgets\SidebarTextWidget\ISidebarTextWidgetFactory";s:4:"name";s:1:"2";s:8:"position";i:2;s:4:"data";a:0:{}s:2:"id";i:2;}s:12:"associations";a:1:{s:4:"area";i:1;}}i:2;a:2:{s:6:"fields";a:5:{s:12:"factoryClass";s:81:"Aulinks\FrontModule\Components\Layout\Widgets\BoxHtmlWidget\IBoxHtmlWidgetFactory";s:4:"name";s:1:"3";s:8:"position";i:3;s:4:"data";a:3:{s:5:"title";s:12:"HOT NABÍDKY";s:4:"icon";s:10:"fa fa-bomb";s:4:"text";s:274:"";}s:2:"id";i:3;}s:12:"associations";a:1:{s:4:"area";i:1;}}i:3;a:2:{s:6:"fields";a:5:{s:12:"factoryClass";s:83:"Aulinks\FrontModule\Components\Layout\Widgets\BoxImageWidget\IBoxImageWidgetFactory";s:4:"name";s:1:"4";s:8:"position";i:4;s:4:"data";a:2:{s:4:"path";s:34:"front/images/workmarket-banner.jpg";s:4:"link";s:24:"http://www.workmarket.cz";}s:2:"id";i:4;}s:12:"associations";a:1:{s:4:"area";i:1;}}i:4;a:2:{s:6:"fields";a:5:{s:12:"factoryClass";s:83:"Aulinks\FrontModule\Components\Layout\Widgets\BoxImageWidget\IBoxImageWidgetFactory";s:4:"name";s:1:"5";s:8:"position";i:5;s:4:"data";a:2:{s:4:"path";s:31:"front/images/aulinks-banner.jpg";s:4:"link";s:5:"cenik";}s:2:"id";i:5;}s:12:"associations";a:1:{s:4:"area";i:1;}}i:5;a:2:{s:6:"fields";a:5:{s:12:"factoryClass";s:89:"Aulinks\FrontModule\Components\Layout\Widgets\DescriptionWidget\IDescriptionWidgetFactory";s:4:"name";s:11:"description";s:8:"position";i:2;s:4:"data";a:0:{}s:2:"id";i:9;}s:12:"associations";a:1:{s:4:"area";i:3;}}i:6;a:2:{s:6:"fields";a:5:{s:12:"factoryClass";s:81:"Aulinks\FrontModule\Components\Layout\Widgets\ContactWidget\IContactWidgetFactory";s:4:"name";s:8:"contacts";s:8:"position";i:4;s:4:"data";a:8:{s:7:"address";s:34:"Na Plzeňce 1236/4, 150 00 Praha 5";s:5:"phone";s:16:"+420 123 456 789";s:5:"email";s:23:"ejobsservice@ejobss.com";s:3:"web";s:14:"www.ejobss.com";s:8:"facebook";s:7:"aulinks";s:6:"google";s:7:"aulinks";s:7:"twitter";s:7:"aulinks";s:8:"linkedIn";s:7:"aulinks";}s:2:"id";i:12;}s:12:"associations";a:1:{s:4:"area";i:3;}}i:7;a:2:{s:6:"fields";a:5:{s:12:"factoryClass";s:73:"Aulinks\FrontModule\Components\Layout\Widgets\MapWidget\IMapWidgetFactory";s:4:"name";s:3:"map";s:8:"position";i:1;s:4:"data";a:3:{s:7:"address";s:0:"";s:5:"point";s:0:"";s:6:"height";s:0:"";}s:2:"id";i:14;}s:12:"associations";a:1:{s:4:"area";i:2;}}i:8;a:2:{s:6:"fields";a:5:{s:12:"factoryClass";s:77:"Aulinks\FrontModule\Components\Layout\Widgets\LinksWidget\ILinksWidgetFactory";s:4:"name";s:11:"footerLinks";s:8:"position";i:5;s:4:"data";a:1:{s:5:"links";s:25:""Kontakty"|About:feedback";}s:2:"id";i:15;}s:12:"associations";a:1:{s:4:"area";i:3;}}}}'; $data = preg_replace('!s:(\d+):"(.*?)";!e', "'s:'.strlen('$2').':\"$2\";'", $data); $data = unserialize($data); print_r($data);
based on MZWP5
Output for 7.0.0 - 7.1.0
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/QW2Ie on line 5
Output for 4.3.0 - 5.4.45, hhvm-3.10.0 - 3.12.0
Array ( [entity] => Aulinks\Model\Entities\Widget [depends] => Array ( [0] => Aulinks\Model\Entities\WidgetArea ) [data] => Array ( [0] => Array ( [fields] => Array ( [factoryClass] => Aulinks\FrontModule\Components\Layout\Widgets\MainMenuWidget\IMainMenuWidgetFactory [name] => 1 [position] => 1 [data] => Array ( ) [id] => 1 ) [associations] => Array ( [area] => 1 ) ) [1] => Array ( [fields] => Array ( [factoryClass] => Aulinks\FrontModule\Components\Layout\Widgets\SidebarTextWidget\ISidebarTextWidgetFactory [name] => 2 [position] => 2 [data] => Array ( ) [id] => 2 ) [associations] => Array ( [area] => 1 ) ) [2] => Array ( [fields] => Array ( [factoryClass] => Aulinks\FrontModule\Components\Layout\Widgets\BoxHtmlWidget\IBoxHtmlWidgetFactory [name] => 3 [position] => 3 [data] => Array ( [title] => HOT NABÍDKY [icon] => fa fa-bomb [text] => ) [id] => 3 ) [associations] => Array ( [area] => 1 ) ) [3] => Array ( [fields] => Array ( [factoryClass] => Aulinks\FrontModule\Components\Layout\Widgets\BoxImageWidget\IBoxImageWidgetFactory [name] => 4 [position] => 4 [data] => Array ( [path] => front/images/workmarket-banner.jpg [link] => http://www.workmarket.cz ) [id] => 4 ) [associations] => Array ( [area] => 1 ) ) [4] => Array ( [fields] => Array ( [factoryClass] => Aulinks\FrontModule\Components\Layout\Widgets\BoxImageWidget\IBoxImageWidgetFactory [name] => 5 [position] => 5 [data] => Array ( [path] => front/images/aulinks-banner.jpg [link] => cenik ) [id] => 5 ) [associations] => Array ( [area] => 1 ) ) [5] => Array ( [fields] => Array ( [factoryClass] => Aulinks\FrontModule\Components\Layout\Widgets\DescriptionWidget\IDescriptionWidgetFactory [name] => description [position] => 2 [data] => Array ( ) [id] => 9 ) [associations] => Array ( [area] => 3 ) ) [6] => Array ( [fields] => Array ( [factoryClass] => Aulinks\FrontModule\Components\Layout\Widgets\ContactWidget\IContactWidgetFactory [name] => contacts [position] => 4 [data] => Array ( [address] => Na Plzeňce 1236/4, 150 00 Praha 5 [phone] => +420 123 456 789 [email] => ejobsservice@ejobss.com [web] => www.ejobss.com [facebook] => aulinks [google] => aulinks [twitter] => aulinks [linkedIn] => aulinks ) [id] => 12 ) [associations] => Array ( [area] => 3 ) ) [7] => Array ( [fields] => Array ( [factoryClass] => Aulinks\FrontModule\Components\Layout\Widgets\MapWidget\IMapWidgetFactory [name] => map [position] => 1 [data] => Array ( [address] => [point] => [height] => ) [id] => 14 ) [associations] => Array ( [area] => 2 ) ) [8] => Array ( [fields] => Array ( [factoryClass] => Aulinks\FrontModule\Components\Layout\Widgets\LinksWidget\ILinksWidgetFactory [name] => footerLinks [position] => 5 [data] => Array ( [links] => \"Kontakty\"|About:feedback ) [id] => 15 ) [associations] => Array ( [area] => 3 ) ) ) )
Output for 5.5.24 - 5.6.28
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/QW2Ie on line 5 Array ( [entity] => Aulinks\Model\Entities\Widget [depends] => Array ( [0] => Aulinks\Model\Entities\WidgetArea ) [data] => Array ( [0] => Array ( [fields] => Array ( [factoryClass] => Aulinks\FrontModule\Components\Layout\Widgets\MainMenuWidget\IMainMenuWidgetFactory [name] => 1 [position] => 1 [data] => Array ( ) [id] => 1 ) [associations] => Array ( [area] => 1 ) ) [1] => Array ( [fields] => Array ( [factoryClass] => Aulinks\FrontModule\Components\Layout\Widgets\SidebarTextWidget\ISidebarTextWidgetFactory [name] => 2 [position] => 2 [data] => Array ( ) [id] => 2 ) [associations] => Array ( [area] => 1 ) ) [2] => Array ( [fields] => Array ( [factoryClass] => Aulinks\FrontModule\Components\Layout\Widgets\BoxHtmlWidget\IBoxHtmlWidgetFactory [name] => 3 [position] => 3 [data] => Array ( [title] => HOT NABÍDKY [icon] => fa fa-bomb [text] => ) [id] => 3 ) [associations] => Array ( [area] => 1 ) ) [3] => Array ( [fields] => Array ( [factoryClass] => Aulinks\FrontModule\Components\Layout\Widgets\BoxImageWidget\IBoxImageWidgetFactory [name] => 4 [position] => 4 [data] => Array ( [path] => front/images/workmarket-banner.jpg [link] => http://www.workmarket.cz ) [id] => 4 ) [associations] => Array ( [area] => 1 ) ) [4] => Array ( [fields] => Array ( [factoryClass] => Aulinks\FrontModule\Components\Layout\Widgets\BoxImageWidget\IBoxImageWidgetFactory [name] => 5 [position] => 5 [data] => Array ( [path] => front/images/aulinks-banner.jpg [link] => cenik ) [id] => 5 ) [associations] => Array ( [area] => 1 ) ) [5] => Array ( [fields] => Array ( [factoryClass] => Aulinks\FrontModule\Components\Layout\Widgets\DescriptionWidget\IDescriptionWidgetFactory [name] => description [position] => 2 [data] => Array ( ) [id] => 9 ) [associations] => Array ( [area] => 3 ) ) [6] => Array ( [fields] => Array ( [factoryClass] => Aulinks\FrontModule\Components\Layout\Widgets\ContactWidget\IContactWidgetFactory [name] => contacts [position] => 4 [data] => Array ( [address] => Na Plzeňce 1236/4, 150 00 Praha 5 [phone] => +420 123 456 789 [email] => ejobsservice@ejobss.com [web] => www.ejobss.com [facebook] => aulinks [google] => aulinks [twitter] => aulinks [linkedIn] => aulinks ) [id] => 12 ) [associations] => Array ( [area] => 3 ) ) [7] => Array ( [fields] => Array ( [factoryClass] => Aulinks\FrontModule\Components\Layout\Widgets\MapWidget\IMapWidgetFactory [name] => map [position] => 1 [data] => Array ( [address] => [point] => [height] => ) [id] => 14 ) [associations] => Array ( [area] => 2 ) ) [8] => Array ( [fields] => Array ( [factoryClass] => Aulinks\FrontModule\Components\Layout\Widgets\LinksWidget\ILinksWidgetFactory [name] => footerLinks [position] => 5 [data] => Array ( [links] => \"Kontakty\"|About:feedback ) [id] => 15 ) [associations] => Array ( [area] => 3 ) ) ) )