How to activate “field test” mode on iPhone

Enter phone mode,
tap Keypad,
enter the following string:
*3001#12345#*
then tap “dial”