3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a=3; $b=0; switch($a) { case 1: default: $b += 1; break; default: $b += 2; } echo $b; //output would be 1
based on r3poR
Output for 5.3.0 - 5.6.28
2