3v4l.org

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