3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'a:3:{s:4:"cols";i:1;s:4:"rows";a:1:{i:1;a:2:{s:3:"tot";i:2;s:7:"heading";a:2:{i:1;a:2:{s:6:"enable";s:2:"No";s:4:"text";s:1:"*";}i:2;a:2:{s:6:"enable";s:2:"No";s:4:"text";s:1:"*";}}}}s:4:"tabs";a:1:{i:1;a:2:{i:1;a:2:{s:3:"tot";i:6;s:7:"heading";a:6:{i:1;s:10:"Basic info";i:2;s:6:"Others";i:3;s:13:"Personal info";i:4;s:3:"Two";i:5;s:15:"Contact Numbers";i:6;s:18:"Referer & Provider";}}i:2;a:2:{s:3:"tot";i:5;s:7:"heading";a:5:{i:1;s:9:"Allow Imm";i:2;s:16:"Deceased details";i:3;s:5:"Hipaa";i:4;s:8:"Userlist";i:5;s:8:"Usertext";}}}}}'; print_r(unserialize($str));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [cols] => 1 [rows] => Array ( [1] => Array ( [tot] => 2 [heading] => Array ( [1] => Array ( [enable] => No [text] => * ) [2] => Array ( [enable] => No [text] => * ) ) ) ) [tabs] => Array ( [1] => Array ( [1] => Array ( [tot] => 6 [heading] => Array ( [1] => Basic info [2] => Others [3] => Personal info [4] => Two [5] => Contact Numbers [6] => Referer & Provider ) ) [2] => Array ( [tot] => 5 [heading] => Array ( [1] => Allow Imm [2] => Deceased details [3] => Hipaa [4] => Userlist [5] => Usertext ) ) ) ) )