<?php
$x = range(0, 100000);
$keys = array_map(function ($x) {
return chr(46+rand(0, 26)) . chr(46+rand(0, 26)) . chr(46+rand(0, 26)) . $x;
}, $x);
$vars = array_combine($keys, $x);
$time = 0.0;
for ($i = $runs = 100; $i-- > 0;) {
$t = microtime(TRUE);
extract($vars);
$time += microtime(TRUE) - $t;
}
echo sprintf("%.4f", $time / $runs);
- Output for 7.2.9
- 0.0068
- Output for 7.2.8
- 0.0064
- Output for 7.2.7
- 0.0041
- Output for 7.2.6
- 0.0050
- Output for 7.2.5
- 0.0044
- Output for 7.2.4
- 0.0034
- Output for 7.0.28 - 7.0.29, 7.1.15 - 7.1.18, 7.1.20, 7.2.3
Process exited with code 137.- Output for 7.1.21
- 0.0136
- Output for 7.1.19
- 0.0095
- Output for 7.0.31
- 0.0093
- Output for 7.0.30
- 0.0096
preferences:
54.65 ms | 401 KiB | 23 Q