3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $numbers = range(32, 127); $numbersLetters = array_map('chr', $numbers); for (;;) { $numbersLetters = array_merge($numbersLetters, $numbersLetters); if (count($numbersLetters) > 1000) { break; } } $numbers = range(1, count($numbersLetters)); printf("Sample size: %d elements in 2 arrays (%d total) \n", count($numbers), count($numbers) + count($numbersLetters)); // =============================------------=============================== printf("Benchmarking speed in foreach + in_array() scenario... (this might take a while) "); shuffle($numbers); shuffle($numbersLetters); $t1 = microtime(true); foreach ($numbers as $number) { if (in_array($number, $numbersLetters)) {} } $t2 = microtime(true); printf("DONE!\n"); printf("Time elapsed: %.5f \n", $t2 - $t1); // =============================------------=============================== printf("Benchmarking speed in array as needle in in_array() scenario... "); shuffle($numbers); shuffle($numbersLetters); $t1 = microtime(true); var_dump(in_array($numbers, $numbersLetters)); $t2 = microtime(true); printf("DONE!\n"); printf("Time elapsed: %.5f \n", $t2 - $t1); // =============================------------=============================== printf("Benchmarking speed with array_intersect..."); shuffle($numbers); shuffle($numbersLetters); $t1 = microtime(true); array_intersect($numbers, $numbersLetters); $t2 = microtime(true); printf("DONE!\n"); printf("Time elapsed: %.5f \n", $t2 - $t1);
Output for 7.3.1
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.06769 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00005 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00183
Output for 7.3.0
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.06480 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00005 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00163
Output for 7.2.13
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.09593 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00004 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00177
Output for 7.2.12
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.07142 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00003 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00167
Output for 7.2.11
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.07075 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00003 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00170
Output for 7.2.10
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.06014 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00004 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00168
Output for 7.2.9
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.06996 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00004 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00165
Output for 7.2.8
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.06403 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00004 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00213
Output for 7.2.7
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.06815 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00004 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00173
Output for 7.2.6
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.06909 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00004 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00168
Output for 7.2.5
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.07329 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00004 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00183
Output for 7.2.4
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.09145 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00006 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00276
Output for 7.2.3
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.07387 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00004 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00181
Output for 7.2.2
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.06465 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00004 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00184
Output for 7.2.1
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.06613 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00005 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00180
Output for 7.2.0
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.06333 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00005 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00226
Output for 7.1.25
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.07476 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00004 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00174
Output for 7.1.10
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.03485 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00003 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00128
Output for 7.1.7
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.03987 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00005 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00118
Output for 7.1.6
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.05354 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00005 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00185
Output for 7.1.5
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.08424 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00007 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00227
Output for 7.1.4
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.05658 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00005 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00167
Output for 7.1.3
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.05516 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00005 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00167
Output for 7.1.2
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.05335 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00009 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00214
Output for 7.1.1
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.06085 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00008 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00294
Output for 7.1.0
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.09554 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00013 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00371
Output for 7.0.20
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.07734 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00005 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00206
Output for 7.0.19
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.06038 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00005 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00172
Output for 7.0.18
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.08820 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00010 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00316
Output for 7.0.17
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.05302 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00006 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00186
Output for 7.0.16
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.05488 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00008 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00193
Output for 7.0.15
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.05642 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00011 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00191
Output for 7.0.14
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.05305 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00007 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00255
Output for 7.0.13
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.05398 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00007 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00183
Output for 7.0.12
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.07716 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00006 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00168
Output for 7.0.11
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.08252 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00008 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00174
Output for 7.0.10
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.05697 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00007 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00163
Output for 7.0.9
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.05663 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00007 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00198
Output for 7.0.8
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.05842 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00008 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00185
Output for 7.0.7
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.07931 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00015 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00411
Output for 7.0.6
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.06384 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00006 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00184
Output for 7.0.5
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.05681 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00007 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00209
Output for 7.0.4
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.11701 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00012 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00244
Output for 7.0.3
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.06136 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00015 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00181
Output for 7.0.2
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.05367 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00011 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00206
Output for 7.0.1
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.05451 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00007 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00195
Output for 7.0.0
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.07631 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00007 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00188
Output for hhvm-3.15.4
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.04128 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00004 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00015
Output for 5.6.30
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.08059 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00010 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00454
Output for 5.6.29
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.12370 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00016 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.01083
Output for 5.6.28
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.14363 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00006 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00497
Output for 5.6.27
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.10094 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00009 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00544
Output for 5.6.26
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.08430 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00014 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00455
Output for 5.6.25
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.08030 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00007 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00449
Output for 5.6.24
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.08155 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00007 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00419
Output for 5.6.23
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.08217 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00008 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00644
Output for 5.6.22
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.08192 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00009 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00558
Output for 5.6.21
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.10014 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00007 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00399
Output for 5.6.20
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.09364 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00007 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00502
Output for 5.6.19
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.08439 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00012 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00429
Output for 5.6.18
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.09869 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00009 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00547
Output for 5.6.17
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.08123 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00006 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00481
Output for 5.6.16
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.08208 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00006 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00502
Output for 5.6.15
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.10577 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00015 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.01020
Output for 5.6.14
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.07818 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00006 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00631
Output for 5.6.13
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.08232 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00006 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00429
Output for 5.6.12
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.10517 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00009 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00485
Output for 5.6.11
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.08232 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00008 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00546
Output for 5.6.10
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.08877 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00007 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00446
Output for 5.6.9
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.08022 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00006 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00443
Output for 5.6.8
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.13270 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00008 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.01022
Output for 5.6.7
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.08411 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00006 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00503
Output for 5.6.6
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.08798 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00009 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00555
Output for 5.6.5
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.15233 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00014 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00568
Output for 5.6.4
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.09862 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00009 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00515
Output for 5.6.3
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.19573 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00022 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.01429
Output for 5.6.2
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.19936 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00018 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00714
Output for 5.6.1
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.17386 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00022 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00868
Output for 5.6.0
Sample size: 1536 elements in 2 arrays (3072 total) Benchmarking speed in foreach + in_array() scenario... (this might take a while) DONE! Time elapsed: 0.15725 Benchmarking speed in array as needle in in_array() scenario... bool(false) DONE! Time elapsed: 0.00006 Benchmarking speed with array_intersect...DONE! Time elapsed: 0.00429