Echo vs in/out

From: Date: Mon, 29 Oct 2001 00:11:36 +0000
Subject: Echo vs in/out
Groups: php.dev 
Request: Send a blank email to php-dev+get-69234@lists.php.net to get a copy of this message
I'm currently in the middle of a discussion with some fellow PHP developers regarding the speed of what we call in/out compared to echo. With in/out we mean stuff like this: // php code ?> <html>some html</html> <?php // more php The manual states that PHP treats ?><?php as an echo statement, and I don't think there can be any speed difference between the two, however one of my fellow developers thinks there is a difference, and created a test which showed a 60% speed difference (using a for loop that ran 10000 times). The test was badly executed IMO, so I ran my own which showed virtually no difference, but rather than getting into a flame-war I thought I'd just ask here for a quick answer. Is there a difference, and if so, is it significant? Regards André Næss

« previous php.dev (#69234) next »