<?php
$i=0; $j=5000;
while($i < 6000) {
$i++; $j++;
$data1[] = md5($i);
$data2[] = md5($j);
}
$time = microtime(true);
echo "Starting array_diff\n";
for ($i = 0; $i < 100; $i++) {
$data_diff1 = array_diff($data1, $data2);
}
$time = microtime(true) - $time;
echo 'array_diff() took ' . number_format($time, 3) . ' seconds and returned ' . count($data_diff1) . " entries\n";
- Output for 7.3.12
- Starting array_diff
array_diff() took 0.026 seconds and returned 5000 entries
- Output for 7.3.6 - 7.3.9, 7.3.11
- Starting array_diff
array_diff() took 0.027 seconds and returned 5000 entries
- Output for 7.3.10
- Starting array_diff
array_diff() took 0.028 seconds and returned 5000 entries
- Output for 7.3.3, 7.3.5
- Starting array_diff
array_diff() took 0.032 seconds and returned 5000 entries
- Output for 7.3.1, 7.3.4
- Starting array_diff
array_diff() took 0.031 seconds and returned 5000 entries
- Output for 7.0.20, 7.3.2
- Starting array_diff
array_diff() took 0.030 seconds and returned 5000 entries
- Output for 7.3.0
- Starting array_diff
array_diff() took 0.029 seconds and returned 5000 entries
- Output for 7.1.27 - 7.1.31, 7.1.33, 7.2.1, 7.2.5, 7.2.10 - 7.2.11, 7.2.15 - 7.2.16, 7.2.18 - 7.2.20, 7.2.22 - 7.2.24
- Starting array_diff
array_diff() took 0.035 seconds and returned 5000 entries
- Output for 7.0.1, 7.0.5, 7.2.13, 7.2.21
- Starting array_diff
array_diff() took 0.038 seconds and returned 5000 entries
- Output for 7.2.17
- Starting array_diff
array_diff() took 0.040 seconds and returned 5000 entries
- Output for 7.1.26, 7.2.2, 7.2.6 - 7.2.7, 7.2.9, 7.2.14
- Starting array_diff
array_diff() took 0.034 seconds and returned 5000 entries
- Output for 7.0.4, 7.1.32, 7.2.0, 7.2.3 - 7.2.4, 7.2.8, 7.2.12
- Starting array_diff
array_diff() took 0.036 seconds and returned 5000 entries
- Output for 7.1.25
- Starting array_diff
array_diff() took 0.048 seconds and returned 5000 entries
- Output for 7.0.2 - 7.0.3, 7.0.14, 7.1.0, 7.1.7
- Starting array_diff
array_diff() took 0.041 seconds and returned 5000 entries
- Output for 7.1.6
- Starting array_diff
array_diff() took 0.051 seconds and returned 5000 entries
- Output for 7.1.5
- Starting array_diff
array_diff() took 0.057 seconds and returned 5000 entries
- Output for 7.0.6
- Starting array_diff
array_diff() took 0.046 seconds and returned 5000 entries
- Output for 7.0.0
- Starting array_diff
array_diff() took 0.033 seconds and returned 5000 entries
- Output for 5.6.28
- Starting array_diff
array_diff() took 0.071 seconds and returned 5000 entries
- Output for 5.6.21
- Starting array_diff
array_diff() took 0.628 seconds and returned 5000 entries
- Output for 5.4.2, 5.4.5, 5.6.20
- Starting array_diff
array_diff() took 0.660 seconds and returned 5000 entries
- Output for 5.6.19
- Starting array_diff
array_diff() took 0.637 seconds and returned 5000 entries
- Output for 5.6.18
- Starting array_diff
array_diff() took 0.646 seconds and returned 5000 entries
- Output for 5.6.17
- Starting array_diff
array_diff() took 0.653 seconds and returned 5000 entries
- Output for 5.6.16
- Starting array_diff
array_diff() took 0.639 seconds and returned 5000 entries
- Output for 5.6.15
- Starting array_diff
array_diff() took 0.659 seconds and returned 5000 entries
- Output for 5.6.14
- Starting array_diff
array_diff() took 0.700 seconds and returned 5000 entries
- Output for 5.4.12, 5.4.44, 5.5.29, 5.6.13
- Starting array_diff
array_diff() took 0.673 seconds and returned 5000 entries
- Output for 5.6.12
- Starting array_diff
array_diff() took 0.631 seconds and returned 5000 entries
- Output for 5.6.11
- Starting array_diff
array_diff() took 0.629 seconds and returned 5000 entries
- Output for 5.6.10
- Starting array_diff
array_diff() took 0.656 seconds and returned 5000 entries
- Output for 5.6.9
- Starting array_diff
array_diff() took 0.663 seconds and returned 5000 entries
- Output for 5.5.34, 5.6.8
- Starting array_diff
array_diff() took 0.632 seconds and returned 5000 entries
- Output for 5.4.6, 5.6.7
- Starting array_diff
array_diff() took 0.640 seconds and returned 5000 entries
- Output for 5.5.35
- Starting array_diff
array_diff() took 0.691 seconds and returned 5000 entries
- Output for 5.5.33
- Starting array_diff
array_diff() took 0.634 seconds and returned 5000 entries
- Output for 5.5.32
- Starting array_diff
array_diff() took 0.722 seconds and returned 5000 entries
- Output for 5.5.31
- Starting array_diff
array_diff() took 0.655 seconds and returned 5000 entries
- Output for 5.5.30
- Starting array_diff
array_diff() took 0.619 seconds and returned 5000 entries
- Output for 5.4.4, 5.5.28
- Starting array_diff
array_diff() took 0.651 seconds and returned 5000 entries
- Output for 5.5.27
- Starting array_diff
array_diff() took 0.682 seconds and returned 5000 entries
- Output for 5.5.26
- Starting array_diff
array_diff() took 0.696 seconds and returned 5000 entries
- Output for 5.4.41, 5.5.25
- Starting array_diff
array_diff() took 0.688 seconds and returned 5000 entries
- Output for 5.5.24
- Starting array_diff
array_diff() took 0.724 seconds and returned 5000 entries
- Output for 5.4.45
- Starting array_diff
array_diff() took 0.621 seconds and returned 5000 entries
- Output for 5.4.43
- Starting array_diff
array_diff() took 0.618 seconds and returned 5000 entries
- Output for 5.4.15, 5.4.42
- Starting array_diff
array_diff() took 0.662 seconds and returned 5000 entries
- Output for 5.4.40
- Starting array_diff
array_diff() took 0.669 seconds and returned 5000 entries
- Output for 5.4.39
- Starting array_diff
array_diff() took 0.835 seconds and returned 5000 entries
- Output for 5.4.38
- Starting array_diff
array_diff() took 0.606 seconds and returned 5000 entries
- Output for 5.4.37
- Starting array_diff
array_diff() took 0.613 seconds and returned 5000 entries
- Output for 5.4.36
- Starting array_diff
array_diff() took 0.633 seconds and returned 5000 entries
- Output for 5.4.35
- Starting array_diff
array_diff() took 0.624 seconds and returned 5000 entries
- Output for 5.4.34
- Starting array_diff
array_diff() took 0.625 seconds and returned 5000 entries
- Output for 5.4.32
- Starting array_diff
array_diff() took 1.239 seconds and returned 5000 entries
- Output for 5.4.31
- Starting array_diff
array_diff() took 0.814 seconds and returned 5000 entries
- Output for 5.4.30
- Starting array_diff
array_diff() took 1.046 seconds and returned 5000 entries
- Output for 5.4.29
- Starting array_diff
array_diff() took 1.031 seconds and returned 5000 entries
- Output for 5.4.28
- Starting array_diff
array_diff() took 1.331 seconds and returned 5000 entries
- Output for 5.4.27
- Starting array_diff
array_diff() took 1.209 seconds and returned 5000 entries
- Output for 5.4.26
- Starting array_diff
array_diff() took 1.006 seconds and returned 5000 entries
- Output for 5.4.25
- Starting array_diff
array_diff() took 0.958 seconds and returned 5000 entries
- Output for 5.4.24
- Starting array_diff
array_diff() took 1.541 seconds and returned 5000 entries
- Output for 5.4.23
- Starting array_diff
array_diff() took 1.000 seconds and returned 5000 entries
- Output for 5.4.22
- Starting array_diff
array_diff() took 1.306 seconds and returned 5000 entries
- Output for 5.4.21
- Starting array_diff
array_diff() took 0.932 seconds and returned 5000 entries
- Output for 5.4.7, 5.4.20
- Starting array_diff
array_diff() took 0.667 seconds and returned 5000 entries
- Output for 5.4.19
- Starting array_diff
array_diff() took 0.679 seconds and returned 5000 entries
- Output for 5.4.18
- Starting array_diff
array_diff() took 0.684 seconds and returned 5000 entries
- Output for 5.4.17
- Starting array_diff
array_diff() took 0.676 seconds and returned 5000 entries
- Output for 5.4.16
- Starting array_diff
array_diff() took 0.693 seconds and returned 5000 entries
- Output for 5.4.14
- Starting array_diff
array_diff() took 0.627 seconds and returned 5000 entries
- Output for 5.4.13
- Starting array_diff
array_diff() took 0.642 seconds and returned 5000 entries
- Output for 5.4.11
- Starting array_diff
array_diff() took 0.757 seconds and returned 5000 entries
- Output for 5.4.8 - 5.4.10
- Starting array_diff
array_diff() took 0.689 seconds and returned 5000 entries
- Output for 5.4.3
- Starting array_diff
array_diff() took 0.647 seconds and returned 5000 entries
- Output for 5.4.1
- Starting array_diff
array_diff() took 0.672 seconds and returned 5000 entries
- Output for 5.4.0
- Starting array_diff
array_diff() took 0.652 seconds and returned 5000 entries
preferences:
147.29 ms | 401 KiB | 138 Q