Yeah, that $time = time(); shouldn't even be there, was a test custom island that snuck in.
A custom island with php code would look something like:
// PHP code here
$foo = "bar";
$math = 1 + 2;
$body = <<<EOF
Foo is set to $foo. I can add! 1 + 2 = $math
EOF;