PHP 8.4.24 Released!

Voting

: min(five, eight)?
(Example: nine)

The Note You're Voting On

dmikam
11 years ago
I have made some tests to compare the speed of next constructions:
<?php

extract($ARRAY);

// vs. 

foreach($ARRAY as $key=>$value) 
    $$key = $value; 
?>

Surprisingly for me extract is 20%-80% slower then foreach construction. I don't really understand why, but it's so.

<< Back to user notes page

To Top