Magma

Magma is molten rock beneath the surface of Earth or any other planet, moon or other planet-like body.

When magma bleeds into the surface, it is no longer magma, as it is referred to as lava.