A security hole in iPhone 4 software allows you to make a call after dialing a few pound signs and timing a few others as found by a MacForums member.
When you iPhone is locked with a passcode tap Emergency Call, then enter a non-emergency number such as ###. Next tap the call button and immediately hit the lock button. It should open up the Phone app where you can see all your contacts, call any number, etc.
Here’s a dude in Brazil showing it off.
More fun with the number pad from comments:
Open the number pad and type \”77\” for example and press dial. The screen dims, a loader comes up and after a while a message says \”Unknown Application\” with an option to dismiss the message.
Try it out!