Edmunds says the 5 year cost of ownership is $2,000 cheaper on the Versa than the Leaf. I'm guessing that is due to the crazy depreciation of the Leaf. However, if you happen to be buying a 3 year old Leaf vs a 3 year old Versa, I would think the figures are reversed. A used Leaf is silly cheap these days.
Also, the Leaf comes with many more amenities than the Versa such as heated seats, rear view camera, climate control, heated mirrors... all things that would cost more than $2,000 in upgrades if the Versa even offered them.
2016 Nissan Versa Note Hatchback: True Cost to Own | Edmunds
2016 Nissan Leaf Hatchback: True Cost to Own | Edmunds