you can sign up at Free Diet Plans at SparkPeople. They have an exercise calculator that gives the amount of calories burned for most activities. It's a pretty good site.
If you only do 4 miles then walking because the bicycle is a very efficient machine. However if it was the same amount of time it would depend on how fast you cycle.
Cycling can be a great way to work out as you can get the cardiovascular workout of running without as much joint strain - but you'll have to do more than 4 miles.
Cycling will be better for muscle development as you will have more resistance especially if you cycle uphill.