That is a wrong online compiler.
The online compilers usually do not allow you to use units.
Initialization inside of the main program is not allowed, so I doubt if you can test that with an online compiler: it is only allowed in units (modules).
BTW:
This has a better compiler:
https://glot.io/new/pascal which runs 3.2.2, which is the current release.
You can test units, though:
unit testme;
interface
var s: string;
function testme:string;
implementation
function testme:string;
begin
writeln;
end;
initialization
writeln('Well..');
end.
Then you have to make sure the online compiler sees it as testme.pas and be able to save it and use it online as a saved unit...... No online compiler is stupid enough to allow that....
But you can check the syntax......

What you really need is an install to learn all features properly, not the online versions.