3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $jackpots = array( '2-'=>'test 2', '2-5reel'=>'test 2 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-5reel<br />