3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tries = 10; foreach($array as $key => $value) { while ($tries > 0) { $tries--; } }
Output for 5.6.30, 7.0.30 - 7.3.0alpha1
Notice: Undefined variable: array in /in/rktvm on line 7 Warning: Invalid argument supplied for foreach() in /in/rktvm on line 7
Output for hhvm-3.22.0
Notice: Undefined variable: array in /in/rktvm on line -1 Warning: Invalid argument supplied for foreach() in /in/rktvm on line -1
Output for hhvm-3.18.5 - 3.21.3
Notice: Undefined variable: array in /in/rktvm on line 12 Warning: Invalid argument supplied for foreach() in /in/rktvm on line 12