Inverse metal-assisted chemical etching produces smooth high aspect ratio InP nanostructures.