<?php
function checker() {
$a = rand(1000000, 9999999); $b = rand(1000000, 9999999); return array("$a $b", $a + $b); }
// let us test this checker
for ($i = 0; $i < 5; $i++) {
list($question, $answer) = checker
(); echo "input data:\n$question\nanswer:\n$answer\n\n";
}
PD9waHAKCmZ1bmN0aW9uIGNoZWNrZXIoKSB7CiAgICAkYSA9IHJhbmQoMTAwMDAwMCwgOTk5OTk5OSk7CiAgICAkYiA9IHJhbmQoMTAwMDAwMCwgOTk5OTk5OSk7CiAgICByZXR1cm4gYXJyYXkoIiRhICRiIiwgJGEgKyAkYik7Cn0KCi8vIGxldCB1cyB0ZXN0IHRoaXMgY2hlY2tlcgpmb3IgKCRpID0gMDsgJGkgPCA1OyAkaSsrKSB7CglsaXN0KCRxdWVzdGlvbiwgJGFuc3dlcikgPSBjaGVja2VyKCk7CgllY2hvICJpbnB1dCBkYXRhOlxuJHF1ZXN0aW9uXG5hbnN3ZXI6XG4kYW5zd2VyXG5cbiI7Cn0=