3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tmp = 1; $a = new RecursiveArrayIterator(); $a[] = $tmp; echo serialize($a); ?>
based on Bm4Mc
Output for 5.5.0 - 7.2.6
C:22:"RecursiveArrayIterator":29:{x:i:0;a:1:{i:0;i:1;};m:a:0:{}}