3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php$foo = 101; switch (true){ default: less: echo "$foo < 100!"; break; default: more: echo "$foo > 100!"; break; default: same: echo "$foo == 100!"; break; default: if ($foo < 100) { goto less; } elseif ($foo > 100) { goto more; } elseif ($foo == 100) { goto same; } break;}<?php
Output for 4.3.0 - 5.4.32
<?php$foo = 101; switch (true){ default: less: echo "$foo < 100!"; break; default: more: echo "$foo > 100!"; break; default: same: echo "$foo == 100!"; break; default: if ($foo < 100) { goto less; } elseif ($foo > 100) { goto more; } elseif ($foo == 100) { goto same; } break;}<?php