There were different versions of QB4.x, apparently. Version 4.0, 4.5, 4.51..
Also worth a try are Visual Basic for DOS and PDS Basic 7.x, I think.
VB DOS is directly based on QB45, but got a form designer and some extra Syntax from VB/Win.
However, these features are optional. It's possible to open *.BAS files as it was possible in QB45.
With a few exceptions (no Olivetti graphics mode anymore), it can compile QB45 programs without modifications.
PDS 7.x.. It's not based on Quick Basic. It relates more to M-BASIC, the professional predecessor to GW-BASIC/QuickBasic.
It can use Expanded Memory, can compile OS/2 compatible programs, etc pp.
Edit: There's also Turbo Basic / Power BASIC. Quick Basic's dark nemesis!
It can optimize for different CPUs, use different types of floating math etc.
But beware, the CGA support is flakey (Power BASIC). I ran and quit a CGA application multiple times, then it no longer worked correctly. Anyway, just saying. 😅
"Time, it seems, doesn't flow. For some it's fast, for some it's slow.
In what to one race is no time at all, another race can rise and fall..." - The Minstrel
//My video channel//