3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php switch($a = intval(2)) { case '2': echo 'OK'; } ?>
Output for 4.3.0 - 7.1.0
OK