What is the difference between "<?" and "<?php" in PHP code?

The "<?" shorthand tag is a short form of the standard "<?php" opening tag in PHP code. However, its use can sometimes be disabled in the PHP configuration for security reasons. To ensure maximum compatibility and avoid any issues, it is recommended to always use "<?php" when writing PHP code.

&lt;?php
// Code goes here
?&gt;