3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Associative Array $stopIDS["to"][0] = "1002554"; $stopIDS["to"][1] = "2000023"; $stopIDS["from"][0] = "1002757"; $stopIDS["from"][1] = "1002718"; foreach($stopIDs as $key => $stopSet) { echo $key; foreach ($stopSet as $stop) { echo $stop; } }
Output for 5.1.0 - 7.1.0
Notice: Undefined variable: stopIDs in /in/9kTJ0 on line 10 Warning: Invalid argument supplied for foreach() in /in/9kTJ0 on line 10
Output for 4.3.0 - 4.3.10, 4.4.0 - 5.0.5
Warning: Invalid argument supplied for foreach() in /in/9kTJ0 on line 10
Output for 4.3.11