3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $option = 2; switch($option) { case 1: echo "Zero option chosen"; break; case "1 this is obviously not the right one"; echo "First option chosen"; break; case 2: echo "Second option chosen"; break; }
based on A1vjf
Output for 4.3.0 - 7.2.0
Second option chosen