3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $i = 20; switch ($i): case 0: echo "i equals 0"; break; case 1: echo "i equals 1"; break; case 2: echo "i equals 2"; break; default: echo "i is not equal to 0, 1 or 2"; endswitch;
Output for 4.3.0 - 7.2.0
i is not equal to 0, 1 or 2