3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = false; foreach ($arr as $a) {}
Output for 5.2.3 - 7.1.0
Warning: Invalid argument supplied for foreach() in /in/SAsKY on line 3
Output for 4.3.0 - 4.3.10, 4.4.0 - 5.2.2
<br /> <b>Warning</b>: Invalid argument supplied for foreach() in <b>/in/SAsKY</b> on line <b>3</b><br />
Output for 4.3.11