3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $chance = 20; switch ($chance) { case ($chance < 20): echo 'chance less than 20'; break; case ($chance == 20): echo 'chance equals 20'; break; case ($chance > 20): echo 'chance greater than 20'; break; }
Output for 4.3.0 - 7.1.0
chance equals 20