PHP 8.5.0 Alpha 1 available for testing

Voting

: min(six, four)?
(Example: nine)

The Note You're Voting On

dmikam
10 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