I have almost no idea about the Ethereum system, but don't you have to pay to have your code executed on the global ethereum machine? Does that mean I have to pay to test run my code? or maybe after I deploy it?
This an online IDE to play around with Ethereums Solidity language: https://remix.ethereum.org