<?php
error_reporting(-1);

function matchKeys($testArray) {
	$match = ['id', 'name', 'age', 'email', 'password', 'birthday', 'ip', 'time', 'token', 'sourse'];
	sort($match);
	$keys = array_keys($testArray);
	sort($keys);
	return ($keys == $match);
}

$test1=['id'=>'2', 'name'=>'user', 'age'=>'27', 'email'=>'user@2ch.so',
		'password'=>'gayporn', 'birthday'=>'1.4.88', 'ip'=>'127.0.0.1',
		'time'=>'12:22', 'token'=>'wtf_is_that?', 'sourse'=>'saem_shit'];

$test2=['id'=>'1', 'name'=>'newuser', 'age'=>'27', 'email'=>'admin@2ch.so',
		'password'=>'gayporn', 'birthday'=>'1.4.88', 'ip'=>'127.0.0.1',
		'time'=>'12:22', 'sourse'=>'saem_shit'];

$test3 = $test1;
shuffle($test1);



$a = matchKeys($test1);
$b = matchKeys($test2);
$c = matchKeys($test3);

var_dump($a,$b,$c);

?>