3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hoho = new stdClass(); $hoho->foo = 'bar'; $hoho->bar = 'baz'; foreach ($hoho as $test) { var_dump($test); }

preferences:
39.16 ms | 402 KiB | 5 Q