====================
no interpolated text
====================

<?php
echo "hi";
---

(program
  (php_tag)
  (echo_statement (string)))

===============================
interpolated text at beginning
===============================

<div>
<?php
echo "hi";
---

(program
  (text)
  (php_tag)
  (echo_statement (string)))

===============================
interpolated text at end
===============================

<?php
echo "hi";
?>

<div>

---

(program
  (php_tag)
  (echo_statement (string))
  (text_interpolation (text)))

===============================
interpolated text in middle
===============================

<?php
echo "hi";
?>

<div>

<?php
echo "bye";
?>

---

(program
  (php_tag)
  (echo_statement (string))
  (text_interpolation
    (text)
    (php_tag))
  (echo_statement (string))
  (text_interpolation))

==============================
short open tag: On
==============================

<?
echo "Used a short tag\n";
?>
Finished

---

(program
  (php_tag)
  (echo_statement (string))
  (text_interpolation (text)))

==============================
short open tag: Off
==============================

<div>one</div>

<?php
$a = 'This gets echoed twice';
?>

<?= $a ?>

<div>two</div>

<? $b=3; ?>

<?php
   echo "{$b}";
?>

<?= "{$b}" ?>

---

(program
  (text)
  (php_tag)
  (expression_statement (assignment_expression (variable_name (name)) (string)))
  (text_interpolation (php_tag))
  (expression_statement (variable_name (name)))
  (text_interpolation (text) (php_tag))
  (expression_statement (assignment_expression (variable_name (name)) (integer)))
  (text_interpolation (php_tag))
  (echo_statement (string))
  (text_interpolation (php_tag))
  (expression_statement (string))
  (text_interpolation))

======================
Single line php comment
======================

<ul class="foo"><?php // this is a comment ?></ul>

<?php
// foo?
// foo? bar?
echo "hi";

---

(program
  (text)
  (php_tag)
  (comment)
  (text_interpolation (text) (php_tag))
  (comment)
  (comment)
  (echo_statement (string)))


=====================================
Closing tags before the first PHP tag
=====================================

a ?> b <?php c;

---

(program
  (text)
  (php_tag)
  (expression_statement
    (qualified_name (name))))
