This visual execution shows how PHP heredoc and nowdoc syntax work. We start by assigning a variable $name with value "Anna". Then we create a heredoc string using <<<EOD which allows variable parsing, so $name inside the string becomes "Anna". Next, we create a nowdoc string using <<<'EOD' which treats the content literally, so $name stays as text. Both strings end with the marker EOD on a line alone. Finally, printing the heredoc outputs "Hello, Anna!" while printing the nowdoc outputs "Hello, $name!" exactly as typed. This helps beginners see how heredoc parses variables and nowdoc does not, even though both use similar syntax markers.