fork(1) download
  1. <?php
  2.  
  3.  
  4. $word1 = array(1 => 'Чудесных', 'Суровых', 'Занятных', 'Внезапных');
  5. $word2 = array(22 => 'слов', 'зим', 'глаз', 'дней', 'лет', 'мир', 'взор');
  6. $word3 = array(33 => 'прикосновений', 'поползновений', 'судьбы явлений',
  7. 'сухие листья', 'морщины смерти', 'долины края', 'замены нету',
  8. 'сухая юность', 'навек исчезнув');
  9. $word4 = array(44 => 'обретаю', 'понимаю', 'начертаю', 'закрываю', 'оставляю',
  10. 'вынимаю', 'умираю', 'замерзаю', 'выделяю');
  11. $word5 = array(55 => 'очертания', 'безысходность', 'начертанья', 'смысл жизни',
  12. 'вирус смерти', 'радость мира');
  13.  
  14. $w1 = mt_rand(1, count($word1));
  15. $w12 = mt_rand(1, count($word1));
  16.  
  17. $w2 = mt_rand(22, count($word2));
  18. $w22 = mt_rand(22, count($word2));
  19.  
  20. $w3 = mt_rand(33, count($word3));
  21. $w32 = mt_rand(33, count($word3));
  22.  
  23. $w4 = mt_rand(44, count($word4));
  24. $w5 = mt_rand(55, count($word5));
  25.  
  26. echo "$word1[$w1] $word2[$w2] $word3[$w3],\n
  27. $word1[$w12] $word2[$w22] $word3[$w32],\n
  28. Я $word4[$w4] $word5[$w5].";
Success #stdin #stdout #stderr 0.03s 52480KB
stdin
Standard input is empty
stdout
Занятных  ,

		Чудесных  ,

		Я  .
stderr
PHP Warning:  mt_rand(): max(7) is smaller than min(22) in /home/hYHYcI/prog.php on line 18
PHP Warning:  mt_rand(): max(7) is smaller than min(22) in /home/hYHYcI/prog.php on line 19
PHP Warning:  mt_rand(): max(9) is smaller than min(33) in /home/hYHYcI/prog.php on line 21
PHP Warning:  mt_rand(): max(9) is smaller than min(33) in /home/hYHYcI/prog.php on line 22
PHP Warning:  mt_rand(): max(9) is smaller than min(44) in /home/hYHYcI/prog.php on line 24
PHP Warning:  mt_rand(): max(6) is smaller than min(55) in /home/hYHYcI/prog.php on line 25
PHP Notice:  Undefined offset: 0 in /home/hYHYcI/prog.php on line 27
PHP Notice:  Undefined offset: 0 in /home/hYHYcI/prog.php on line 27
PHP Notice:  Undefined offset: 0 in /home/hYHYcI/prog.php on line 28
PHP Notice:  Undefined offset: 0 in /home/hYHYcI/prog.php on line 28
PHP Notice:  Undefined offset: 0 in /home/hYHYcI/prog.php on line 29
PHP Notice:  Undefined offset: 0 in /home/hYHYcI/prog.php on line 29