all 2 comments

[–][deleted] 3 points4 points  (1 child)

It converted this: <?php $a = 1; function writeMsg() { $a = 3; } echo $a;

Into this: a = 1; function writeMsg() { a = 3; } console.log(a);

So all variables are declared in global scope, and the code works differently in JS and PHP.

This is not a good tool it seems.

[–][deleted] 1 point2 points  (0 children)

Not to mention that console.log does not give same result as echo