3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $item = 0; switch($item){ case ($item<=16): $case = '<16'; break; case ( ($item>=17) && ($item<=20)): $case = '>=17_<=20'; break; case ( ($item>=21) && ($item<=25)): $case = '>=21_<=25'; break; } echo $item.' '.$case.'<br/>';
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
0 >=17_<=20<br/>