tag:blogger.com,1999:blog-6669934595599937894.post6488828226407918327..comments2023-09-07T08:05:54.807-07:00Comments on Obvious Hints: Benchmarking die("Hello world!"); VS. exit("Hello world!"); VS. echo "Hello World!"; on PHPAlvarohttp://www.blogger.com/profile/05177930414107959806noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-6669934595599937894.post-51169900769597918832011-08-19T07:53:09.825-07:002011-08-19T07:53:09.825-07:00PHP source code for 5.3.7
File: ./Zend/zend_langu...PHP source code for 5.3.7 <br />File: ./Zend/zend_language_scanner.l<br />Line: 873-879<br /><br />"exit" {<br /> return T_EXIT;<br />}<br /><br />"die" {<br /> return T_EXIT;<br />}<br /><br />Should be the same result for die and exit, we recommend verify the results on the test.<br /><br />Best RegardsAmephisthttps://www.blogger.com/profile/03331842444338246208noreply@blogger.comtag:blogger.com,1999:blog-6669934595599937894.post-43226653305729741962008-09-01T04:04:00.000-07:002008-09-01T04:04:00.000-07:00tsss, you covered up your failure; but I know and ...tsss, you covered up your failure; but I know and people will too. Still it misses some details of your experimentation like the php source code used, the compilation flags for php... Overall and being very tolerant, it looks like exit is the way to go. Can we see an concrete example on how to use this? An integration in a small MVC design pattern?Unknownhttps://www.blogger.com/profile/01766625300129957306noreply@blogger.comtag:blogger.com,1999:blog-6669934595599937894.post-62210410520553462812008-09-01T04:01:00.000-07:002008-09-01T04:01:00.000-07:00@bobyNice point! Fixed!@boby<BR/>Nice point! Fixed!Alvaro Videlahttps://www.blogger.com/profile/07031263601534602454noreply@blogger.comtag:blogger.com,1999:blog-6669934595599937894.post-42537555710578079272008-09-01T03:55:00.000-07:002008-09-01T03:55:00.000-07:00Whaaaaaat??? which kind of test is this???? 75 hit...Whaaaaaat??? which kind of test is this???? 75 hits for exit and 250 hits for the others... Obviously wrong!Unknownhttps://www.blogger.com/profile/01766625300129957306noreply@blogger.com