Maybe you're trying to do something like this:
$out = array();
foreach ($url as $key => $value){
$dex = key($value);
$out[$dex][] = $value[$dex];reset($value[$dex]);
}
print_r($out);
If you get rid of the extra space after you key "youtube " (the first one has an extra space), you'll get the following output:
Array
(
[youtube] => Array
(
[0] => Array
(
[youtube.com] => https://www.youtube.com/dfssfskj8i
)
[1] => Array
(
[youtube.com] => https://www.youtube.com/sfsfsd
)
)
)