Val.town somehow doesn't run multi-line code. Does work with "3+3" but not more complex stuff.
https://yawnxyz-stringcoderunner.web.val.run
https://esm.town/v/yawnxyz/stringCodeRunner
<script type="module" src="https://esm.town/v/yawnxyz/stringCodeRunner" />