Devo creare un array di dati provenienti da questo xml: http://www.ecb.europa.eu/stats/eurof...f-hist-90d.xml

Questo è il mio codice finora:

codice:
$xml=simplexml_load_file('http://www.ecb.europa.eu/stats/eurofxref/eurofxref-hist-90d.xml');
foreach($xml->Cube->Cube as $x) {
    $arr[date('d-m',strtotime($x['time']))] = array();
        foreach($xml->Cube->Cube->Cube as $y) {
        $arr[(string)$y['currency']] = (float)$y['rate'];
    };
};
Ovviamente così viene riempito solo il primo nodo. Come faccio per selezionare la data da riempire di volta in volta? Ciò che dovrei ottenere è qualcosa del genere:

codice:
'09-01' => 
    'USD' => float 1.2345
    [...]

'12-01' => 
    'USD' => float 2.3456
    [...]
[...]