3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $selected = array('2-5reel'); foreach($jackpots as $id => $name){ if(in_array($id,$selected)){ echo 'fuck'.$id.'<br />'; } }
Output for 5.3.28 - 5.3.29, 5.4.20 - 7.1.0
Notice: Undefined variable: jackpots in /in/L88CD on line 5 Warning: Invalid argument supplied for foreach() in /in/L88CD on line 5
Output for 5.1.0 - 5.3.27, 5.4.0 - 5.4.19
Notice: Undefined variable: jackpots in /in/1fXvr on line 5 Warning: Invalid argument supplied for foreach() in /in/1fXvr on line 5
Output for 4.3.1 - 4.3.10, 4.4.0 - 5.0.5
Warning: Invalid argument supplied for foreach() in /in/1fXvr on line 5
Output for 4.3.11
Output for 4.3.0
Warning: Invalid argument supplied for foreach() in /in/L88CD on line 5