Caterpillar found in garden

Caterpillar found in garden

Observation - Caterpillar found in garden. Description: I found this crawling up the wall in my garden it is 3cm long and a little greener than in the photos. I put it in a large vase with some leaves which it has been eating and a twig which it has crawled up. I would like to know if it is a moth or butterfly

I found this crawling up the wall in my garden it is 3cm long and a little greener than in the photos. I put it in a large vase with some leaves which it has been eating and a twig which it has crawled up. I would like to know if it is a moth or butterfly, and what type please.