I believe he's trying to do something like so:
PHP Code:
temp.var1 = 4;
temp.str = "temp.var1 + 1";
temp.value = int(temp.str);
echo(temp.value);
// he wants it to return 5, but it returns -1, naturally.
Would be interesting to figure this out. Graal needs an eval() function.