You can use Scilla's Online IDE to access the above contract code (and others) and try it out.
Scilla Interpreter IDE is a standalone environment to test Scilla contracts.
It runs a Scilla interpreter in the backend but is not connected to any blockchain network and hence does not maintain any persistent state and is not aware of blockchain-wide parameters such as the current block number.