Usually when entity at magma block will take damage immediately in java and console edition but in MC:PE 1.1.3++....I don't know how to describe but I give situations
Example in java and console :
When I spawn stray using monster egg at magma block it will take damage as fast as possible.
Example in Bedrock engine :
When I spawn stray using monster egg at magma block it will take no damage in 1.2 sec and then it will take damage like normally.
I hope you understand