I realised that in the example of using MCRYPT, the example show that we need to use IV. Though not require (optional).
I've tried to use it and compare the result with the one not using IV, but the result is the same. What is IV actually? What is it purpose?