fork download
  1. <?php
  2. $a = 3;
  3. switch ($a) {
  4. case 1: echo 'one'; break;
  5. case 2: echo 'two'; break;
  6. default: echo 'four'; break;
  7. case 3: echo 'three'; break;
  8. }
  9.  
Success #stdin #stdout 0.03s 52480KB
stdin
Standard input is empty
stdout
three