3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php foreach ($schedule['Monday'] as $time => $show) { echo '<h2>Monday</h2>'; echo $time . ' - ' . $show; }
Output for 5.2.1 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: schedule in /in/7ZAqJ on line 3 Warning: Invalid argument supplied for foreach() in /in/7ZAqJ on line 3
Output for hhvm-3.10.0 - 3.13.2
Notice: Undefined variable: schedule in /in/7ZAqJ on line 3 Warning: Invalid argument supplied for foreach() in /in/7ZAqJ on line 6
Output for 4.3.0 - 4.3.10, 4.4.0 - 5.2.0
Warning: Invalid argument supplied for foreach() in /in/7ZAqJ on line 3
Output for 4.3.11