Is there any speed difference between these two versions?
<?php echo $var; ?> <?=$var?>
Which do you recommend, and why?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Performance difference is insignificant. Moreover, with use of APC, performance difference is zero, null, nada.
Short tags are problematic within XML, because
<?is also markup for XML processing tag. So if you’re writing code that should be portable, use the long form.See
short_open_tagdescription in http://www.php.net/manual/en/ini.core.php