3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $range = range(-5,5); //var_dump($range); foreach($range as $item){ switch($item){ case ( ($item>=17) && ($item<=20)): $case = '>=17_<=20'; break; case ($item<=16): $case = '<16'; break; } echo $item.' '.$case.'<br/>'; }
Output for 4.3.0 - 7.1.0
-5 <16<br/>-4 <16<br/>-3 <16<br/>-2 <16<br/>-1 <16<br/>0 >=17_<=20<br/>1 <16<br/>2 <16<br/>3 <16<br/>4 <16<br/>5 <16<br/>