Use Advance Custom Fields to fill text widget [closed]

Text widgets don’t allow PHP code, see the codex. You can use a plugin (see here)

So putting <?php echo get_field('name_of_your_field'); ?> in the text area of your widget will not work, putting it in a page template should work. If you put it inside the loop you should use <?php echo get_field('name_of_your_field'); ?> and if you put it outside the loop you can get the field of a specific post ID by passing it through the get_fields function like this: <?php echo get_field('name_of_your_field', 1234); ?>.