If your device is running iOS 16.4 and is being used with an Apple ID enrolled in the Apple Developer Program, you can go to Settings and install the iOS 18 developer beta.
- Access iPhone setting
- Tap general
- select Software updates
- Go to Beta Updates
- please select iOS 18 Developer beta
If you don’t see this option, setting, select Privacy and safety, To enable Developer Mode.