3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $v = 1; switch ($v) { case 1: echo '0'; break; case 'a': echo 'a'; break; default: echo 'default'; }
Output for 4.3.0 - 7.1.0
0