This is a cactus native to Panama and Colombia. It can occasionally be found growing in gardens and living fences here. The 2 specimens I've seen were 2 m tall, but the literature says they can get much larger.
Pereskia are considered "primitive" cactus that have not yet evolved away from having true leaves, but have other features of cactus. If you see a non-flowering plant like this with odd yellow top-shaped fruit, it is probably this species
They grow easy from seed and ok from tip cuttings.