Conditions and Breaking PHP Code

Let's say we have some variable:

html<?php
  $test = true;
?>

Let's output some piece of HTML code if our variable is equal to true:

html<?php
  if ($test) {
    echo '<p>text</p>';
  }
?>

We can rewrite this code to the following, with a break in PHP brackets:

html<?php if ($test) { ?>
  <p>text</p>
<?php } ?>

This can be simplified even more by using the alternative if syntax:

html<?php if ($test): ?>
  <p>text</p>
<?php endif; ?>
Задание 1

Given a variable:

html<?php
  $show = true;
?>

Given the code:

html<div>
  <p>text1</p>
  <p>text2</p>
  <p>text3</p>
</div>

Output the provided HTML code if the variable show is equal to true.