fork download
  1. <?php
  2.  
  3. function checker() {
  4. $a = rand(1000000, 9999999);
  5. $b = rand(1000000, 9999999);
  6. return array("$a $b", $a + $b);
  7. }
  8.  
  9. // let us test this checker
  10. for ($i = 0; $i < 5; $i++) {
  11. list($question, $answer) = checker();
  12. echo "input data:\n$question\nanswer:\n$answer\n\n";
  13. }
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
input data:
2205590 7794891
answer:
10000481

input data:
8815174 8383927
answer:
17199101

input data:
7296191 8711595
answer:
16007786

input data:
8362478 3454706
answer:
11817184

input data:
3568358 4424462
answer:
7992820