3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $hoho = new stdClass(); $hoho->foo = 'bar'; $hoho->bar = 'baz'; foreach ($hoho as $test) { var_dump($test); }
Output for 4.3.0 - 7.1.0
string(3) "bar" string(3) "baz"