<?php echo urlencode("foo+bar+baz");
Standard input is empty
foo%2Bbar%2Bbaz
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!