3v4l.org

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