note 103785 deleted from function.eval by danbrown

From: Date: Tue, 03 May 2011 19:08:17 +0000
Subject: note 103785 deleted from function.eval by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-179384@lists.php.net to get a copy of this message
Note Submitter: kellymartin ---- Be careful when running performance tests comparing eval to other alternatives. alexis at amigo dot com (from below) has a faulty test due to the fact that he is calling the *include* function inside his loop. The test results are therefore not based on eval vs inline code, but rather the speed at which the server can include a file. A more accurate test would be to use file_get_contents and then use eval on that result, or to just scrap the test entirely and try to use eval sparingly.

« previous php.notes (#179384) next »