You do not need a SIM card, or even a phone, to receive a text message. With an online number you can receive SMS online in any browser. This guide explains how it works.
The number is a real mobile number connected to a server instead of a handset. When someone sends a text to it, the server receives the message and shows it on a web page.
Sign-up codes, download links, delivery notices and free trials. It also helps developers who need to test that their app sends SMS correctly.
Online numbers only receive. They cannot send texts or make calls. And free numbers are shared, so do not use them for banking or anything private.
Pick a free phone number, enter it where you need a code, and read the SMS on its page. No registration is needed.