3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $jackpots = array( '2'=>'Lots a Loot', '2-5reel'=>'Lots a Loot 5 Reel', ); $selected = array('2-5reel'); foreach($jackpots as $id => $name){ if(in_array($id,$selected)){ echo 'fuck'.$id.'<br />'; } }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
fuck2<br />fuck2-5reel<br />