3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function testarray() { return null; } foreach ((array)testarray() as $test) { echo 'loop'; var_dump($test); } echo 'end';
based on XH6aN
Output for 5.3.18 - 7.2.0
end