3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $v="green"; switch($v){ case "blue" : echo "your color is blue"; break; case "green": echo "your color is green"; break; case "yellow": echo "your color is yellow"; break; default: echo "you have no color"; }
based on vfNoQ
Output for 4.3.0 - 7.1.0
your color is green