fork download
  1. <?php
  2.  
  3. $i = 0;
  4.  
  5. switch($i) {
  6. case ($i > 0):
  7. echo "zero more then zero";
  8. break;
  9.  
  10. case ($i < 0):
  11. echo "zero less then zero";
  12. break;
  13.  
  14. default:
  15. echo "zero is zero";
  16. break;
  17. }
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
zero more then zero