fork download
  1. <?php
  2. /*$a=mt_rand(1,6);
  3. $man=$a+$a;
  4. $b=mt_rand(1,6);
  5. $robot=$b+$b;
  6. if ($man==$robot) {
  7. echo "big lucky";
  8. } elseif ($man>$robot) {
  9. echo "man win $man>$robot";
  10. } else {
  11. echo "robot win $robot>$man";
  12. }*/
  13. $a=mt_rand(1000000,9999999);
  14. $x=$a%10;
  15. if ($x==5) {
  16. echo "win $x";
  17. } else {
  18. echo "fail $x";
  19. }
  20.  
  21. ?>
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
win 5