Just curious to know if
<?php ?>
can increase or improve process speeds and requests as apposed to
<? ?>
Just curious to know if
<?php ?>
can increase or improve process speeds and requests as apposed to
<? ?>
Theres no performance impact.
to use <?
( or short_tags) you need it enabled on php.ini
short tags are not deprecated.
also <?=
which is equal to <?php echo
is always available since php 5.4
fig-standarts psr-1 also made clear to use only <?php
or <?=
for framework codes
This question is a very long and old one about the subject and does have way more information bout it.
There is no significant performance implications in using either one.
How ever short tags <? ?>
are deprecated and should not be used (except for the short echo tag <?= ?>
, which is now available by default).
No. Both constructs are equally slow (it is noticable when used extensively in templates).