3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(unserialize('a:3:{s:6:"entity";s:31:"Aulinks\Model\Entities\UserRole";s:7:"depends";a:0:{}s:4:"data";a:7:{i:0;a:3:{s:4:"name";s:5:"guest";s:2:"id";i:1;s:6:"parent";N;}i:1;a:3:{s:4:"name";s:6:"normal";s:2:"id";i:2;s:6:"parent";N;}i:2;a:3:{s:4:"name";s:9:"applicant";s:2:"id";i:3;s:6:"parent";i:2;}i:3;a:3:{s:4:"name";s:8:"employer";s:2:"id";i:4;s:6:"parent";i:2;}i:4;a:3:{s:4:"name";s:7:"manager";s:2:"id";i:5;s:6:"parent";i:4;}i:5;a:3:{s:4:"name";s:5:"admin";s:2:"id";i:6;s:6:"parent";i:2;}i:6;a:3:{s:4:"name";s:6:"hidden";s:2:"id";i:7;s:6:"parent";i:2;}}}'));
based on IL0JW
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(3) { ["entity"]=> string(31) "Aulinks\Model\Entities\UserRole" ["depends"]=> array(0) { } ["data"]=> array(7) { [0]=> array(3) { ["name"]=> string(5) "guest" ["id"]=> int(1) ["parent"]=> NULL } [1]=> array(3) { ["name"]=> string(6) "normal" ["id"]=> int(2) ["parent"]=> NULL } [2]=> array(3) { ["name"]=> string(9) "applicant" ["id"]=> int(3) ["parent"]=> int(2) } [3]=> array(3) { ["name"]=> string(8) "employer" ["id"]=> int(4) ["parent"]=> int(2) } [4]=> array(3) { ["name"]=> string(7) "manager" ["id"]=> int(5) ["parent"]=> int(4) } [5]=> array(3) { ["name"]=> string(5) "admin" ["id"]=> int(6) ["parent"]=> int(2) } [6]=> array(3) { ["name"]=> string(6) "hidden" ["id"]=> int(7) ["parent"]=> int(2) } } }