fork(4) download
  1. <?php
  2.  
  3. $number = mt_rand(100000, 999999);
  4. $lastDigit = $number % 10;
  5.  
  6. echo "Выпало $number \n";
  7.  
  8.  
  9. if ($lastDigit == 1) {
  10. echo "Единица";}
  11. elseif ($lastDigit == 2) {
  12. echo "Двойка";}
  13. elseif ($lastDigit == 3) {
  14. echo "Тройка";}
  15. elseif ($lastDigit == 4) {
  16. echo "Четвёрка";}
  17. elseif ($lastDigit == 5) {
  18. echo "Пятерка";}
  19. elseif ($lastDigit == 6) {
  20. echo "Ты хуй";}
  21. elseif ($lastDigit == 7) {
  22. echo "Семёрка";}
  23. elseif ($lastDigit == 8) {
  24. echo "Восьмёрка";}
  25. elseif ($lastDigit == 9) {
  26. echo "Девятка";}
  27. else {echo "Ноль";}
  28. ?>
Runtime error #stdin #stdout #stderr 0s 4476KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
/spoj/php_run: line 1: exec: php: not found