https://zx.itch.io/sebasic3SE Basic 3 is an open source replacement firmware for the ZX Spectrum and clones that includes many improvements over the original, while retaining a high level of compatibility. Some of the highlights are:
Overall fastest version of Sinclair BASIC - fully optimized for speed.
Fastest and most user friendly editor - with additional editing commands.
AY support including pseudo-interrupt driven sound.
ULAplus support including a default palette and new commands.
8-bit character set support including printing characters 24-31.
Direct machine code calls.
BASIC access to LDIR.
Hex and Octal number entry.
Decimal to Hex string conversion.
Intelligent error trapping - OK and STOP are not errors.
More room for BASIC programs and line numbers up to 16383.
Improved SCREEN$ handling for UDGs and 8-bit character sets.
Improved floating-point library - faster and more accurate.
Remains compatible with the majority of Spectrum software and hardware.
Ability to use reserved words as variable names during tokenization.