3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $item = 0; switch($item){ case ($item<=16): var_dump('case 1'); break; case ( ($item>=17) && ($item<=20)): var_dump('case 2'); break; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(6) "case 2"