3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = unserialize('a:2:{s:2:"10";i:1;s:2:"01";i:2;}'); var_dump($a); $a['10'] = 3; $a['01'] = 4; var_dump($a);
Output for 4.3.0 - 4.4.9, 5.2.6 - 7.1.0
array(2) { [10]=> int(1) ["01"]=> int(2) } array(2) { [10]=> int(3) ["01"]=> int(4) }
Output for 5.0.0 - 5.2.5
array(2) { ["10"]=> int(1) ["01"]=> int(2) } array(3) { ["10"]=> int(1) ["01"]=> int(4) [10]=> int(3) }