I have no idea.
I think it might hold in PHP. At least the random REPL that I found evaluates echo hello to hello in standard output (with a warning, though it did execute).
echo hello
hello
Indeed not:
As you see, hello is interpreted as "hello"—but as a consequence, 1 + hello is perfectly legitimate (and evaluates to 1… because PHP is weird).
"hello"
1 + hello
1
Ah, of course. Obviously PHP isn’t type-safe in any way. It does throw a warning at least in the REPL I tried.
I have no idea.
I think it might hold in PHP. At least the random REPL that I found evaluates
echo hello
tohello
in standard output (with a warning, though it did execute).Indeed not:
As you see,
hello
is interpreted as"hello"
—but as a consequence,1 + hello
is perfectly legitimate (and evaluates to1
… because PHP is weird).Ah, of course. Obviously PHP isn’t type-safe in any way. It does throw a warning at least in the REPL I tried.