3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $aShitLoadOfSpaces = ' '; $headerName = 'CONTENT-LENGTH'; $start = microtime(true); for ($i = 0; $i < 500000; $i++) { if (strtolower($headerName) === 'content-length') {} } $duration = microtime(true) - $start; echo "strtolower: $duration\n"; $start = microtime(true); for ($i = 0; $i < 500000; $i++) { if ((($aShitLoadOfSpaces & $headerName) | $headerName) === 'content-length') {} } $duration = microtime(true) - $start; echo "Bitwise: $duration\n";
Output for 7.1.0
strtolower: 0.022741079330444 Bitwise: 0.032048940658569
Output for 7.0.14
strtolower: 0.042278051376343 Bitwise: 0.044951915740967
Output for 7.0.12
strtolower: 0.041507005691528 Bitwise: 0.055728197097778
Output for 7.0.6
strtolower: 0.02677583694458 Bitwise: 0.037503004074097
Output for 7.0.5
strtolower: 0.030391216278076 Bitwise: 0.036726951599121
Output for 7.0.4
strtolower: 0.02565598487854 Bitwise: 0.036877870559692
Output for 7.0.3
strtolower: 0.031414031982422 Bitwise: 0.039783000946045
Output for 7.0.2
strtolower: 0.034471035003662 Bitwise: 0.044790029525757
Output for 7.0.1
strtolower: 0.034945011138916 Bitwise: 0.044354915618896
Output for 7.0.0
strtolower: 0.025735139846802 Bitwise: 0.037817001342773
Output for hhvm-3.12.0
strtolower: 0.062269926071167 Bitwise: 0.061111927032471
Output for hhvm-3.10.0
strtolower: 0.071515083312988 Bitwise: 0.069694995880127
Output for 5.6.28
strtolower: 0.1110200881958 Bitwise: 0.072668075561523
Output for 5.6.21
strtolower: 0.071699142456055 Bitwise: 0.045048952102661
Output for 5.6.20
strtolower: 0.070747852325439 Bitwise: 0.045897960662842
Output for 5.6.19
strtolower: 0.057849168777466 Bitwise: 0.044775009155273
Output for 5.6.18
strtolower: 0.064519166946411 Bitwise: 0.044020175933838
Output for 5.6.17
strtolower: 0.058586120605469 Bitwise: 0.045480012893677
Output for 5.6.16
strtolower: 0.074942111968994 Bitwise: 0.047477960586548
Output for 5.6.15
strtolower: 0.076868057250977 Bitwise: 0.047915935516357
Output for 5.6.14
strtolower: 0.077353954315186 Bitwise: 0.04812216758728
Output for 5.6.13
strtolower: 0.056573152542114 Bitwise: 0.044732093811035
Output for 5.6.12
strtolower: 0.074028968811035 Bitwise: 0.046987056732178
Output for 5.6.11
strtolower: 0.060467958450317 Bitwise: 0.04596996307373
Output for 5.6.10
strtolower: 0.076108932495117 Bitwise: 0.047243118286133
Output for 5.6.9
strtolower: 0.069236993789673 Bitwise: 0.04457688331604
Output for 5.6.8
strtolower: 0.075155973434448 Bitwise: 0.047905206680298
Output for 5.5.35
strtolower: 0.078135967254639 Bitwise: 0.04862904548645
Output for 5.5.34
strtolower: 0.058265924453735 Bitwise: 0.044680833816528
Output for 5.5.33
strtolower: 0.065016031265259 Bitwise: 0.047471046447754
Output for 5.5.32
strtolower: 0.060786962509155 Bitwise: 0.048014163970947
Output for 5.5.31
strtolower: 0.065231084823608 Bitwise: 0.048895120620728
Output for 5.5.30
strtolower: 0.075031995773315 Bitwise: 0.045341968536377
Output for 5.5.29
strtolower: 0.069764137268066 Bitwise: 0.045000076293945
Output for 5.5.28
strtolower: 0.069682121276855 Bitwise: 0.04612398147583
Output for 5.5.27
strtolower: 0.068061828613281 Bitwise: 0.045026779174805
Output for 5.5.26
strtolower: 0.080767154693604 Bitwise: 0.04974102973938
Output for 5.5.25
strtolower: 0.070833921432495 Bitwise: 0.047492027282715
Output for 5.5.24
strtolower: 0.075025081634521 Bitwise: 0.046418905258179
Output for 5.4.45
strtolower: 0.063961029052734 Bitwise: 0.046291828155518
Output for 5.4.44
strtolower: 0.07677698135376 Bitwise: 0.044923782348633
Output for 5.4.43
strtolower: 0.074196100234985 Bitwise: 0.045650005340576
Output for 5.4.42
strtolower: 0.074126005172729 Bitwise: 0.046826124191284
Output for 5.4.41
strtolower: 0.068305969238281 Bitwise: 0.044205904006958
Output for 5.4.40
strtolower: 0.073328971862793 Bitwise: 0.045338869094849
Output for 5.4.39
strtolower: 0.070436954498291 Bitwise: 0.056573867797852
Output for 5.4.38
strtolower: 0.072364091873169 Bitwise: 0.044607162475586
Output for 5.4.37
strtolower: 0.059231042861938 Bitwise: 0.045483112335205
Output for 5.4.36
strtolower: 0.075546026229858 Bitwise: 0.046440839767456
Output for 5.4.35
strtolower: 0.057992935180664 Bitwise: 0.043584108352661
Output for 5.4.34
strtolower: 0.0762038230896 Bitwise: 0.047877073287964
Output for 5.4.32
strtolower: 0.068275928497314 Bitwise: 0.051620006561279
Output for 5.4.31
strtolower: 0.080910921096802 Bitwise: 0.047995090484619
Output for 5.4.30
strtolower: 0.084836006164551 Bitwise: 0.051816940307617
Output for 5.4.29
strtolower: 0.058625936508179 Bitwise: 0.044754981994629
Output for 5.4.28
strtolower: 0.058599948883057 Bitwise: 0.046031951904297
Output for 5.4.27
strtolower: 0.084638118743896 Bitwise: 0.047409057617188
Output for 5.4.26
strtolower: 0.079900026321411 Bitwise: 0.048043012619019
Output for 5.4.25
strtolower: 0.078213930130005 Bitwise: 0.044524908065796
Output for 5.4.24
strtolower: 0.076683044433594 Bitwise: 0.044854879379272
Output for 5.4.23
strtolower: 0.056854009628296 Bitwise: 0.044090032577515
Output for 5.4.22
strtolower: 0.058779001235962 Bitwise: 0.044192790985107
Output for 5.4.21
strtolower: 0.077574014663696 Bitwise: 0.046969890594482
Output for 5.4.20
strtolower: 0.062509059906006 Bitwise: 0.044363021850586
Output for 5.4.19
strtolower: 0.078788042068481 Bitwise: 0.049183130264282
Output for 5.4.18
strtolower: 0.073956966400146 Bitwise: 0.046024084091187
Output for 5.4.17
strtolower: 0.078999996185303 Bitwise: 0.047621965408325
Output for 5.4.16
strtolower: 0.065627098083496 Bitwise: 0.047032117843628
Output for 5.4.15
strtolower: 0.057265043258667 Bitwise: 0.042669057846069
Output for 5.4.14
strtolower: 0.060708999633789 Bitwise: 0.043902158737183
Output for 5.4.13
strtolower: 0.057312965393066 Bitwise: 0.043018102645874
Output for 5.4.12
strtolower: 0.091846942901611 Bitwise: 0.065402984619141
Output for 5.4.11
strtolower: 0.056587934494019 Bitwise: 0.043473958969116
Output for 5.4.10
strtolower: 0.063569068908691 Bitwise: 0.047405958175659
Output for 5.4.9
strtolower: 0.061805963516235 Bitwise: 0.045064926147461
Output for 5.4.8
strtolower: 0.05958104133606 Bitwise: 0.043960094451904
Output for 5.4.7
strtolower: 0.05808687210083 Bitwise: 0.043784141540527
Output for 5.4.6
strtolower: 0.058918952941895 Bitwise: 0.043828010559082
Output for 5.4.5
strtolower: 0.078047037124634 Bitwise: 0.057095050811768
Output for 5.4.4
strtolower: 0.080422878265381 Bitwise: 0.047057867050171
Output for 5.4.3
strtolower: 0.079676151275635 Bitwise: 0.048791170120239
Output for 5.4.2
strtolower: 0.057536840438843 Bitwise: 0.043632984161377
Output for 5.4.1
strtolower: 0.075910806655884 Bitwise: 0.046612977981567
Output for 5.4.0
strtolower: 0.082688093185425 Bitwise: 0.048501968383789
Output for 5.3.29
strtolower: 0.090801000595093 Bitwise: 0.05002498626709
Output for 5.3.28
strtolower: 0.083814144134521 Bitwise: 0.050996065139771
Output for 5.3.27
strtolower: 0.090339183807373 Bitwise: 0.053388118743896
Output for 5.3.26
strtolower: 0.069429874420166 Bitwise: 0.049673795700073
Output for 5.3.25
strtolower: 0.066612005233765 Bitwise: 0.048106908798218
Output for 5.3.24
strtolower: 0.072197198867798 Bitwise: 0.051249027252197
Output for 5.3.23
strtolower: 0.065799951553345 Bitwise: 0.04974102973938
Output for 5.3.22
strtolower: 0.067070007324219 Bitwise: 0.050130844116211
Output for 5.3.21
strtolower: 0.06849193572998 Bitwise: 0.050786972045898
Output for 5.3.20
strtolower: 0.075799942016602 Bitwise: 0.061856985092163
Output for 5.3.19
strtolower: 0.064848184585571 Bitwise: 0.050440073013306
Output for 5.3.18
strtolower: 0.064264059066772 Bitwise: 0.04958701133728
Output for 5.3.17
strtolower: 0.069447994232178 Bitwise: 0.050347089767456
Output for 5.3.16
strtolower: 0.066015958786011 Bitwise: 0.050227165222168
Output for 5.3.15
strtolower: 0.067920923233032 Bitwise: 0.052096843719482
Output for 5.3.14
strtolower: 0.065662860870361 Bitwise: 0.05063009262085
Output for 5.3.13
strtolower: 0.094640970230103 Bitwise: 0.068388938903809
Output for 5.3.12
strtolower: 0.067943811416626 Bitwise: 0.0520339012146
Output for 5.3.11
strtolower: 0.086977005004883 Bitwise: 0.051898002624512
Output for 5.3.10
strtolower: 0.099526166915894 Bitwise: 0.073687076568604
Output for 5.3.9
strtolower: 0.085777044296265 Bitwise: 0.05354380607605
Output for 5.3.8
strtolower: 0.092533111572266 Bitwise: 0.055611133575439
Output for 5.3.7
strtolower: 0.067835092544556 Bitwise: 0.05442214012146
Output for 5.3.6
strtolower: 0.069496154785156 Bitwise: 0.05462384223938
Output for 5.3.5
strtolower: 0.069736957550049 Bitwise: 0.053524971008301
Output for 5.3.4
strtolower: 0.067519903182983 Bitwise: 0.074465036392212
Output for 5.3.3
strtolower: 0.074075937271118 Bitwise: 0.055406093597412
Output for 5.3.2
strtolower: 0.067150115966797 Bitwise: 0.052083015441895
Output for 5.3.1
strtolower: 0.075451850891113 Bitwise: 0.052496910095215
Output for 5.3.0
strtolower: 0.084640026092529 Bitwise: 0.054337978363037
Output for 5.2.17
strtolower: 0.073298931121826 Bitwise: 0.060340881347656
Output for 5.2.16
strtolower: 0.10479688644409 Bitwise: 0.083273887634277
Output for 5.2.15
strtolower: 0.095511913299561 Bitwise: 0.058886051177979
Output for 5.2.14
strtolower: 0.076778173446655 Bitwise: 0.06149697303772
Output for 5.2.13
strtolower: 0.11795496940613 Bitwise: 0.05864405632019
Output for 5.2.12
strtolower: 0.10349297523499 Bitwise: 0.061537027359009
Output for 5.2.11
strtolower: 0.10280799865723 Bitwise: 0.062186002731323
Output for 5.2.10
strtolower: 0.10192799568176 Bitwise: 0.060716867446899
Output for 5.2.9
strtolower: 0.10793209075928 Bitwise: 0.06181001663208
Output for 5.2.8
strtolower: 0.080071926116943 Bitwise: 0.058173179626465
Output for 5.2.7
strtolower: 0.094212055206299 Bitwise: 0.058322906494141
Output for 5.2.6
strtolower: 0.10141611099243 Bitwise: 0.060463905334473
Output for 5.2.5
strtolower: 0.13350892066956 Bitwise: 0.069143056869507
Output for 5.2.4
strtolower: 0.072299957275391 Bitwise: 0.058649063110352
Output for 5.2.3
strtolower: 0.097454071044922 Bitwise: 0.060296058654785
Output for 5.2.2
strtolower: 0.096543073654175 Bitwise: 0.071285009384155
Output for 5.2.1
strtolower: 0.098598957061768 Bitwise: 0.055933952331543
Output for 5.2.0
strtolower: 0.091551065444946 Bitwise: 0.058127880096436
Output for 5.1.6
strtolower: 0.10971617698669 Bitwise: 0.066910028457642
Output for 5.1.5
strtolower: 0.11780190467834 Bitwise: 0.068881034851074
Output for 5.1.4
strtolower: 0.10313105583191 Bitwise: 0.062351942062378
Output for 5.1.3
strtolower: 0.10409092903137 Bitwise: 0.06479287147522
Output for 5.1.2
strtolower: 0.098528861999512 Bitwise: 0.062851905822754
Output for 5.1.1
strtolower: 0.09662914276123 Bitwise: 0.063845157623291
Output for 5.1.0
strtolower: 0.099427938461304 Bitwise: 0.063684940338135
Output for 5.0.5
strtolower: 0.16407012939453 Bitwise: 0.13143396377563
Output for 5.0.4
strtolower: 0.16334795951843 Bitwise: 0.13047504425049
Output for 5.0.3
strtolower: 0.14605784416199 Bitwise: 0.12171006202698
Output for 5.0.2
strtolower: 0.12588906288147 Bitwise: 0.12407302856445
Output for 5.0.1
strtolower: 0.15328001976013 Bitwise: 0.12163305282593
Output for 5.0.0
strtolower: 0.12033486366272 Bitwise: 0.12218499183655
Output for 4.4.9
strtolower: -0.878355 Bitwise: 0.136546
Output for 4.4.8
strtolower: 0.120175 Bitwise: 0.137413
Output for 4.4.7
strtolower: 0.116012 Bitwise: 0.134726
Output for 4.4.6
strtolower: 0.157351 Bitwise: -0.863579
Output for 4.4.5
strtolower: 0.166976 Bitwise: 0.135891
Output for 4.4.4
strtolower: 0.145892 Bitwise: 0.135535
Output for 4.4.3
strtolower: 0.144454 Bitwise: 0.141723
Output for 4.4.2
strtolower: -0.870877 Bitwise: 0.137948
Output for 4.4.1
strtolower: -0.829941 Bitwise: 0.13654
Output for 4.4.0
strtolower: -0.850267 Bitwise: 0.136448
Output for 4.3.11
strtolower: 0.161904 Bitwise: -0.859856
Output for 4.3.10
strtolower: 0.169771 Bitwise: 0.138954
Output for 4.3.9
strtolower: 0.160311 Bitwise: 0.133504
Output for 4.3.8
strtolower: 0.143781 Bitwise: -0.859515
Output for 4.3.7
strtolower: 0.117437 Bitwise: 0.14167
Output for 4.3.6
strtolower: 0.117644 Bitwise: 0.136294
Output for 4.3.5
strtolower: -0.877619 Bitwise: 0.136492
Output for 4.3.4
strtolower: 0.149912 Bitwise: 0.135725
Output for 4.3.3
strtolower: 0.11557 Bitwise: -0.867179
Output for 4.3.2
strtolower: 0.160875 Bitwise: 0.13352
Output for 4.3.1
strtolower: 0.141205 Bitwise: 0.136608
Output for 4.3.0
strtolower: 0.113618 Bitwise: 0.136884