There are many fiddle websites that promote exchange of ideas and demonstrate sample code in a working environment.
There's a fiddle for that - https://fiddles.io - lists 40 or so, make a site so SAS can be added to the list.
If free to use sounds unpalatable, gate the site to SAS community accounts.
Code the whole thing in SAS products because, well, ya got to "Eat your own dog food" (wiki) Could be a wrapper app around a shackled but open SAS Studio login.