3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 2; switch($a) { default: echo '0'; break; case 1: echo '1'; }
based on bLaME
Output for 4.3.0 - 7.1.0
0