3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'a:3:{i:0;s:31:"sebastian.freytag@oddity.agency";i:1;s:27:"benjamin.graf@oddity.agency";i:2;s:23:"frank.legeland@xing.com";}'; $array = unserialize($string); $array[] = 'ek_admin'; var_dump($array); echo serialize($array);
based on tAXPf
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
array(4) { [0]=> string(31) "sebastian.freytag@oddity.agency" [1]=> string(27) "benjamin.graf@oddity.agency" [2]=> string(23) "frank.legeland@xing.com" [3]=> string(8) "ek_admin" } a:4:{i:0;s:31:"sebastian.freytag@oddity.agency";i:1;s:27:"benjamin.graf@oddity.agency";i:2;s:23:"frank.legeland@xing.com";i:3;s:8:"ek_admin";}