- var_dump: documentation ( source)
<?php
class IteratorTest extends ArrayIterator{}
$something = new StdClass();
$i = new IteratorTest();
$i[] = $something;
var_dump($i);
$other = new StdClass();
$c = new StdClass();
$c[] = $other;
var_dump($c);