fork(1) download
  1.  
  2. <?php
  3.  
  4.  
  5. $list1 = array("beautiful", "stinky", "cruel", "ugly", "brave", "smart");
  6. $list2= array("woman", "man", "dog", "old man", "soldier", "noble man");
  7. $list3= array("is lying", "is sitting", "sits", "wakes up", "is standing");
  8. $list4= array("the Moon", "streets of London", "a railway station", "a pavement", "a tree", "the top of a mountain");
  9. $list5= array("the fuck", "am I doing here", "have I been drinking", "future do I have", "is my destiny", "lady did I pick up last night");
  10. $word1 = $list1[mt_rand(0,5)];
  11. $word2 = $list2[mt_rand(0,5)];
  12. $word3 = $list3[mt_rand(0,4)];
  13. $word4 = $list4[mt_rand(0,5)];
  14. $word5 = $list5[mt_rand(0,5)];
  15. $he = "he";
  16. $a = "A";
  17. if ($word1 == "ugly") {$a = "An"; };
  18. if ($word2 == "woman") { $he = "she"; };
  19. echo "{$a} {$word1} {$word2} {$word3} on {$word4}. \"What {$word5}?\" said {$he}.";
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
An ugly soldier wakes up on the top of a mountain. "What the fuck?" said he.