3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /** * @param array $functions An associative array of closures to benchmark * @param int $iterations The number of iterations */ function benchmark($functions, $iterations) { foreach ($functions as $name => $function) { $start = microtime(true); for ($i = 0; $i < $iterations; $i++) { call_user_func($function); } $delta = microtime(true) - $start; echo "$name: " . $delta . "\n"; } } echo "\nBenchmarking \"(array) \$var === \$var\" vs \"is_array(\$var)\" ...\n"; $data = array( 'string', // Not an array array(1, 2, 3), // Small array array_fill(1, 1000, uniqid()) // Large-ish array ); benchmark(array( 'casting' => function () use ($data) { foreach ($data as $d) { $result = (array) $d === $d; } }, 'is_array' => function () use ($data) { foreach ($data as $d) { $result = is_array($d); } } ), 1000); echo "\nBenchmarking \"count(\$var) == 0\" vs \"empty(\$var)\" ...\n"; $data = range(1, 100000); benchmark(array( 'count()' => function () use ($data) { $result = count($data) == 0; }, 'empty()' => function () use ($data) { $result = empty($data); } ), 100000); echo "\nBenchmarking \"array_key_exists(\$key, \$array)\" vs \"\$array[\$key]\" ...\n"; $data = array_fill_keys(range(1, 1000), uniqid()); benchmark(array( 'in_array_keys()' => function () use ($data) { $result = array_key_exists(50, $data) ? : null; }, 'key check' => function () use ($data) { $result = isset($data[50]) ? $data[50] : null; } ), 100000);
based on DQ2fb
Output for 7.1.0
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.00028300285339355 is_array: 0.00017094612121582 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.011126041412354 empty(): 0.0086209774017334 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.010846138000488 key check: 0.0090498924255371
Output for 7.0.14
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.00031018257141113 is_array: 0.00020503997802734 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.016877889633179 empty(): 0.011584043502808 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.013406038284302 key check: 0.012151956558228
Output for 7.0.6
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.00015807151794434 is_array: 0.00010299682617188 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.0074291229248047 empty(): 0.0058290958404541 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.0074291229248047 key check: 0.0068089962005615
Output for 7.0.5
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.00024509429931641 is_array: 0.00015497207641602 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.009627103805542 empty(): 0.0068459510803223 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.0090298652648926 key check: 0.008065938949585
Output for 7.0.4
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.00023293495178223 is_array: 0.00016593933105469 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.010693073272705 empty(): 0.0064442157745361 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.008497953414917 key check: 0.0078380107879639
Output for 7.0.3
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.0001671314239502 is_array: 0.00011682510375977 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.0075540542602539 empty(): 0.0060501098632812 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.0078251361846924 key check: 0.0070009231567383
Output for 7.0.2
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.00021505355834961 is_array: 0.00012707710266113 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.0088009834289551 empty(): 0.0068380832672119 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.0088388919830322 key check: 0.0077910423278809
Output for 7.0.1
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.00020694732666016 is_array: 0.00013113021850586 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.0093600749969482 empty(): 0.0071628093719482 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.0091290473937988 key check: 0.0079238414764404
Output for 7.0.0
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.00017881393432617 is_array: 0.00010514259338379 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.0072500705718994 empty(): 0.0058798789978027 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.0076351165771484 key check: 0.0072469711303711
Output for hhvm-3.12.0
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.00029802322387695 is_array: 0.00022506713867188 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.025052070617676 empty(): 0.012513160705566 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.014754056930542 key check: 0.016430139541626
Output for hhvm-3.10.0
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.00045013427734375 is_array: 0.00034594535827637 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.02408504486084 empty(): 0.015878915786743 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.017658948898315 key check: 0.02146315574646
Output for 5.6.28
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.052184104919434 is_array: 0.0010337829589844 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.043938875198364 empty(): 0.030194997787476 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.041422843933105 key check: 0.029017925262451
Output for 5.6.21
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.032932996749878 is_array: 0.00074887275695801 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.032569169998169 empty(): 0.02618408203125 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.033782958984375 key check: 0.029047012329102
Output for 5.6.20
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.032640933990479 is_array: 0.00069403648376465 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.030699014663696 empty(): 0.024683952331543 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.032432079315186 key check: 0.026462078094482
Output for 5.6.19
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.030677080154419 is_array: 0.00064492225646973 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.030496120452881 empty(): 0.024158000946045 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.033332109451294 key check: 0.0257568359375
Output for 5.6.18
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.037214040756226 is_array: 0.00063610076904297 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.030394077301025 empty(): 0.024447917938232 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.031841039657593 key check: 0.026086091995239
Output for 5.6.17
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.035310029983521 is_array: 0.00074505805969238 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.031044006347656 empty(): 0.02488899230957 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.032005071640015 key check: 0.026470899581909
Output for 5.6.16
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.043207883834839 is_array: 0.00084114074707031 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.031307935714722 empty(): 0.024512052536011 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.031861066818237 key check: 0.026021003723145
Output for 5.6.15
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.044221162796021 is_array: 0.00094699859619141 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.036190986633301 empty(): 0.026336908340454 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.031865835189819 key check: 0.026313066482544
Output for 5.6.14
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.032718896865845 is_array: 0.00069403648376465 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.031251907348633 empty(): 0.024984121322632 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.031959772109985 key check: 0.026784181594849
Output for 5.6.13
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.033833980560303 is_array: 0.00070714950561523 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.030481100082397 empty(): 0.024652004241943 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.032006025314331 key check: 0.026445150375366
Output for 5.6.12
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.032411098480225 is_array: 0.0006859302520752 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.032019138336182 empty(): 0.02564001083374 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.034983158111572 key check: 0.027800798416138
Output for 5.6.11
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.037326812744141 is_array: 0.00076198577880859 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.030937910079956 empty(): 0.0243821144104 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.031723976135254 key check: 0.026098966598511
Output for 5.6.10
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.050272941589355 is_array: 0.00098681449890137 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.037046909332275 empty(): 0.027029037475586 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.034020900726318 key check: 0.027524948120117
Output for 5.6.9
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.029860019683838 is_array: 0.00065898895263672 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.028841018676758 empty(): 0.023620128631592 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.030378818511963 key check: 0.025084018707275
Output for 5.6.8
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.032828092575073 is_array: 0.00069999694824219 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.031814098358154 empty(): 0.025690078735352 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.03368616104126 key check: 0.027585029602051
Output for 5.5.35
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.045258045196533 is_array: 0.0009758472442627 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.03486704826355 empty(): 0.025316953659058 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.033111095428467 key check: 0.026793956756592
Output for 5.5.34
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.035836219787598 is_array: 0.00077700614929199 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.030784130096436 empty(): 0.024581909179688 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.032883882522583 key check: 0.026586055755615
Output for 5.5.33
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.046064138412476 is_array: 0.00092411041259766 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.035913944244385 empty(): 0.025768995285034 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.0331871509552 key check: 0.026458024978638
Output for 5.5.32
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.039511919021606 is_array: 0.00085997581481934 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.03344202041626 empty(): 0.024740934371948 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.032877922058105 key check: 0.026422023773193
Output for 5.5.31
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.038574934005737 is_array: 0.00072693824768066 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.031382083892822 empty(): 0.024980068206787 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.032886981964111 key check: 0.026971101760864
Output for 5.5.30
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.036088943481445 is_array: 0.00075602531433105 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.03131890296936 empty(): 0.02465295791626 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.033765077590942 key check: 0.026636838912964
Output for 5.5.29
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.040977954864502 is_array: 0.00087213516235352 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.033699989318848 empty(): 0.02469801902771 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.033143997192383 key check: 0.026432991027832
Output for 5.5.28
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.034798860549927 is_array: 0.00079798698425293 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.031337022781372 empty(): 0.025094985961914 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.032830953598022 key check: 0.026902914047241
Output for 5.5.27
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.050522089004517 is_array: 0.0011551380157471 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.034859895706177 empty(): 0.024496078491211 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.033365964889526 key check: 0.026310205459595
Output for 5.5.26
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.042324066162109 is_array: 0.00089406967163086 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.034090042114258 empty(): 0.024816989898682 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.032922029495239 key check: 0.026274919509888
Output for 5.5.25
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.046381950378418 is_array: 0.0010111331939697 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.036579847335815 empty(): 0.026366949081421 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.032789945602417 key check: 0.026496171951294
Output for 5.5.24
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.045949935913086 is_array: 0.00089478492736816 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.036735057830811 empty(): 0.029320955276489 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.034712076187134 key check: 0.028172016143799
Output for 5.4.45
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.056942939758301 is_array: 0.0014169216156006 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.05447793006897 empty(): 0.042147159576416 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.075342893600464 key check: 0.064342975616455
Output for 5.4.44
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.048058986663818 is_array: 0.0010759830474854 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.055467844009399 empty(): 0.036706924438477 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.048105001449585 key check: 0.057182788848877
Output for 5.4.43
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.046760082244873 is_array: 0.0010590553283691 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.046273946762085 empty(): 0.087577104568481 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.085757970809937 key check: 0.043462038040161
Output for 5.4.42
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.087284088134766 is_array: 0.0027670860290527 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.045880794525146 empty(): 0.036778926849365 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.051359891891479 key check: 0.040907859802246
Output for 5.4.41
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.049288034439087 is_array: 0.0012061595916748 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.047790050506592 empty(): 0.034778118133545 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.050111055374146 key check: 0.046649932861328
Output for 5.4.40
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.053130149841309 is_array: 0.00098800659179688 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.047752857208252 empty(): 0.03398609161377 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.051176071166992 key check: 0.04041314125061
Output for 5.4.39
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.049657106399536 is_array: 0.0013267993927002 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.054008007049561 empty(): 0.048469066619873 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.056475877761841 key check: 0.048902034759521
Output for 5.4.38
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.060955047607422 is_array: 0.0020198822021484 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.12041687965393 empty(): 0.088474988937378 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.14699792861938 key check: 0.096699953079224
Output for 5.4.37
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.056402921676636 is_array: 0.00099897384643555 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.045345067977905 empty(): 0.034142017364502 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.058121919631958 key check: 0.045527935028076
Output for 5.4.36
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.050537109375 is_array: 0.0010750293731689 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.048650026321411 empty(): 0.034340143203735 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.061866044998169 key check: 0.040483951568604
Output for 5.4.35
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.097177982330322 is_array: 0.0011970996856689 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.055348873138428 empty(): 0.055782079696655 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.051351070404053 key check: 0.077583074569702
Output for 5.4.34
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.050060033798218 is_array: 0.001072883605957 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.050329208374023 empty(): 0.03574013710022 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.05119800567627 key check: 0.046870946884155
Output for 5.4.32
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.069727897644043 is_array: 0.00082898139953613 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.036900043487549 empty(): 0.026407957077026 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.037902116775513 key check: 0.031486988067627
Output for 5.4.31
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.038396120071411 is_array: 0.001183032989502 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.036650896072388 empty(): 0.027274131774902 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.056231021881104 key check: 0.032523155212402
Output for 5.4.30
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.036350011825562 is_array: 0.00085306167602539 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.034792900085449 empty(): 0.027945041656494 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.036681890487671 key check: 0.032346963882446
Output for 5.4.29
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.036092042922974 is_array: 0.00085997581481934 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.035768032073975 empty(): 0.026766061782837 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.0380699634552 key check: 0.032603979110718
Output for 5.4.28
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.049181938171387 is_array: 0.00088620185852051 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.04143500328064 empty(): 0.030375003814697 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.054994106292725 key check: 0.052284002304077
Output for 5.4.27
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.059643030166626 is_array: 0.0017108917236328 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.077507019042969 empty(): 0.027933120727539 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.037838935852051 key check: 0.033156871795654
Output for 5.4.26
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.036123991012573 is_array: 0.00084400177001953 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.035419940948486 empty(): 0.033346891403198 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.039055109024048 key check: 0.030383110046387
Output for 5.4.25
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.036968946456909 is_array: 0.00087785720825195 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.039438962936401 empty(): 0.029515027999878 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.040239095687866 key check: 0.043670892715454
Output for 5.4.24
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.036036968231201 is_array: 0.00083017349243164 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.035852909088135 empty(): 0.029184103012085 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.04026198387146 key check: 0.030267000198364
Output for 5.4.23
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.03687596321106 is_array: 0.00086593627929688 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.037487030029297 empty(): 0.047467947006226 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.038846969604492 key check: 0.032992839813232
Output for 5.4.22
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.036652088165283 is_array: 0.00079011917114258 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.035588026046753 empty(): 0.028645038604736 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.038862943649292 key check: 0.032236099243164
Output for 5.4.21
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.035809993743896 is_array: 0.00079989433288574 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.038738012313843 empty(): 0.029998064041138 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.038344860076904 key check: 0.032895088195801
Output for 5.4.20
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.036650896072388 is_array: 0.00083613395690918 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.036272048950195 empty(): 0.0277419090271 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.03746485710144 key check: 0.032647848129272
Output for 5.4.19
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.03534197807312 is_array: 0.00089097023010254 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.041922092437744 empty(): 0.034693956375122 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.060017108917236 key check: 0.043781042098999
Output for 5.4.18
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.037040948867798 is_array: 0.0010008811950684 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.044214010238647 empty(): 0.035729169845581 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.045988082885742 key check: 0.039378881454468
Output for 5.4.17
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.036176919937134 is_array: 0.00082302093505859 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.035491943359375 empty(): 0.028534173965454 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.042622804641724 key check: 0.042490005493164
Output for 5.4.16
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.038064002990723 is_array: 0.0009150505065918 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.040015935897827 empty(): 0.027395009994507 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.038814067840576 key check: 0.033636808395386
Output for 5.4.15
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.036401987075806 is_array: 0.00087308883666992 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.036440849304199 empty(): 0.028329133987427 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.049181938171387 key check: 0.030674934387207
Output for 5.4.14
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.035437822341919 is_array: 0.00088095664978027 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.038246870040894 empty(): 0.028377056121826 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.040949106216431 key check: 0.033336877822876
Output for 5.4.13
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.036816835403442 is_array: 0.00089383125305176 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.04649806022644 empty(): 0.031553983688354 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.038548946380615 key check: 0.038064002990723
Output for 5.4.12
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.037641048431396 is_array: 0.00087785720825195 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.039500951766968 empty(): 0.029834032058716 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.039530038833618 key check: 0.033130884170532
Output for 5.4.11
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.039123058319092 is_array: 0.00087809562683105 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.041706085205078 empty(): 0.032909870147705 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.047555923461914 key check: 0.034886837005615
Output for 5.4.10
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.038703918457031 is_array: 0.00082087516784668 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.039213895797729 empty(): 0.029155015945435 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.038855075836182 key check: 0.03172492980957
Output for 5.4.9
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.036997079849243 is_array: 0.00085210800170898 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.042710065841675 empty(): 0.031079053878784 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.038946866989136 key check: 0.03333306312561
Output for 5.4.8
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.037179946899414 is_array: 0.00086092948913574 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.053993940353394 empty(): 0.035829067230225 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.042893886566162 key check: 0.035433053970337
Output for 5.4.7
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.036288976669312 is_array: 0.00084185600280762 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.040227890014648 empty(): 0.030368089675903 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.046993017196655 key check: 0.037821054458618
Output for 5.4.6
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.036163091659546 is_array: 0.00084114074707031 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.041858196258545 empty(): 0.030570983886719 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.042260885238647 key check: 0.036458969116211
Output for 5.4.5
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.037757873535156 is_array: 0.00088000297546387 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.038210153579712 empty(): 0.028198957443237 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.042538166046143 key check: 0.031410932540894
Output for 5.4.4
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.038442134857178 is_array: 0.00084209442138672 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.04052996635437 empty(): 0.027122974395752 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.053069829940796 key check: 0.031875133514404
Output for 5.4.3
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.037091016769409 is_array: 0.00081992149353027 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.04285192489624 empty(): 0.028352022171021 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.047122955322266 key check: 0.035155057907104
Output for 5.4.2
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.038208961486816 is_array: 0.00080609321594238 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.040050029754639 empty(): 0.02850079536438 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.038563013076782 key check: 0.03355598449707
Output for 5.4.1
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.04118800163269 is_array: 0.0016989707946777 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.04577898979187 empty(): 0.027014017105103 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.04428505897522 key check: 0.033504009246826
Output for 5.4.0
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.037875175476074 is_array: 0.00092697143554688 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.044110059738159 empty(): 0.033105134963989 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.036648988723755 key check: 0.040488004684448
Output for 5.3.29
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.036272048950195 is_array: 0.00087618827819824 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.046443939208984 empty(): 0.034507989883423 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.048203945159912 key check: 0.034739017486572
Output for 5.3.28
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.033463001251221 is_array: 0.00098085403442383 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.043193101882935 empty(): 0.030996084213257 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.046522855758667 key check: 0.035665988922119
Output for 5.3.27
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.034407138824463 is_array: 0.00086402893066406 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.042697906494141 empty(): 0.037392139434814 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.044374942779541 key check: 0.034386873245239
Output for 5.3.26
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.032666921615601 is_array: 0.00081706047058105 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.0433189868927 empty(): 0.029014825820923 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.043152093887329 key check: 0.039549827575684
Output for 5.3.25
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.033301115036011 is_array: 0.00091385841369629 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.041323184967041 empty(): 0.028776884078979 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.043102979660034 key check: 0.033416986465454
Output for 5.3.24
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.034054040908813 is_array: 0.0010080337524414 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.04870080947876 empty(): 0.035345077514648 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.051723957061768 key check: 0.048619031906128
Output for 5.3.23
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.033818006515503 is_array: 0.00091099739074707 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.043880939483643 empty(): 0.031261920928955 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.047173023223877 key check: 0.036314010620117
Output for 5.3.22
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.036641120910645 is_array: 0.0010011196136475 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.050559997558594 empty(): 0.032902956008911 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.050232887268066 key check: 0.036538124084473
Output for 5.3.21
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.03367805480957 is_array: 0.00093603134155273 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.053601980209351 empty(): 0.029485940933228 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.049555063247681 key check: 0.044430017471313
Output for 5.3.20
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.03665018081665 is_array: 0.00096702575683594 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.052983999252319 empty(): 0.032080888748169 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.045255184173584 key check: 0.04184103012085
Output for 5.3.19
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.035213947296143 is_array: 0.0009000301361084 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.054364204406738 empty(): 0.032854080200195 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.045861959457397 key check: 0.040354013442993
Output for 5.3.18
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.033985137939453 is_array: 0.0010240077972412 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.057482957839966 empty(): 0.042449951171875 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.056864023208618 key check: 0.047979116439819
Output for 5.3.17
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.034312963485718 is_array: 0.00099301338195801 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.05230188369751 empty(): 0.037075996398926 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.052213191986084 key check: 0.047554016113281
Output for 5.3.16
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.037429809570312 is_array: 0.0020489692687988 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.057837963104248 empty(): 0.032305002212524 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.044090032577515 key check: 0.038900852203369
Output for 5.3.15
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.033437967300415 is_array: 0.00087118148803711 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.055388927459717 empty(): 0.031154870986938 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.044090032577515 key check: 0.040785074234009
Output for 5.3.14
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.035343885421753 is_array: 0.00093603134155273 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.079882144927979 empty(): 0.035755157470703 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.047508955001831 key check: 0.040644884109497
Output for 5.3.13
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.035834074020386 is_array: 0.0010612010955811 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.043524980545044 empty(): 0.030531883239746 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.045984029769897 key check: 0.039819002151489
Output for 5.3.12
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.038697004318237 is_array: 0.00086498260498047 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.046235084533691 empty(): 0.032043933868408 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.048516988754272 key check: 0.042217969894409
Output for 5.3.11
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.034992933273315 is_array: 0.00090217590332031 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.04584789276123 empty(): 0.032376050949097 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.048555850982666 key check: 0.041070938110352
Output for 5.3.10
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.034065961837769 is_array: 0.00093698501586914 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.045745134353638 empty(): 0.028761148452759 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.04423713684082 key check: 0.038516044616699
Output for 5.3.9
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.035807132720947 is_array: 0.000885009765625 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.040701866149902 empty(): 0.029386043548584 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.041794061660767 key check: 0.035361051559448
Output for 5.3.8
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.0364089012146 is_array: 0.00088095664978027 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.044420957565308 empty(): 0.030503034591675 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.044816017150879 key check: 0.036868095397949
Output for 5.3.7
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.03573203086853 is_array: 0.00088715553283691 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.041527986526489 empty(): 0.028679847717285 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.039865970611572 key check: 0.035800933837891
Output for 5.3.6
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.035319089889526 is_array: 0.00097179412841797 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.042110919952393 empty(): 0.029464960098267 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.043171167373657 key check: 0.039445161819458
Output for 5.3.5
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.03413987159729 is_array: 0.0009009838104248 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.045711040496826 empty(): 0.031723976135254 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.043200969696045 key check: 0.037483930587769
Output for 5.3.4
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.035754919052124 is_array: 0.0009150505065918 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.042083978652954 empty(): 0.029853820800781 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.042471885681152 key check: 0.034209966659546
Output for 5.3.3
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.03504204750061 is_array: 0.00088000297546387 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.044061899185181 empty(): 0.028656005859375 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.041678905487061 key check: 0.034367084503174
Output for 5.3.2
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.035703182220459 is_array: 0.00099420547485352 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.046305179595947 empty(): 0.031908988952637 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.047975063323975 key check: 0.039937019348145
Output for 5.3.1
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.034349918365479 is_array: 0.0009160041809082 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.043429136276245 empty(): 0.033128976821899 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.045574903488159 key check: 0.038655996322632
Output for 5.3.0
Benchmarking "(array) $var === $var" vs "is_array($var)" ... casting: 0.039628982543945 is_array: 0.00087594985961914 Benchmarking "count($var) == 0" vs "empty($var)" ... count(): 0.046004056930542 empty(): 0.031125783920288 Benchmarking "array_key_exists($key, $array)" vs "$array[$key]" ... in_array_keys(): 0.045573949813843 key check: 0.036551952362061
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/2qkS3 on line 32
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION in /in/2qkS3 on line 32
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/2qkS3 on line 32
Process exited with code 255.