[snip]
How could that be?! 1:1 the same code but different outputs? Is this a
PHP-bug? :-?
[/snip]

*feelin' kinda' smart arsed today, if no one noticed*

Maybe it was a JavaScipt bug all along ? ;)

Actually I am worried about the order of operations and encapsulation in
the equation in $ra, mathematically speaking.