You use single quotes ! When using single quotes, the contents won't be interpretated by PHP... so replace this line...
$ages["$_REQUEST["age"]] = '$_REQUEST["hobby"]';
... by this one (some double quotes have been removed because they were unuseful) ...
$ages[$_REQUEST["age"]] = $_REQUEST["hobby"];