3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define('ITERATIONS', 1000); function microtime_float() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } function keywordsWithoutMatch() { return "value1|value2|cat|dog|Plan du scénario|Plan du Scénario"; } function keywordsWithMatch() { return "test|Lëtzebuergesch|Forgatókönyv|Pirate"; } $native = "Pirate"; function benchmarkInArray($native) { for ($i = 0; $i < ITERATIONS; $i++) { $keywordTypes = array( 'Given' => explode('|', keywordsWithoutMatch()), 'When' => explode('|', keywordsWithoutMatch()), 'Then' => explode('|', keywordsWithoutMatch()), 'And' => explode('|', keywordsWithoutMatch()), 'But' => explode('|', keywordsWithMatch()) ); foreach ($keywordTypes as $type => $keywords) { if (in_array($native, $keywords) || in_array($native . '<', $keywords)) { if ($type != 'But') throw new Exception(); break; } } } } function benchmarkInArrayWithCache($native) { $keywordTypes = array( 'Given' => explode('|', keywordsWithoutMatch()), 'When' => explode('|', keywordsWithoutMatch()), 'Then' => explode('|', keywordsWithoutMatch()), 'And' => explode('|', keywordsWithoutMatch()), 'But' => explode('|', keywordsWithMatch()) ); for ($i = 0; $i < ITERATIONS; $i++) { foreach ($keywordTypes as $type => $keywords) { if (in_array($native, $keywords) || in_array($native . '<', $keywords)) { if ($type != 'But') throw new Exception(); break; } } } } function benchmarkMbStrpos($native) { for ($i = 0; $i < ITERATIONS; $i++) { $keywordTypes = array( 'Given' => keywordsWithoutMatch(), 'When' => keywordsWithoutMatch(), 'Then' => keywordsWithoutMatch(), 'And' => keywordsWithoutMatch(), 'But' => keywordsWithMatch() ); foreach ($keywordTypes as $type => $keywords) { if (false !== mb_strpos($keywords, $native)) { if ($type != 'But') throw new Exception(); break; } } } } function benchmarkMbStrposWithCache($native) { $keywordTypes = array( 'Given' => keywordsWithoutMatch(), 'When' => keywordsWithoutMatch(), 'Then' => keywordsWithoutMatch(), 'And' => keywordsWithoutMatch(), 'But' => keywordsWithMatch() ); for ($i = 0; $i < ITERATIONS; $i++) { foreach ($keywordTypes as $type => $keywords) { if (false !== mb_strpos($keywords, $native)) { if ($type != 'But') throw new Exception(); break; } } } } $time_start = microtime_float(); benchmarkInArray($native); echo "benchmark in_array: " . (microtime_float() - $time_start) . "\n"; $time_start = microtime_float(); benchmarkInArrayWithCache($native); echo "benchmark in_array with cache: " . (microtime_float() - $time_start) . "\n"; $time_start = microtime_float(); benchmarkMbStrpos($native); echo "benchmark mb_strpos: " . (microtime_float() - $time_start) . "\n"; $time_start = microtime_float(); benchmarkMbStrposWithCache($native); echo "benchmark mb_strpos with cache: " . (microtime_float() - $time_start) . "\n";
Output for 7.1.0
benchmark in_array: 0.0028431415557861 benchmark in_array with cache: 0.00080704689025879 benchmark mb_strpos: 0.0036249160766602 benchmark mb_strpos with cache: 0.0033009052276611
Output for 7.0.14
benchmark in_array: 0.0031678676605225 benchmark in_array with cache: 0.00090312957763672 benchmark mb_strpos: 0.0037930011749268 benchmark mb_strpos with cache: 0.0032999515533447
Output for 7.0.6
benchmark in_array: 0.0021181106567383 benchmark in_array with cache: 0.00060200691223145 benchmark mb_strpos: 0.0031371116638184 benchmark mb_strpos with cache: 0.0028491020202637
Output for 7.0.5
benchmark in_array: 0.0026679039001465 benchmark in_array with cache: 0.0006558895111084 benchmark mb_strpos: 0.0033228397369385 benchmark mb_strpos with cache: 0.0029768943786621
Output for 7.0.4
benchmark in_array: 0.0014619827270508 benchmark in_array with cache: 0.00041413307189941 benchmark mb_strpos: 0.0022001266479492 benchmark mb_strpos with cache: 0.0020220279693604
Output for 7.0.3
benchmark in_array: 0.0019278526306152 benchmark in_array with cache: 0.00043797492980957 benchmark mb_strpos: 0.0022459030151367 benchmark mb_strpos with cache: 0.002079963684082
Output for 7.0.2
benchmark in_array: 0.0026900768280029 benchmark in_array with cache: 0.0006110668182373 benchmark mb_strpos: 0.0031120777130127 benchmark mb_strpos with cache: 0.002769947052002
Output for 7.0.1
benchmark in_array: 0.0027108192443848 benchmark in_array with cache: 0.00060892105102539 benchmark mb_strpos: 0.0030078887939453 benchmark mb_strpos with cache: 0.0027248859405518
Output for 7.0.0
benchmark in_array: 0.0029160976409912 benchmark in_array with cache: 0.00066304206848145 benchmark mb_strpos: 0.0033900737762451 benchmark mb_strpos with cache: 0.0031278133392334
Output for 5.6.28
benchmark in_array: 0.0090310573577881 benchmark in_array with cache: 0.0040938854217529 benchmark mb_strpos: 0.0047590732574463 benchmark mb_strpos with cache: 0.0039091110229492
Output for 5.6.21
benchmark in_array: 0.0084991455078125 benchmark in_array with cache: 0.0036611557006836 benchmark mb_strpos: 0.0040340423583984 benchmark mb_strpos with cache: 0.0032508373260498
Output for 5.6.20
benchmark in_array: 0.0084869861602783 benchmark in_array with cache: 0.0036749839782715 benchmark mb_strpos: 0.0039830207824707 benchmark mb_strpos with cache: 0.0032150745391846
Output for 5.6.19
benchmark in_array: 0.0065209865570068 benchmark in_array with cache: 0.0030701160430908 benchmark mb_strpos: 0.0035841464996338 benchmark mb_strpos with cache: 0.0029120445251465
Output for 5.6.18
benchmark in_array: 0.0052030086517334 benchmark in_array with cache: 0.0025520324707031 benchmark mb_strpos: 0.00313401222229 benchmark mb_strpos with cache: 0.0026919841766357
Output for 5.6.17
benchmark in_array: 0.0061068534851074 benchmark in_array with cache: 0.0027318000793457 benchmark mb_strpos: 0.0029549598693848 benchmark mb_strpos with cache: 0.0024361610412598
Output for 5.6.16
benchmark in_array: 0.0096030235290527 benchmark in_array with cache: 0.0040690898895264 benchmark mb_strpos: 0.0043959617614746 benchmark mb_strpos with cache: 0.0036060810089111
Output for 5.6.15
benchmark in_array: 0.008976936340332 benchmark in_array with cache: 0.0037641525268555 benchmark mb_strpos: 0.0042438507080078 benchmark mb_strpos with cache: 0.0034871101379395
Output for 5.6.14
benchmark in_array: 0.0071430206298828 benchmark in_array with cache: 0.0031759738922119 benchmark mb_strpos: 0.0034818649291992 benchmark mb_strpos with cache: 0.0027780532836914
Output for 5.6.13
benchmark in_array: 0.008540153503418 benchmark in_array with cache: 0.003619909286499 benchmark mb_strpos: 0.0040988922119141 benchmark mb_strpos with cache: 0.0032498836517334
Output for 5.6.12
benchmark in_array: 0.008674144744873 benchmark in_array with cache: 0.0037670135498047 benchmark mb_strpos: 0.004033088684082 benchmark mb_strpos with cache: 0.0033109188079834
Output for 5.6.11
benchmark in_array: 0.0083820819854736 benchmark in_array with cache: 0.0037989616394043 benchmark mb_strpos: 0.0037100315093994 benchmark mb_strpos with cache: 0.0031580924987793
Output for 5.6.10
benchmark in_array: 0.0091798305511475 benchmark in_array with cache: 0.0040488243103027 benchmark mb_strpos: 0.0041940212249756 benchmark mb_strpos with cache: 0.0034561157226562
Output for 5.6.9
benchmark in_array: 0.0094091892242432 benchmark in_array with cache: 0.0038940906524658 benchmark mb_strpos: 0.0043878555297852 benchmark mb_strpos with cache: 0.0035009384155273
Output for 5.6.8
benchmark in_array: 0.0085759162902832 benchmark in_array with cache: 0.0036139488220215 benchmark mb_strpos: 0.0040459632873535 benchmark mb_strpos with cache: 0.0032370090484619
Output for 5.5.35
benchmark in_array: 0.010041952133179 benchmark in_array with cache: 0.0043141841888428 benchmark mb_strpos: 0.010478973388672 benchmark mb_strpos with cache: 0.0091760158538818
Output for 5.5.34
benchmark in_array: 0.0081050395965576 benchmark in_array with cache: 0.0036828517913818 benchmark mb_strpos: 0.0090999603271484 benchmark mb_strpos with cache: 0.008310079574585
Output for 5.5.33
benchmark in_array: 0.0083010196685791 benchmark in_array with cache: 0.0040500164031982 benchmark mb_strpos: 0.010325193405151 benchmark mb_strpos with cache: 0.0090939998626709
Output for 5.5.32
benchmark in_array: 0.0061299800872803 benchmark in_array with cache: 0.0028109550476074 benchmark mb_strpos: 0.0069758892059326 benchmark mb_strpos with cache: 0.006371021270752
Output for 5.5.31
benchmark in_array: 0.009209156036377 benchmark in_array with cache: 0.0039889812469482 benchmark mb_strpos: 0.0096650123596191 benchmark mb_strpos with cache: 0.0086848735809326
Output for 5.5.30
benchmark in_array: 0.0095689296722412 benchmark in_array with cache: 0.0041780471801758 benchmark mb_strpos: 0.010390996932983 benchmark mb_strpos with cache: 0.0092709064483643
Output for 5.5.29
benchmark in_array: 0.010152816772461 benchmark in_array with cache: 0.0044510364532471 benchmark mb_strpos: 0.0096831321716309 benchmark mb_strpos with cache: 0.0092630386352539
Output for 5.5.28
benchmark in_array: 0.01003098487854 benchmark in_array with cache: 0.0046570301055908 benchmark mb_strpos: 0.010772943496704 benchmark mb_strpos with cache: 0.009559154510498
Output for 5.5.27
benchmark in_array: 0.0080728530883789 benchmark in_array with cache: 0.0036568641662598 benchmark mb_strpos: 0.007612943649292 benchmark mb_strpos with cache: 0.0073769092559814
Output for 5.5.26
benchmark in_array: 0.0097320079803467 benchmark in_array with cache: 0.0042979717254639 benchmark mb_strpos: 0.0094280242919922 benchmark mb_strpos with cache: 0.0078489780426025
Output for 5.5.25
benchmark in_array: 0.0096709728240967 benchmark in_array with cache: 0.004356861114502 benchmark mb_strpos: 0.010623931884766 benchmark mb_strpos with cache: 0.0094277858734131
Output for 5.5.24
benchmark in_array: 0.010856866836548 benchmark in_array with cache: 0.0048069953918457 benchmark mb_strpos: 0.011317014694214 benchmark mb_strpos with cache: 0.010222196578979
Output for 5.4.45
benchmark in_array: 0.005267858505249 benchmark in_array with cache: 0.0026500225067139 benchmark mb_strpos: 0.0069141387939453 benchmark mb_strpos with cache: 0.0065059661865234
Output for 5.4.44
benchmark in_array: 0.0053939819335938 benchmark in_array with cache: 0.0027370452880859 benchmark mb_strpos: 0.0075371265411377 benchmark mb_strpos with cache: 0.0069870948791504
Output for 5.4.43
benchmark in_array: 0.008681058883667 benchmark in_array with cache: 0.0039689540863037 benchmark mb_strpos: 0.010998964309692 benchmark mb_strpos with cache: 0.0096118450164795
Output for 5.4.42
benchmark in_array: 0.0055789947509766 benchmark in_array with cache: 0.0027120113372803 benchmark mb_strpos: 0.007174015045166 benchmark mb_strpos with cache: 0.006598949432373
Output for 5.4.41
benchmark in_array: 0.0052371025085449 benchmark in_array with cache: 0.0025529861450195 benchmark mb_strpos: 0.0071918964385986 benchmark mb_strpos with cache: 0.0066540241241455
Output for 5.4.40
benchmark in_array: 0.0053501129150391 benchmark in_array with cache: 0.0026450157165527 benchmark mb_strpos: 0.0075139999389648 benchmark mb_strpos with cache: 0.0069777965545654
Output for 5.4.39
benchmark in_array: 0.0056588649749756 benchmark in_array with cache: 0.0027050971984863 benchmark mb_strpos: 0.0070500373840332 benchmark mb_strpos with cache: 0.0065279006958008
Output for 5.4.38
benchmark in_array: 0.007843017578125 benchmark in_array with cache: 0.004270076751709 benchmark mb_strpos: 0.011039972305298 benchmark mb_strpos with cache: 0.010651826858521
Output for 5.4.37
benchmark in_array: 0.0066330432891846 benchmark in_array with cache: 0.0033810138702393 benchmark mb_strpos: 0.0088779926300049 benchmark mb_strpos with cache: 0.0082228183746338
Output for 5.4.36
benchmark in_array: 0.0058708190917969 benchmark in_array with cache: 0.0026371479034424 benchmark mb_strpos: 0.0069730281829834 benchmark mb_strpos with cache: 0.0067658424377441
Output for 5.4.35
benchmark in_array: 0.005497932434082 benchmark in_array with cache: 0.002748966217041 benchmark mb_strpos: 0.0074319839477539 benchmark mb_strpos with cache: 0.006662130355835
Output for 5.4.34
benchmark in_array: 0.0091309547424316 benchmark in_array with cache: 0.0037529468536377 benchmark mb_strpos: 0.010279178619385 benchmark mb_strpos with cache: 0.0096640586853027
Output for 5.4.32
benchmark in_array: 0.0052459239959717 benchmark in_array with cache: 0.0026321411132812 benchmark mb_strpos: 0.0071771144866943 benchmark mb_strpos with cache: 0.0066978931427002
Output for 5.4.31
benchmark in_array: 0.0066821575164795 benchmark in_array with cache: 0.0030710697174072 benchmark mb_strpos: 0.0081489086151123 benchmark mb_strpos with cache: 0.0073440074920654
Output for 5.4.30
benchmark in_array: 0.0056421756744385 benchmark in_array with cache: 0.0026440620422363 benchmark mb_strpos: 0.0075860023498535 benchmark mb_strpos with cache: 0.0069801807403564
Output for 5.4.29
benchmark in_array: 0.0052788257598877 benchmark in_array with cache: 0.0025968551635742 benchmark mb_strpos: 0.0069229602813721 benchmark mb_strpos with cache: 0.006497859954834
Output for 5.4.28
benchmark in_array: 0.0054311752319336 benchmark in_array with cache: 0.0027060508728027 benchmark mb_strpos: 0.0076420307159424 benchmark mb_strpos with cache: 0.0068418979644775
Output for 5.4.27
benchmark in_array: 0.0053489208221436 benchmark in_array with cache: 0.0026149749755859 benchmark mb_strpos: 0.0068109035491943 benchmark mb_strpos with cache: 0.006458044052124
Output for 5.4.26
benchmark in_array: 0.0052080154418945 benchmark in_array with cache: 0.0028200149536133 benchmark mb_strpos: 0.0069499015808105 benchmark mb_strpos with cache: 0.0064280033111572
Output for 5.4.25
benchmark in_array: 0.0052149295806885 benchmark in_array with cache: 0.0025699138641357 benchmark mb_strpos: 0.0070700645446777 benchmark mb_strpos with cache: 0.0065939426422119
Output for 5.4.24
benchmark in_array: 0.0053818225860596 benchmark in_array with cache: 0.0027108192443848 benchmark mb_strpos: 0.0075218677520752 benchmark mb_strpos with cache: 0.0069739818572998
Output for 5.4.23
benchmark in_array: 0.0054311752319336 benchmark in_array with cache: 0.0027279853820801 benchmark mb_strpos: 0.0071868896484375 benchmark mb_strpos with cache: 0.006843090057373
Output for 5.4.22
benchmark in_array: 0.0053920745849609 benchmark in_array with cache: 0.0026898384094238 benchmark mb_strpos: 0.0076279640197754 benchmark mb_strpos with cache: 0.0068850517272949
Output for 5.4.21
benchmark in_array: 0.0057060718536377 benchmark in_array with cache: 0.0027928352355957 benchmark mb_strpos: 0.0072579383850098 benchmark mb_strpos with cache: 0.0064139366149902
Output for 5.4.20
benchmark in_array: 0.0052850246429443 benchmark in_array with cache: 0.0026330947875977 benchmark mb_strpos: 0.0070090293884277 benchmark mb_strpos with cache: 0.0068938732147217
Output for 5.4.19
benchmark in_array: 0.0056288242340088 benchmark in_array with cache: 0.0027689933776855 benchmark mb_strpos: 0.0073800086975098 benchmark mb_strpos with cache: 0.0068080425262451
Output for 5.4.18
benchmark in_array: 0.0056419372558594 benchmark in_array with cache: 0.0026929378509521 benchmark mb_strpos: 0.0076649188995361 benchmark mb_strpos with cache: 0.006821870803833
Output for 5.4.17
benchmark in_array: 0.0053691864013672 benchmark in_array with cache: 0.0026688575744629 benchmark mb_strpos: 0.0071849822998047 benchmark mb_strpos with cache: 0.0065789222717285
Output for 5.4.16
benchmark in_array: 0.0068120956420898 benchmark in_array with cache: 0.0032238960266113 benchmark mb_strpos: 0.0090110301971436 benchmark mb_strpos with cache: 0.0081779956817627
Output for 5.4.15
benchmark in_array: 0.0052649974822998 benchmark in_array with cache: 0.0026350021362305 benchmark mb_strpos: 0.0073270797729492 benchmark mb_strpos with cache: 0.0068178176879883
Output for 5.4.14
benchmark in_array: 0.0060031414031982 benchmark in_array with cache: 0.0026769638061523 benchmark mb_strpos: 0.0076730251312256 benchmark mb_strpos with cache: 0.007133960723877
Output for 5.4.13
benchmark in_array: 0.0052721500396729 benchmark in_array with cache: 0.0026938915252686 benchmark mb_strpos: 0.006943941116333 benchmark mb_strpos with cache: 0.0066890716552734
Output for 5.4.12
benchmark in_array: 0.0052399635314941 benchmark in_array with cache: 0.0026421546936035 benchmark mb_strpos: 0.0072259902954102 benchmark mb_strpos with cache: 0.0067019462585449
Output for 5.4.11
benchmark in_array: 0.0054759979248047 benchmark in_array with cache: 0.0035269260406494 benchmark mb_strpos: 0.0071821212768555 benchmark mb_strpos with cache: 0.0081450939178467
Output for 5.4.10
benchmark in_array: 0.0054030418395996 benchmark in_array with cache: 0.0026819705963135 benchmark mb_strpos: 0.0071539878845215 benchmark mb_strpos with cache: 0.0065569877624512
Output for 5.4.9
benchmark in_array: 0.005418062210083 benchmark in_array with cache: 0.0026719570159912 benchmark mb_strpos: 0.0071001052856445 benchmark mb_strpos with cache: 0.0066409111022949
Output for 5.4.8
benchmark in_array: 0.0053310394287109 benchmark in_array with cache: 0.0026600360870361 benchmark mb_strpos: 0.0072281360626221 benchmark mb_strpos with cache: 0.0066730976104736
Output for 5.4.7
benchmark in_array: 0.0055570602416992 benchmark in_array with cache: 0.0026810169219971 benchmark mb_strpos: 0.0074601173400879 benchmark mb_strpos with cache: 0.0069448947906494
Output for 5.4.6
benchmark in_array: 0.005605936050415 benchmark in_array with cache: 0.0028419494628906 benchmark mb_strpos: 0.0074300765991211 benchmark mb_strpos with cache: 0.0069060325622559
Output for 5.4.5
benchmark in_array: 0.0065279006958008 benchmark in_array with cache: 0.0032498836517334 benchmark mb_strpos: 0.0086460113525391 benchmark mb_strpos with cache: 0.0077528953552246
Output for 5.4.4
benchmark in_array: 0.0055630207061768 benchmark in_array with cache: 0.0027930736541748 benchmark mb_strpos: 0.0071828365325928 benchmark mb_strpos with cache: 0.0066421031951904
Output for 5.4.3
benchmark in_array: 0.006580114364624 benchmark in_array with cache: 0.0031981468200684 benchmark mb_strpos: 0.0090341567993164 benchmark mb_strpos with cache: 0.0081369876861572
Output for 5.4.2
benchmark in_array: 0.0053949356079102 benchmark in_array with cache: 0.0026500225067139 benchmark mb_strpos: 0.0070819854736328 benchmark mb_strpos with cache: 0.00655198097229
Output for 5.4.1
benchmark in_array: 0.0053009986877441 benchmark in_array with cache: 0.0026240348815918 benchmark mb_strpos: 0.0070319175720215 benchmark mb_strpos with cache: 0.006511926651001
Output for 5.4.0
benchmark in_array: 0.0056350231170654 benchmark in_array with cache: 0.0028588771820068 benchmark mb_strpos: 0.0073251724243164 benchmark mb_strpos with cache: 0.0066640377044678
Output for 5.3.29
benchmark in_array: 0.0095598697662354 benchmark in_array with cache: 0.0043408870697021 benchmark mb_strpos: 0.010744094848633 benchmark mb_strpos with cache: 0.009498119354248
Output for 5.3.28
benchmark in_array: 0.0057990550994873 benchmark in_array with cache: 0.0028409957885742 benchmark mb_strpos: 0.0067610740661621 benchmark mb_strpos with cache: 0.0060620307922363
Output for 5.3.27
benchmark in_array: 0.0058979988098145 benchmark in_array with cache: 0.0033318996429443 benchmark mb_strpos: 0.0070881843566895 benchmark mb_strpos with cache: 0.0061330795288086
Output for 5.3.26
benchmark in_array: 0.0058119297027588 benchmark in_array with cache: 0.0028882026672363 benchmark mb_strpos: 0.0067770481109619 benchmark mb_strpos with cache: 0.0060360431671143
Output for 5.3.25
benchmark in_array: 0.0057468414306641 benchmark in_array with cache: 0.0029549598693848 benchmark mb_strpos: 0.007206916809082 benchmark mb_strpos with cache: 0.0065631866455078
Output for 5.3.24
benchmark in_array: 0.011626005172729 benchmark in_array with cache: 0.0054311752319336 benchmark mb_strpos: 0.012564182281494 benchmark mb_strpos with cache: 0.010535955429077
Output for 5.3.23
benchmark in_array: 0.0057930946350098 benchmark in_array with cache: 0.0028531551361084 benchmark mb_strpos: 0.0072588920593262 benchmark mb_strpos with cache: 0.0068960189819336
Output for 5.3.22
benchmark in_array: 0.0062451362609863 benchmark in_array with cache: 0.0031440258026123 benchmark mb_strpos: 0.0070140361785889 benchmark mb_strpos with cache: 0.0063669681549072
Output for 5.3.21
benchmark in_array: 0.0059249401092529 benchmark in_array with cache: 0.002892017364502 benchmark mb_strpos: 0.0074849128723145 benchmark mb_strpos with cache: 0.0067920684814453
Output for 5.3.20
benchmark in_array: 0.0058841705322266 benchmark in_array with cache: 0.0028450489044189 benchmark mb_strpos: 0.0076949596405029 benchmark mb_strpos with cache: 0.0067160129547119
Output for 5.3.19
benchmark in_array: 0.0061600208282471 benchmark in_array with cache: 0.0031449794769287 benchmark mb_strpos: 0.0066111087799072 benchmark mb_strpos with cache: 0.0059988498687744
Output for 5.3.18
benchmark in_array: 0.0057179927825928 benchmark in_array with cache: 0.0028121471405029 benchmark mb_strpos: 0.0064780712127686 benchmark mb_strpos with cache: 0.0058047771453857
Output for 5.3.17
benchmark in_array: 0.0056300163269043 benchmark in_array with cache: 0.0027608871459961 benchmark mb_strpos: 0.0071649551391602 benchmark mb_strpos with cache: 0.0065088272094727
Output for 5.3.16
benchmark in_array: 0.0090398788452148 benchmark in_array with cache: 0.004425048828125 benchmark mb_strpos: 0.011397123336792 benchmark mb_strpos with cache: 0.0087871551513672
Output for 5.3.15
benchmark in_array: 0.0095009803771973 benchmark in_array with cache: 0.0037100315093994 benchmark mb_strpos: 0.010998964309692 benchmark mb_strpos with cache: 0.0096879005432129
Output for 5.3.14
benchmark in_array: 0.013603925704956 benchmark in_array with cache: 0.0061550140380859 benchmark mb_strpos: 0.014529228210449 benchmark mb_strpos with cache: 0.012079000473022
Output for 5.3.13
benchmark in_array: 0.0058579444885254 benchmark in_array with cache: 0.003014087677002 benchmark mb_strpos: 0.0067920684814453 benchmark mb_strpos with cache: 0.0060670375823975
Output for 5.3.12
benchmark in_array: 0.0060241222381592 benchmark in_array with cache: 0.0030059814453125 benchmark mb_strpos: 0.0067808628082275 benchmark mb_strpos with cache: 0.0060889720916748
Output for 5.3.11
benchmark in_array: 0.0057220458984375 benchmark in_array with cache: 0.0028750896453857 benchmark mb_strpos: 0.0068321228027344 benchmark mb_strpos with cache: 0.0061068534851074
Output for 5.3.10
benchmark in_array: 0.0058619976043701 benchmark in_array with cache: 0.0028519630432129 benchmark mb_strpos: 0.0073909759521484 benchmark mb_strpos with cache: 0.0067100524902344
Output for 5.3.9
benchmark in_array: 0.0056378841400146 benchmark in_array with cache: 0.002824068069458 benchmark mb_strpos: 0.0071380138397217 benchmark mb_strpos with cache: 0.006450891494751
Output for 5.3.8
benchmark in_array: 0.0057260990142822 benchmark in_array with cache: 0.0028340816497803 benchmark mb_strpos: 0.007519006729126 benchmark mb_strpos with cache: 0.0068409442901611
Output for 5.3.7
benchmark in_array: 0.0058469772338867 benchmark in_array with cache: 0.0030679702758789 benchmark mb_strpos: 0.0075690746307373 benchmark mb_strpos with cache: 0.0069029331207275
Output for 5.3.6
benchmark in_array: 0.0058450698852539 benchmark in_array with cache: 0.0028829574584961 benchmark mb_strpos: 0.0074689388275146 benchmark mb_strpos with cache: 0.0069360733032227
Output for 5.3.5
benchmark in_array: 0.0065550804138184 benchmark in_array with cache: 0.0032320022583008 benchmark mb_strpos: 0.0075678825378418 benchmark mb_strpos with cache: 0.0066840648651123
Output for 5.3.4
benchmark in_array: 0.0061488151550293 benchmark in_array with cache: 0.0029969215393066 benchmark mb_strpos: 0.0076861381530762 benchmark mb_strpos with cache: 0.0069711208343506
Output for 5.3.3
benchmark in_array: 0.0058250427246094 benchmark in_array with cache: 0.0028879642486572 benchmark mb_strpos: 0.007227897644043 benchmark mb_strpos with cache: 0.0064749717712402
Output for 5.3.2
benchmark in_array: 0.0057740211486816 benchmark in_array with cache: 0.0028431415557861 benchmark mb_strpos: 0.0068349838256836 benchmark mb_strpos with cache: 0.0061488151550293
Output for 5.3.1
benchmark in_array: 0.0057101249694824 benchmark in_array with cache: 0.0028350353240967 benchmark mb_strpos: 0.0067911148071289 benchmark mb_strpos with cache: 0.0061440467834473
Output for 5.3.0
benchmark in_array: 0.00565505027771 benchmark in_array with cache: 0.0032470226287842 benchmark mb_strpos: 0.0068731307983398 benchmark mb_strpos with cache: 0.0061819553375244
Output for 5.2.17
benchmark in_array: 0.0060019493103027 benchmark in_array with cache: 0.0030159950256348 benchmark mb_strpos: 0.0076260566711426 benchmark mb_strpos with cache: 0.0064690113067627
Output for 5.2.16
benchmark in_array: 0.0058732032775879 benchmark in_array with cache: 0.0029551982879639 benchmark mb_strpos: 0.0065658092498779 benchmark mb_strpos with cache: 0.0058650970458984
Output for 5.2.15
benchmark in_array: 0.010205030441284 benchmark in_array with cache: 0.0042929649353027 benchmark mb_strpos: 0.0096981525421143 benchmark mb_strpos with cache: 0.0082831382751465
Output for 5.2.14
benchmark in_array: 0.0059909820556641 benchmark in_array with cache: 0.0030078887939453 benchmark mb_strpos: 0.0068960189819336 benchmark mb_strpos with cache: 0.0060110092163086
Output for 5.2.13
benchmark in_array: 0.0059680938720703 benchmark in_array with cache: 0.0029721260070801 benchmark mb_strpos: 0.0069701671600342 benchmark mb_strpos with cache: 0.0062539577484131
Output for 5.2.12
benchmark in_array: 0.0071241855621338 benchmark in_array with cache: 0.0035579204559326 benchmark mb_strpos: 0.0079879760742188 benchmark mb_strpos with cache: 0.0069489479064941
Output for 5.2.11
benchmark in_array: 0.0095889568328857 benchmark in_array with cache: 0.0046780109405518 benchmark mb_strpos: 0.010213136672974 benchmark mb_strpos with cache: 0.0087261199951172
Output for 5.2.10
benchmark in_array: 0.009674072265625 benchmark in_array with cache: 0.0047149658203125 benchmark mb_strpos: 0.010771989822388 benchmark mb_strpos with cache: 0.009152889251709
Output for 5.2.9
benchmark in_array: 0.0060999393463135 benchmark in_array with cache: 0.0030510425567627 benchmark mb_strpos: 0.0071489810943604 benchmark mb_strpos with cache: 0.0064091682434082
Output for 5.2.8
benchmark in_array: 0.0069351196289062 benchmark in_array with cache: 0.0030310153961182 benchmark mb_strpos: 0.0041301250457764 benchmark mb_strpos with cache: 0.0033888816833496
Output for 5.2.7
benchmark in_array: 0.0060629844665527 benchmark in_array with cache: 0.0029981136322021 benchmark mb_strpos: 0.004101037979126 benchmark mb_strpos with cache: 0.0032908916473389
Output for 5.2.6
benchmark in_array: 0.0062479972839355 benchmark in_array with cache: 0.0030210018157959 benchmark mb_strpos: 0.0040860176086426 benchmark mb_strpos with cache: 0.0032689571380615
Output for 5.2.5
benchmark in_array: 0.005979061126709 benchmark in_array with cache: 0.0029799938201904 benchmark mb_strpos: 0.0039281845092773 benchmark mb_strpos with cache: 0.0031821727752686
Output for 5.2.4
benchmark in_array: 0.0060629844665527 benchmark in_array with cache: 0.0032641887664795 benchmark mb_strpos: 0.0040249824523926 benchmark mb_strpos with cache: 0.0032050609588623
Output for 5.2.3
benchmark in_array: 0.0068619251251221 benchmark in_array with cache: 0.0034201145172119 benchmark mb_strpos: 0.0043330192565918 benchmark mb_strpos with cache: 0.0035240650177002
Output for 5.2.2
benchmark in_array: 0.0060009956359863 benchmark in_array with cache: 0.0029850006103516 benchmark mb_strpos: 0.004019021987915 benchmark mb_strpos with cache: 0.0032649040222168
Output for 5.2.1
benchmark in_array: 0.0059859752655029 benchmark in_array with cache: 0.0029349327087402 benchmark mb_strpos: 0.0039050579071045 benchmark mb_strpos with cache: 0.003119945526123
Output for 5.2.0
benchmark in_array: 0.0067408084869385 benchmark in_array with cache: 0.0036318302154541 benchmark mb_strpos: 0.003957986831665 benchmark mb_strpos with cache: 0.0031890869140625
Output for 5.1.6
benchmark in_array: 0.0063340663909912 benchmark in_array with cache: 0.0034840106964111 benchmark mb_strpos: 0.0044848918914795 benchmark mb_strpos with cache: 0.0037879943847656
Output for 5.1.5
benchmark in_array: 0.0077669620513916 benchmark in_array with cache: 0.0041790008544922 benchmark mb_strpos: 0.005234956741333 benchmark mb_strpos with cache: 0.004270076751709
Output for 5.1.4
benchmark in_array: 0.010957002639771 benchmark in_array with cache: 0.005850076675415 benchmark mb_strpos: 0.0071899890899658 benchmark mb_strpos with cache: 0.0058820247650146
Output for 5.1.3
benchmark in_array: 0.007969856262207 benchmark in_array with cache: 0.0042388439178467 benchmark mb_strpos: 0.0055091381072998 benchmark mb_strpos with cache: 0.0044360160827637
Output for 5.1.2
benchmark in_array: 0.0084280967712402 benchmark in_array with cache: 0.0043408870697021 benchmark mb_strpos: 0.005587100982666 benchmark mb_strpos with cache: 0.0045239925384521
Output for 5.1.1
benchmark in_array: 0.0063459873199463 benchmark in_array with cache: 0.0035219192504883 benchmark mb_strpos: 0.0048658847808838 benchmark mb_strpos with cache: 0.0041110515594482
Output for 5.1.0
benchmark in_array: 0.01055908203125 benchmark in_array with cache: 0.0055210590362549 benchmark mb_strpos: 0.0070550441741943 benchmark mb_strpos with cache: 0.0064380168914795
Output for 5.0.5
benchmark in_array: 0.010740995407104 benchmark in_array with cache: 0.0067439079284668 benchmark mb_strpos: 0.0078229904174805 benchmark mb_strpos with cache: 0.0060989856719971
Output for 5.0.4
benchmark in_array: 0.0092229843139648 benchmark in_array with cache: 0.0057129859924316 benchmark mb_strpos: 0.0067980289459229 benchmark mb_strpos with cache: 0.0056381225585938
Output for 5.0.3
benchmark in_array: 0.014071941375732 benchmark in_array with cache: 0.0072789192199707 benchmark mb_strpos: 0.0090608596801758 benchmark mb_strpos with cache: 0.0072379112243652
Output for 5.0.2
benchmark in_array: 0.010277032852173 benchmark in_array with cache: 0.0060360431671143 benchmark mb_strpos: 0.0076591968536377 benchmark mb_strpos with cache: 0.0076570510864258
Output for 5.0.1
benchmark in_array: 0.0088300704956055 benchmark in_array with cache: 0.0051119327545166 benchmark mb_strpos: 0.0058820247650146 benchmark mb_strpos with cache: 0.0049231052398682
Output for 5.0.0
benchmark in_array: 0.01446795463562 benchmark in_array with cache: 0.0095579624176025 benchmark mb_strpos: 0.010555982589722 benchmark mb_strpos with cache: 0.0066559314727783
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_NEW in /in/81YdY on line 36
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_NEW in /in/81YdY on line 36
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/81YdY on line 36
Process exited with code 255.