Why $var = 012 / 4 = 2.5?

As title, anyone know why? I searched on the internet but I don’t have an answer yet.

Starting a number with 0 like that means octal (base 8). So octal 12 = decimal 10.

http://php.net/manual/en/language.types.integer.php

Thanks for helping me! I see your answer.