3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(unserialize('a:2:{i:1;a:1:{i:2012;a:1:{s:2:"01";a:17:{i:0;s:2:"01";i:1;s:2:"02";i:2;s:2:"03";i:3;s:2:"04";i:4;s:2:"05";i:5;s:2:"06";i:6;s:2:"07";i:7;s:2:"08";i:8;s:2:"09";i:9;s:2:"10";i:10;s:2:"11";i:11;s:2:"12";i:12;s:2:"13";i:13;s:2:"14";i:14;s:2:"15";i:15;s:2:"16";i:16;s:2:"17";}}}i:2;a:1:{i:2013;a:1:{s:2:"01";a:17:{i:0;s:2:"01";i:1;s:2:"02";i:2;s:2:"03";i:3;s:2:"04";i:4;s:2:"05";i:5;s:2:"06";i:6;s:2:"07";i:7;s:2:"08";i:8;s:2:"09";i:9;s:2:"10";i:10;s:2:"11";i:11;s:2:"12";i:12;s:2:"13";i:13;s:2:"14";i:14;s:2:"15";i:15;s:2:"16";i:16;s:2:"17";}}}}'));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(2) { [1]=> array(1) { [2012]=> array(1) { ["01"]=> array(17) { [0]=> string(2) "01" [1]=> string(2) "02" [2]=> string(2) "03" [3]=> string(2) "04" [4]=> string(2) "05" [5]=> string(2) "06" [6]=> string(2) "07" [7]=> string(2) "08" [8]=> string(2) "09" [9]=> string(2) "10" [10]=> string(2) "11" [11]=> string(2) "12" [12]=> string(2) "13" [13]=> string(2) "14" [14]=> string(2) "15" [15]=> string(2) "16" [16]=> string(2) "17" } } } [2]=> array(1) { [2013]=> array(1) { ["01"]=> array(17) { [0]=> string(2) "01" [1]=> string(2) "02" [2]=> string(2) "03" [3]=> string(2) "04" [4]=> string(2) "05" [5]=> string(2) "06" [6]=> string(2) "07" [7]=> string(2) "08" [8]=> string(2) "09" [9]=> string(2) "10" [10]=> string(2) "11" [11]=> string(2) "12" [12]=> string(2) "13" [13]=> string(2) "14" [14]=> string(2) "15" [15]=> string(2) "16" [16]=> string(2) "17" } } } }