3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = ""; foreach ($foo as $f) { }
based on h6pbt
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.6
Warning: Invalid argument supplied for foreach() in /in/gCUvf on line 6
Output for hhvm-3.15.4
Warning: Invalid argument supplied for foreach() in /in/gCUvf on line 8