note 44760 deleted from function.eval by googleguy

From: Date: Fri, 24 Feb 2017 21:11:03 +0000
Subject: note 44760 deleted from function.eval by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-208820@lists.php.net to get a copy of this message
Note Submitter: evildictaitor at hotmail dot com ---- Be careful when using eval() on heavy usage sites in PHP 4.0+ as it takes vastly longer to activate due to the limitations of the Zend engine. The Zend engine changes the PHP to a binary structure at the START of the file, and then parses it. Every time an eval is called, however, it has to reactivate the parsing procedure and convert the eval()'d code into usable binary format again. Basically, if you eval() code, it takes as long as calling a new php page with the same code inside.

« previous php.notes (#208820) next »