3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Setup $class = 'Concrete5_Model_User'; $count = 1000; // Warm up for($i = 0; $i < $count; $i++) { strpos($class, 'Concrete5_Model'); } // Test - case sensitive $t0 = microtime(true); for($i = 0; $i < $count; $i++) { strpos($class, 'Concrete5_Model'); } $deltaCS = microtime(true) - $t0; // Test - case insensitive $t0 = microtime(true); for($i = 0; $i < $count; $i++) { stripos($class, 'Concrete5_Model'); } $deltaCI = microtime(true) - $t0; echo "case sensitive: $deltaCS\n"; echo "case insensitive: $deltaCI\n";
Output for 7.1.0
case sensitive: 6.1988830566406E-5 case insensitive: 0.00019097328186035
Output for 7.0.14
case sensitive: 7.6055526733398E-5 case insensitive: 0.00024199485778809
Output for 7.0.6
case sensitive: 3.9100646972656E-5 case insensitive: 0.0001227855682373
Output for 7.0.5
case sensitive: 4.4107437133789E-5 case insensitive: 0.0001380443572998
Output for 7.0.4
case sensitive: 3.0994415283203E-5 case insensitive: 0.00010514259338379
Output for 7.0.3
case sensitive: 4.5061111450195E-5 case insensitive: 0.00015807151794434
Output for 7.0.2
case sensitive: 4.6968460083008E-5 case insensitive: 0.00015902519226074
Output for 7.0.1
case sensitive: 3.0994415283203E-5 case insensitive: 0.0001060962677002
Output for 7.0.0
case sensitive: 3.1948089599609E-5 case insensitive: 0.00010418891906738
Output for hhvm-3.12.0
case sensitive: 0.00018811225891113 case insensitive: 0.0001380443572998
Output for hhvm-3.10.0
case sensitive: 0.00011777877807617 case insensitive: 0.00012707710266113
Output for 5.6.28
case sensitive: 0.00024914741516113 case insensitive: 0.0003659725189209
Output for 5.6.21
case sensitive: 0.00017189979553223 case insensitive: 0.00027012825012207
Output for 5.6.20
case sensitive: 0.00017881393432617 case insensitive: 0.00026583671569824
Output for 5.6.19
case sensitive: 0.00015091896057129 case insensitive: 0.00024104118347168
Output for 5.6.18
case sensitive: 0.00011706352233887 case insensitive: 0.00018405914306641
Output for 5.6.17
case sensitive: 0.00017690658569336 case insensitive: 0.00026702880859375
Output for 5.6.16
case sensitive: 0.00011491775512695 case insensitive: 0.00016999244689941
Output for 5.6.15
case sensitive: 0.00011396408081055 case insensitive: 0.00017905235290527
Output for 5.6.14
case sensitive: 0.00011205673217773 case insensitive: 0.00018405914306641
Output for 5.6.13
case sensitive: 0.00014495849609375 case insensitive: 0.00021791458129883
Output for 5.6.12
case sensitive: 0.00018215179443359 case insensitive: 0.00026702880859375
Output for 5.6.11
case sensitive: 0.00019001960754395 case insensitive: 0.0003209114074707
Output for 5.6.10
case sensitive: 0.00011396408081055 case insensitive: 0.00017714500427246
Output for 5.6.9
case sensitive: 0.00016999244689941 case insensitive: 0.0002598762512207
Output for 5.6.8
case sensitive: 0.00018191337585449 case insensitive: 0.00024676322937012
Output for 5.6.7
case sensitive: 9.5844268798828E-5 case insensitive: 0.00014686584472656
Output for 5.5.35
case sensitive: 0.00011777877807617 case insensitive: 0.00017690658569336
Output for 5.5.34
case sensitive: 0.00032210350036621 case insensitive: 0.00053191184997559
Output for 5.5.33
case sensitive: 0.00011801719665527 case insensitive: 0.00018000602722168
Output for 5.5.32
case sensitive: 0.0001671314239502 case insensitive: 0.00026106834411621
Output for 5.5.31
case sensitive: 0.00012111663818359 case insensitive: 0.00018906593322754
Output for 5.5.30
case sensitive: 0.0001990795135498 case insensitive: 0.00029802322387695
Output for 5.5.29
case sensitive: 0.00017404556274414 case insensitive: 0.00027704238891602
Output for 5.5.28
case sensitive: 0.00015592575073242 case insensitive: 0.00023007392883301
Output for 5.5.27
case sensitive: 0.00014305114746094 case insensitive: 0.00020790100097656
Output for 5.5.26
case sensitive: 0.00017714500427246 case insensitive: 0.00027298927307129
Output for 5.5.25
case sensitive: 0.00018405914306641 case insensitive: 0.00027799606323242
Output for 5.5.24
case sensitive: 0.00017690658569336 case insensitive: 0.00025820732116699
Output for 5.4.45
case sensitive: 0.00032615661621094 case insensitive: 0.00050711631774902
Output for 5.4.44
case sensitive: 0.00016212463378906 case insensitive: 0.00024604797363281
Output for 5.4.43
case sensitive: 0.00024795532226562 case insensitive: 0.0002589225769043
Output for 5.4.42
case sensitive: 0.00016093254089355 case insensitive: 0.00027012825012207
Output for 5.4.41
case sensitive: 0.00020194053649902 case insensitive: 0.00024294853210449
Output for 5.4.40
case sensitive: 0.00021100044250488 case insensitive: 0.00039792060852051
Output for 5.4.39
case sensitive: 0.00047206878662109 case insensitive: 0.00061416625976562
Output for 5.4.38
case sensitive: 0.00021195411682129 case insensitive: 0.0003209114074707
Output for 5.4.37
case sensitive: 0.00023198127746582 case insensitive: 0.0003359317779541
Output for 5.4.36
case sensitive: 0.00014114379882812 case insensitive: 0.00018596649169922
Output for 5.4.35
case sensitive: 0.00024199485778809 case insensitive: 0.00041580200195312
Output for 5.4.34
case sensitive: 0.00013399124145508 case insensitive: 0.00026702880859375
Output for 5.4.32
case sensitive: 0.00013589859008789 case insensitive: 0.00021100044250488
Output for 5.4.31
case sensitive: 0.00015997886657715 case insensitive: 0.00021100044250488
Output for 5.4.30
case sensitive: 0.00013184547424316 case insensitive: 0.0002129077911377
Output for 5.4.29
case sensitive: 0.00011587142944336 case insensitive: 0.00022506713867188
Output for 5.4.28
case sensitive: 0.00049304962158203 case insensitive: 0.00071406364440918
Output for 5.4.27
case sensitive: 0.00012302398681641 case insensitive: 0.0002281665802002
Output for 5.4.26
case sensitive: 0.00013208389282227 case insensitive: 0.00020313262939453
Output for 5.4.25
case sensitive: 0.00016999244689941 case insensitive: 0.00025820732116699
Output for 5.4.24
case sensitive: 0.00012898445129395 case insensitive: 0.00017809867858887
Output for 5.4.23
case sensitive: 0.00013303756713867 case insensitive: 0.00020194053649902
Output for 5.4.22
case sensitive: 0.00011897087097168 case insensitive: 0.00018715858459473
Output for 5.4.21
case sensitive: 0.00012016296386719 case insensitive: 0.00020003318786621
Output for 5.4.20
case sensitive: 0.00011920928955078 case insensitive: 0.00019502639770508
Output for 5.4.19
case sensitive: 0.00014090538024902 case insensitive: 0.00020098686218262
Output for 5.4.18
case sensitive: 0.00014281272888184 case insensitive: 0.00020098686218262
Output for 5.4.17
case sensitive: 0.00013899803161621 case insensitive: 0.00021696090698242
Output for 5.4.16
case sensitive: 0.0001828670501709 case insensitive: 0.00020599365234375
Output for 5.4.15
case sensitive: 0.00012898445129395 case insensitive: 0.00020790100097656
Output for 5.4.14
case sensitive: 0.00013303756713867 case insensitive: 0.00017809867858887
Output for 5.4.13
case sensitive: 0.00014495849609375 case insensitive: 0.0002291202545166
Output for 5.4.12
case sensitive: 0.0001380443572998 case insensitive: 0.00022101402282715
Output for 5.4.2, 5.4.11
case sensitive: 0.00012683868408203 case insensitive: 0.00020790100097656
Output for 5.4.10
case sensitive: 0.00014615058898926 case insensitive: 0.00018906593322754
Output for 5.4.9
case sensitive: 0.0001368522644043 case insensitive: 0.0001981258392334
Output for 5.4.8
case sensitive: 0.00012898445129395 case insensitive: 0.00018501281738281
Output for 5.4.7
case sensitive: 0.00012803077697754 case insensitive: 0.00019598007202148
Output for 5.4.6
case sensitive: 0.00014781951904297 case insensitive: 0.00027298927307129
Output for 5.4.5
case sensitive: 0.00014185905456543 case insensitive: 0.00019407272338867
Output for 5.4.4
case sensitive: 0.00014400482177734 case insensitive: 0.00019001960754395
Output for 5.4.3
case sensitive: 0.00013303756713867 case insensitive: 0.00020289421081543
Output for 5.4.1
case sensitive: 0.00012683868408203 case insensitive: 0.00021481513977051
Output for 5.4.0
case sensitive: 0.00012612342834473 case insensitive: 0.00021982192993164
Output for 5.3.29
case sensitive: 0.00019693374633789 case insensitive: 0.0002131462097168
Output for 5.3.28
case sensitive: 0.00019311904907227 case insensitive: 0.00024294853210449
Output for 5.3.27
case sensitive: 0.00015401840209961 case insensitive: 0.00022101402282715
Output for 5.3.26
case sensitive: 0.00016307830810547 case insensitive: 0.00027585029602051
Output for 5.3.25
case sensitive: 0.00016999244689941 case insensitive: 0.00020885467529297
Output for 5.3.24
case sensitive: 0.00015091896057129 case insensitive: 0.00022387504577637
Output for 5.3.23
case sensitive: 0.00017595291137695 case insensitive: 0.0002288818359375
Output for 5.3.22
case sensitive: 0.00017380714416504 case insensitive: 0.00023794174194336
Output for 5.3.21
case sensitive: 0.00018501281738281 case insensitive: 0.00025200843811035
Output for 5.3.20
case sensitive: 0.00016021728515625 case insensitive: 0.00021195411682129
Output for 5.3.19
case sensitive: 0.00018000602722168 case insensitive: 0.00021791458129883
Output for 5.3.18
case sensitive: 0.00015401840209961 case insensitive: 0.00020599365234375
Output for 5.3.17
case sensitive: 0.00018405914306641 case insensitive: 0.00024795532226562
Output for 5.3.16
case sensitive: 0.00015997886657715 case insensitive: 0.0002589225769043
Output for 5.3.15
case sensitive: 0.00015807151794434 case insensitive: 0.00020718574523926
Output for 5.3.14
case sensitive: 0.00016379356384277 case insensitive: 0.00028586387634277
Output for 5.3.13
case sensitive: 0.00015783309936523 case insensitive: 0.00025391578674316
Output for 5.3.12
case sensitive: 0.00017714500427246 case insensitive: 0.00024700164794922
Output for 5.3.11
case sensitive: 0.00018215179443359 case insensitive: 0.00022697448730469
Output for 5.3.10
case sensitive: 0.00015997886657715 case insensitive: 0.00023579597473145
Output for 5.3.9
case sensitive: 0.00015997886657715 case insensitive: 0.00021719932556152
Output for 5.3.8
case sensitive: 0.00019693374633789 case insensitive: 0.00026202201843262
Output for 5.3.7
case sensitive: 0.00015902519226074 case insensitive: 0.00022101402282715
Output for 5.3.6
case sensitive: 0.00018000602722168 case insensitive: 0.00023102760314941
Output for 5.3.5
case sensitive: 0.00020718574523926 case insensitive: 0.0002448558807373
Output for 5.3.4
case sensitive: 0.00015115737915039 case insensitive: 0.00020790100097656
Output for 5.3.3
case sensitive: 0.00024199485778809 case insensitive: 0.00031590461730957
Output for 5.3.2
case sensitive: 0.00015091896057129 case insensitive: 0.00023293495178223
Output for 5.3.1
case sensitive: 0.00020217895507812 case insensitive: 0.00022292137145996
Output for 5.3.0
case sensitive: 0.00017690658569336 case insensitive: 0.00023293495178223
Output for 5.2.17
case sensitive: 0.00020098686218262 case insensitive: 0.00026392936706543
Output for 5.2.16
case sensitive: 0.00017809867858887 case insensitive: 0.00026392936706543
Output for 5.2.15
case sensitive: 0.0001678466796875 case insensitive: 0.00029897689819336
Output for 5.2.14
case sensitive: 0.00023818016052246 case insensitive: 0.00030803680419922
Output for 5.2.13
case sensitive: 0.00021791458129883 case insensitive: 0.00028800964355469
Output for 5.2.12
case sensitive: 0.00015592575073242 case insensitive: 0.00030684471130371
Output for 5.2.11
case sensitive: 0.00018000602722168 case insensitive: 0.00025701522827148
Output for 5.2.10
case sensitive: 0.00016999244689941 case insensitive: 0.00028800964355469
Output for 5.2.9
case sensitive: 0.00016093254089355 case insensitive: 0.00030803680419922
Output for 5.2.8
case sensitive: 0.00015807151794434 case insensitive: 0.000244140625
Output for 5.2.7
case sensitive: 0.0001521110534668 case insensitive: 0.00029611587524414
Output for 5.2.6
case sensitive: 0.00019192695617676 case insensitive: 0.00025606155395508
Output for 5.2.5
case sensitive: 0.0001530647277832 case insensitive: 0.00023984909057617
Output for 5.2.4
case sensitive: 0.0001671314239502 case insensitive: 0.00023388862609863
Output for 5.2.3
case sensitive: 0.00017595291137695 case insensitive: 0.0002448558807373
Output for 5.2.2
case sensitive: 0.00017285346984863 case insensitive: 0.00029897689819336
Output for 5.2.1
case sensitive: 0.00016307830810547 case insensitive: 0.00033688545227051
Output for 5.2.0
case sensitive: 0.00015616416931152 case insensitive: 0.00022697448730469
Output for 5.1.6
case sensitive: 0.00014686584472656 case insensitive: 0.00025105476379395
Output for 5.1.5
case sensitive: 0.00016188621520996 case insensitive: 0.00023007392883301
Output for 5.1.4
case sensitive: 0.00014400482177734 case insensitive: 0.0002741813659668
Output for 5.1.3
case sensitive: 0.00018405914306641 case insensitive: 0.00021791458129883
Output for 5.1.2
case sensitive: 0.0001378059387207 case insensitive: 0.00021886825561523
Output for 5.1.1
case sensitive: 0.00014090538024902 case insensitive: 0.00023484230041504
Output for 5.1.0
case sensitive: 0.00014090538024902 case insensitive: 0.00022602081298828
Output for 5.0.5
case sensitive: 0.00030612945556641 case insensitive: 0.00043702125549316
Output for 5.0.4
case sensitive: 0.00034308433532715 case insensitive: 0.00045394897460938
Output for 5.0.3
case sensitive: 0.00032901763916016 case insensitive: 0.00046610832214355
Output for 5.0.2
case sensitive: 0.00037503242492676 case insensitive: 0.00039815902709961
Output for 5.0.1
case sensitive: 0.0003361701965332 case insensitive: 0.00048494338989258
Output for 5.0.0
case sensitive: 0.00029492378234863 case insensitive: 0.00044083595275879
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: stripos() in /in/XL3Z5 on line 23
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: stripos() in /in/XL3Z5 on line 23
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: stripos() in /in/XL3Z5 on line 23