<?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";
}