3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php switch (2) { case 1: echo "var is 1"; break; case 2: echo "var is 2"; break; } ?>
based on 9ZAUK
Output for 4.3.0 - 7.2.0
var is 2