3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = new stdClass(); $a->b = 1; $a->c = 2; $d = 3; echo serialize(array($a,array($d, 4)));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
a:2:{i:0;O:8:"stdClass":2:{s:1:"b";i:1;s:1:"c";i:2;}i:1;a:2:{i:0;i:3;i:1;i:4;}}