3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function main() { $b = 12; $a = array('abc'=>65,'bcd'=>66,'cde'=>67,'def'=>68,'efg'=>69,'quux'=>&$b); $x = serialize($a); for ($i = 0; $i < 1000000; $i++) { $y = unserialize($x); } var_dump($x); var_dump($y); } main();
based on JqVCv
Output for 5.4.0 - 7.2.6
string(97) "a:6:{s:3:"abc";i:65;s:3:"bcd";i:66;s:3:"cde";i:67;s:3:"def";i:68;s:3:"efg";i:69;s:4:"quux";i:12;}" array(6) { ["abc"]=> int(65) ["bcd"]=> int(66) ["cde"]=> int(67) ["def"]=> int(68) ["efg"]=> int(69) ["quux"]=> int(12) }