Tag Archives: performance

PHP big arrays performance issues

Merge arrays
0.011364 seconds – array_merge
0.122704 seconds – array_merge + array_unique
0.003010 seconds – array1 + array2
0.051177 seconds – array1 + array2 + array_unique

Intersect arrays
0.091835 seconds – array_intersect
0.001862 seconds – array_intersect_key

Find in arrays
1.833008 seconds – in_array
0.002288 seconds – isset
0.003777 seconds – array_key_exists

Continue reading PHP big arrays performance issues