PHP 8.5.0 RC 2 available for testing

Voting

: zero plus seven?
(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

AltStyle によって変換されたページ (->オリジナル) /