str = [[<?php
code
code
?>]]
print(string.match(str, "<?")) //Actual Output: < , Expected Output: <?
print(string.match(str, "<?php")) //Actual Output: php , Expected Output: <?php
print(string.find(str, "<?")) //Actual Output: 1 1 , Expected Output: 1 2
print(string.match(str, "<?php")) //Actual Output: 3 5 , Expected Output: 1 5
请解释这个神秘输出背后的原因,并提出一个产生所需输出的解决方案。