3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = null; foreach($a as $b) { echo 'a'; }
Output for 5.6.30, 7.0.0 - 7.3.0rc3
Warning: Invalid argument supplied for foreach() in /in/ojQJO on line 4
Output for hhvm-3.22.0
Warning: Invalid argument supplied for foreach() in /in/ojQJO on line -1
Output for hhvm-3.15.4 - 3.21.3
Warning: Invalid argument supplied for foreach() in /in/ojQJO on line 6