3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = null; foreach($a as $b) { var_dump($b); }
Output for 4.3.0 - 4.3.10, 4.4.0 - 5.6.30, 7.0.0 - 7.2.0
Warning: Invalid argument supplied for foreach() in /in/rsNoe on line 5
Output for hhvm-3.22.0
Warning: Invalid argument supplied for foreach() in /in/rsNoe on line -1
Output for hhvm-3.10.1 - 3.21.3
Warning: Invalid argument supplied for foreach() in /in/rsNoe on line 7
Output for 4.3.11