3v4l.org

run code in 200+ php & hhvm versions
<?php $value = 'test'; switch ($value) { case 1 || 2: echo 'the value is either 1 or 2'; break; }
Output for 4.3.0 - 7.3.1
the value is either 1 or 2