3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo = array( array('foo' => 'bar'), array('lol' => 'dongs'), 1, array('hurr' => 'durr') ); var_dump(serialize($foo));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
string(108) "a:4:{i:0;a:1:{s:3:"foo";s:3:"bar";}i:1;a:1:{s:3:"lol";s:5:"dongs";}i:2;i:1;i:3;a:1:{s:4:"hurr";s:4:"durr";}}"