echo "<?php echo 'Hello' ?>";
It outputs nothing . Is it possible to execute php code in echo . And How can we echo php tags.
Try using htmlentities to make sure it outputs properly to your browser:
echo htmlentities("<?php echo 'Hello' ?>");
It's outputing, but browser just not displaying it.
Try
echo "<xmp><?php echo 'Hello' ?></xmp>";
You can use '<' instead of < sign and '>' instead of > sign
echo "<?php echo 'Hello' ?>";