I’ve just found out about Glot.io which seems like a great open source for those who learn programming. You can run snippets on it and saved them either publicly or privately. It runs a wide variety of languages; C, C++, Java, Javascript, Swift, PHP, Ruby, Python and others. Link is below for those interested:

https://glot.io/

glot.io