Here's a program I use to generate .BAS's to test those kinds of limits.
It makes a BAS containing 10000 lines of unique variables, like T$1="0", T2$="0", etc.
The current QB64 IDE appears handle 9779 different variables before choking down and reporting
this error:
"compiler error (check for syntax errors) reference:9-6363 on line 9780"
The current QB64 does it MUCH faster than previous versions.
I have not found a line limit yet of just regular statements like PRINT.
OPEN "varitest.bas" for output as #1
for T = 1 to 10000 '9779 is current QB64 variable limit...
a$ = "T" + LTRIM$(STR$(T)) + "$=" + CHR$(34) + "0" + CHR$(34)
'a$ = "PRINT" '<<< use this one instead to generate a simple line
PRINT #1, a$
NEXT
CLOSE