3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = array( 1 => 4, 2 => "Function2", 4 => "8" ); var_dump(serialize($test));
based on VPV7f
Output for 4.3.0 - 7.2.0
string(46) "a:3:{i:1;i:4;i:2;s:9:"Function2";i:4;s:1:"8";}"