3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = 'fo'; switch ($d) { case 'bar': echo 'bar'; break; case 'foo' && 1 == 1: echo 'yes'; break; case 'foo' && 1 == 2: echo 'no'; break; } echo 'hm';
Output for 4.3.0 - 7.2.6
yeshm