Php question

$num=10;
$snum=$num;
$snum -=$num;
echo $snum;

why is the answer 1?

The output of this code is 0. Which version of PHP do you use?

the one which is on codecademy class right now.