3v4l.org

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