note 102785 deleted from functions.anonymous by cmb

From: Date: Sun, 08 Dec 2019 11:31:38 +0000
Subject: note 102785 deleted from functions.anonymous by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-213468@lists.php.net to get a copy of this message
Note Submitter: paul at somewhere dot com ---- I benched instantiating a function and lambda function. Functions used: <?php function data() { $var = 'hi'; } $lambda = function() { $var = 'hi'; } ?> Bench for instantiating a function: 1.692800000000000082422957 μs Bench for instantiating Lambda Function: 0.906000000000000027533531 μs Bench for calling function: 0.7153000000000000468958206 μs Bench for calling lambda function: 0.6914000000000000145661261 μs Calling the lambda function and regular function fluctuates between .81 and .65 so they seem to be the same.

« previous php.notes (#213468) next »