3v4l.org

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