3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 2; switch($a) { case 1: echo 1; break; case 2: echo 2; break; } ?>
based on VKIsv
Output for 4.3.0 - 7.1.0
2