3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $shortstring='hello'; $longstring='long'; for($run=0;$run<10000;$run++) $longstring.='dsfsda'.rand(1000,2000); $time=microtime(true); for($run=0;$run<100000;$run++) $temp=strlen($shortstring); $time=microtime(true)-$time; echo "strlen on short string took $time seconds\n"; $time=microtime(true); for($run=0;$run<100000;$run++) $temp2=strlen($longstring); $time=microtime(true)-$time; echo "strlen on long string took $time seconds\n";
Output for 7.1.0
strlen on short string took 0.0024218559265137 seconds strlen on long string took 0.0024471282958984 seconds
Output for 7.0.14
strlen on short string took 0.0023379325866699 seconds strlen on long string took 0.0020790100097656 seconds
Output for 7.0.9
strlen on short string took 0.0012509822845459 seconds strlen on long string took 0.0014090538024902 seconds
Output for 7.0.8
strlen on short string took 0.0011341571807861 seconds strlen on long string took 0.0011181831359863 seconds
Output for 7.0.7
strlen on short string took 0.0012679100036621 seconds strlen on long string took 0.0012249946594238 seconds
Output for 7.0.6
strlen on short string took 0.001187801361084 seconds strlen on long string took 0.0012071132659912 seconds
Output for 7.0.5
strlen on short string took 0.0012907981872559 seconds strlen on long string took 0.0012969970703125 seconds
Output for 7.0.4
strlen on short string took 0.0016980171203613 seconds strlen on long string took 0.0017189979553223 seconds
Output for 7.0.3
strlen on short string took 0.0012729167938232 seconds strlen on long string took 0.0012738704681396 seconds
Output for 7.0.2
strlen on short string took 0.0017600059509277 seconds strlen on long string took 0.0017518997192383 seconds
Output for 7.0.1
strlen on short string took 0.0012807846069336 seconds strlen on long string took 0.001276969909668 seconds
Output for 7.0.0
strlen on short string took 0.0015270709991455 seconds strlen on long string took 0.0016140937805176 seconds
Output for hhvm-3.12.0
strlen on short string took 0.0077910423278809 seconds strlen on long string took 0.0078089237213135 seconds
Output for hhvm-3.10.0
strlen on short string took 0.009411096572876 seconds strlen on long string took 0.0095200538635254 seconds
Output for 5.6.28
strlen on short string took 0.014657974243164 seconds strlen on long string took 0.014849901199341 seconds
Output for 5.6.23
strlen on short string took 0.010374069213867 seconds strlen on long string took 0.010053873062134 seconds
Output for 5.6.22
strlen on short string took 0.0077600479125977 seconds strlen on long string took 0.0076940059661865 seconds
Output for 5.6.21
strlen on short string took 0.0078229904174805 seconds strlen on long string took 0.0081479549407959 seconds
Output for 5.6.20
strlen on short string took 0.01476001739502 seconds strlen on long string took 0.013773918151855 seconds
Output for 5.6.19
strlen on short string took 0.0082321166992188 seconds strlen on long string took 0.0081238746643066 seconds
Output for 5.6.18
strlen on short string took 0.019189834594727 seconds strlen on long string took 0.015491008758545 seconds
Output for 5.6.17
strlen on short string took 0.012026071548462 seconds strlen on long string took 0.0098698139190674 seconds
Output for 5.6.16
strlen on short string took 0.010080099105835 seconds strlen on long string took 0.0089800357818604 seconds
Output for 5.6.15
strlen on short string took 0.011117219924927 seconds strlen on long string took 0.010667085647583 seconds
Output for 5.6.14
strlen on short string took 0.0078921318054199 seconds strlen on long string took 0.0093648433685303 seconds
Output for 5.6.13
strlen on short string took 0.011085033416748 seconds strlen on long string took 0.010225057601929 seconds
Output for 5.6.12
strlen on short string took 0.01076602935791 seconds strlen on long string took 0.010369062423706 seconds
Output for 5.6.11
strlen on short string took 0.013029098510742 seconds strlen on long string took 0.011080026626587 seconds
Output for 5.6.10
strlen on short string took 0.010059833526611 seconds strlen on long string took 0.0095541477203369 seconds
Output for 5.6.9
strlen on short string took 0.0090620517730713 seconds strlen on long string took 0.0097329616546631 seconds
Output for 5.6.8
strlen on short string took 0.012104034423828 seconds strlen on long string took 0.011636972427368 seconds
Output for 5.6.7
strlen on short string took 0.010991096496582 seconds strlen on long string took 0.010671854019165 seconds
Output for 5.6.6
strlen on short string took 0.014944076538086 seconds strlen on long string took 0.011870145797729 seconds
Output for 5.6.5
strlen on short string took 0.0092580318450928 seconds strlen on long string took 0.0093600749969482 seconds
Output for 5.6.4
strlen on short string took 0.012854099273682 seconds strlen on long string took 0.012079000473022 seconds
Output for 5.6.3
strlen on short string took 0.012027025222778 seconds strlen on long string took 0.011445045471191 seconds
Output for 5.6.2
strlen on short string took 0.015995025634766 seconds strlen on long string took 0.013146162033081 seconds
Output for 5.6.1
strlen on short string took 0.014090061187744 seconds strlen on long string took 0.012548923492432 seconds
Output for 5.6.0
strlen on short string took 0.015333890914917 seconds strlen on long string took 0.014901876449585 seconds
Output for 5.5.37
strlen on short string took 0.008275032043457 seconds strlen on long string took 0.0081489086151123 seconds
Output for 5.5.36
strlen on short string took 0.0080170631408691 seconds strlen on long string took 0.0079419612884521 seconds
Output for 5.5.35
strlen on short string took 0.0085220336914062 seconds strlen on long string took 0.0082528591156006 seconds
Output for 5.5.34
strlen on short string took 0.0082011222839355 seconds strlen on long string took 0.0083639621734619 seconds
Output for 5.5.33
strlen on short string took 0.0083479881286621 seconds strlen on long string took 0.0085740089416504 seconds
Output for 5.5.32
strlen on short string took 0.0083310604095459 seconds strlen on long string took 0.0083260536193848 seconds
Output for 5.5.31
strlen on short string took 0.011539936065674 seconds strlen on long string took 0.011276960372925 seconds
Output for 5.5.30
strlen on short string took 0.010787963867188 seconds strlen on long string took 0.010688781738281 seconds
Output for 5.5.29
strlen on short string took 0.013588905334473 seconds strlen on long string took 0.011644840240479 seconds
Output for 5.5.28
strlen on short string took 0.01918888092041 seconds strlen on long string took 0.017750024795532 seconds
Output for 5.5.27
strlen on short string took 0.0097179412841797 seconds strlen on long string took 0.0097899436950684 seconds
Output for 5.5.26
strlen on short string took 0.011741161346436 seconds strlen on long string took 0.011598825454712 seconds
Output for 5.5.25
strlen on short string took 0.011070013046265 seconds strlen on long string took 0.010113954544067 seconds
Output for 5.5.24
strlen on short string took 0.011959075927734 seconds strlen on long string took 0.011453866958618 seconds
Output for 5.5.23
strlen on short string took 0.011144161224365 seconds strlen on long string took 0.010607004165649 seconds
Output for 5.5.22
strlen on short string took 0.013015985488892 seconds strlen on long string took 0.012521982192993 seconds
Output for 5.5.21
strlen on short string took 0.009894847869873 seconds strlen on long string took 0.0091519355773926 seconds
Output for 5.5.20
strlen on short string took 0.010367155075073 seconds strlen on long string took 0.0099358558654785 seconds
Output for 5.5.19
strlen on short string took 0.011116981506348 seconds strlen on long string took 0.0086140632629395 seconds
Output for 5.5.18
strlen on short string took 0.020623922348022 seconds strlen on long string took 0.017796039581299 seconds
Output for 5.5.16
strlen on short string took 0.012320995330811 seconds strlen on long string took 0.012089014053345 seconds
Output for 5.5.15
strlen on short string took 0.015727996826172 seconds strlen on long string took 0.020596027374268 seconds
Output for 5.5.14
strlen on short string took 0.012013912200928 seconds strlen on long string took 0.011523008346558 seconds
Output for 5.5.13
strlen on short string took 0.010818958282471 seconds strlen on long string took 0.010149955749512 seconds
Output for 5.5.12
strlen on short string took 0.0083439350128174 seconds strlen on long string took 0.0085940361022949 seconds
Output for 5.5.11
strlen on short string took 0.0099978446960449 seconds strlen on long string took 0.010303974151611 seconds
Output for 5.5.10
strlen on short string took 0.010293006896973 seconds strlen on long string took 0.0083580017089844 seconds
Output for 5.5.9
strlen on short string took 0.011284828186035 seconds strlen on long string took 0.011008977890015 seconds
Output for 5.5.8
strlen on short string took 0.010488033294678 seconds strlen on long string took 0.011258125305176 seconds
Output for 5.5.7
strlen on short string took 0.011666059494019 seconds strlen on long string took 0.010574102401733 seconds
Output for 5.5.6
strlen on short string took 0.0085780620574951 seconds strlen on long string took 0.0088789463043213 seconds
Output for 5.5.5
strlen on short string took 0.017589092254639 seconds strlen on long string took 0.016195058822632 seconds
Output for 5.5.4
strlen on short string took 0.0083250999450684 seconds strlen on long string took 0.0083069801330566 seconds
Output for 5.5.3
strlen on short string took 0.019336938858032 seconds strlen on long string took 0.017561912536621 seconds
Output for 5.5.2
strlen on short string took 0.0098960399627686 seconds strlen on long string took 0.0097730159759521 seconds
Output for 5.5.1
strlen on short string took 0.011391878128052 seconds strlen on long string took 0.011089086532593 seconds
Output for 5.5.0
strlen on short string took 0.011482000350952 seconds strlen on long string took 0.011652946472168 seconds
Output for 5.4.45
strlen on short string took 0.0121169090271 seconds strlen on long string took 0.011055946350098 seconds
Output for 5.4.44
strlen on short string took 0.011744022369385 seconds strlen on long string took 0.011913776397705 seconds
Output for 5.4.43
strlen on short string took 0.012646198272705 seconds strlen on long string took 0.011790037155151 seconds
Output for 5.4.42
strlen on short string took 0.01118803024292 seconds strlen on long string took 0.010580062866211 seconds
Output for 5.4.41
strlen on short string took 0.012257099151611 seconds strlen on long string took 0.011082172393799 seconds
Output for 5.4.40
strlen on short string took 0.012063026428223 seconds strlen on long string took 0.0093679428100586 seconds
Output for 5.4.39
strlen on short string took 0.010427951812744 seconds strlen on long string took 0.0098769664764404 seconds
Output for 5.4.38
strlen on short string took 0.0081820487976074 seconds strlen on long string took 0.008681058883667 seconds
Output for 5.4.37
strlen on short string took 0.0081250667572021 seconds strlen on long string took 0.008357048034668 seconds
Output for 5.4.36
strlen on short string took 0.0084879398345947 seconds strlen on long string took 0.0088450908660889 seconds
Output for 5.4.35
strlen on short string took 0.011101007461548 seconds strlen on long string took 0.011770963668823 seconds
Output for 5.4.34
strlen on short string took 0.011177062988281 seconds strlen on long string took 0.008659839630127 seconds
Output for 5.4.32
strlen on short string took 0.01094388961792 seconds strlen on long string took 0.010429859161377 seconds
Output for 5.4.31
strlen on short string took 0.013443946838379 seconds strlen on long string took 0.012923002243042 seconds
Output for 5.4.30
strlen on short string took 0.013564825057983 seconds strlen on long string took 0.01121711730957 seconds
Output for 5.4.29
strlen on short string took 0.010147094726562 seconds strlen on long string took 0.0097620487213135 seconds
Output for 5.4.28
strlen on short string took 0.00856614112854 seconds strlen on long string took 0.0087370872497559 seconds
Output for 5.4.27
strlen on short string took 0.0096449851989746 seconds strlen on long string took 0.010673046112061 seconds
Output for 5.4.26
strlen on short string took 0.01085090637207 seconds strlen on long string took 0.010881185531616 seconds
Output for 5.4.25
strlen on short string took 0.010801792144775 seconds strlen on long string took 0.01068115234375 seconds
Output for 5.4.24
strlen on short string took 0.0080897808074951 seconds strlen on long string took 0.013169050216675 seconds
Output for 5.4.23
strlen on short string took 0.012540102005005 seconds strlen on long string took 0.012573957443237 seconds
Output for 5.4.22
strlen on short string took 0.008436918258667 seconds strlen on long string took 0.0085270404815674 seconds
Output for 5.4.21
strlen on short string took 0.013733863830566 seconds strlen on long string took 0.012969017028809 seconds
Output for 5.4.20
strlen on short string took 0.010002851486206 seconds strlen on long string took 0.012063980102539 seconds
Output for 5.4.19
strlen on short string took 0.013095140457153 seconds strlen on long string took 0.010762929916382 seconds
Output for 5.4.18
strlen on short string took 0.01116418838501 seconds strlen on long string took 0.010919094085693 seconds
Output for 5.4.17
strlen on short string took 0.0092940330505371 seconds strlen on long string took 0.0092079639434814 seconds
Output for 5.4.16
strlen on short string took 0.012331008911133 seconds strlen on long string took 0.011895179748535 seconds
Output for 5.4.15
strlen on short string took 0.013297080993652 seconds strlen on long string took 0.011547088623047 seconds
Output for 5.4.14
strlen on short string took 0.013293027877808 seconds strlen on long string took 0.010674953460693 seconds
Output for 5.4.13
strlen on short string took 0.013288974761963 seconds strlen on long string took 0.013005971908569 seconds
Output for 5.4.12
strlen on short string took 0.011515140533447 seconds strlen on long string took 0.010967969894409 seconds
Output for 5.4.11
strlen on short string took 0.0095181465148926 seconds strlen on long string took 0.008878231048584 seconds
Output for 5.4.10
strlen on short string took 0.0096879005432129 seconds strlen on long string took 0.0092430114746094 seconds
Output for 5.4.9
strlen on short string took 0.012501001358032 seconds strlen on long string took 0.013657093048096 seconds
Output for 5.4.8
strlen on short string took 0.012531995773315 seconds strlen on long string took 0.012029886245728 seconds
Output for 5.4.7
strlen on short string took 0.013227939605713 seconds strlen on long string took 0.012488126754761 seconds
Output for 5.4.6
strlen on short string took 0.013069152832031 seconds strlen on long string took 0.012515783309937 seconds
Output for 5.4.5
strlen on short string took 0.010118007659912 seconds strlen on long string took 0.0095767974853516 seconds
Output for 5.4.4
strlen on short string took 0.010016918182373 seconds strlen on long string took 0.010670900344849 seconds
Output for 5.4.3
strlen on short string took 0.013398170471191 seconds strlen on long string took 0.013032913208008 seconds
Output for 5.4.2
strlen on short string took 0.013100862503052 seconds strlen on long string took 0.009972095489502 seconds
Output for 5.4.1
strlen on short string took 0.0098519325256348 seconds strlen on long string took 0.0099241733551025 seconds
Output for 5.4.0
strlen on short string took 0.013336181640625 seconds strlen on long string took 0.012829065322876 seconds
Output for 5.3.29
strlen on short string took 0.016587018966675 seconds strlen on long string took 0.015718936920166 seconds
Output for 5.3.28
strlen on short string took 0.01583194732666 seconds strlen on long string took 0.014937162399292 seconds
Output for 5.3.27
strlen on short string took 0.011729955673218 seconds strlen on long string took 0.012722015380859 seconds
Output for 5.3.26
strlen on short string took 0.014788866043091 seconds strlen on long string took 0.01280403137207 seconds
Output for 5.3.25
strlen on short string took 0.012984037399292 seconds strlen on long string took 0.012684106826782 seconds
Output for 5.3.24
strlen on short string took 0.010241031646729 seconds strlen on long string took 0.010174036026001 seconds
Output for 5.3.23
strlen on short string took 0.012930870056152 seconds strlen on long string took 0.012071132659912 seconds
Output for 5.3.22
strlen on short string took 0.011827945709229 seconds strlen on long string took 0.011338949203491 seconds
Output for 5.3.21
strlen on short string took 0.013321161270142 seconds strlen on long string took 0.013689994812012 seconds
Output for 5.3.20
strlen on short string took 0.014901161193848 seconds strlen on long string took 0.011928081512451 seconds
Output for 5.3.19
strlen on short string took 0.012277126312256 seconds strlen on long string took 0.012676954269409 seconds
Output for 5.3.18
strlen on short string took 0.011548042297363 seconds strlen on long string took 0.011711120605469 seconds
Output for 5.3.17
strlen on short string took 0.014904975891113 seconds strlen on long string took 0.011387825012207 seconds
Output for 5.3.16
strlen on short string took 0.013631105422974 seconds strlen on long string took 0.013046979904175 seconds
Output for 5.3.15
strlen on short string took 0.013926982879639 seconds strlen on long string took 0.014273881912231 seconds
Output for 5.3.14
strlen on short string took 0.016863822937012 seconds strlen on long string took 0.016303062438965 seconds
Output for 5.3.13
strlen on short string took 0.013201951980591 seconds strlen on long string took 0.012667894363403 seconds
Output for 5.3.12
strlen on short string took 0.012765884399414 seconds strlen on long string took 0.010586977005005 seconds
Output for 5.3.11
strlen on short string took 0.011945962905884 seconds strlen on long string took 0.011482954025269 seconds
Output for 5.3.10
strlen on short string took 0.013331174850464 seconds strlen on long string took 0.012017011642456 seconds
Output for 5.3.9
strlen on short string took 0.011882066726685 seconds strlen on long string took 0.012346982955933 seconds
Output for 5.3.8
strlen on short string took 0.017445087432861 seconds strlen on long string took 0.016364097595215 seconds
Output for 5.3.7
strlen on short string took 0.014001131057739 seconds strlen on long string took 0.013698101043701 seconds
Output for 5.3.6
strlen on short string took 0.013777017593384 seconds strlen on long string took 0.01153302192688 seconds
Output for 5.3.5
strlen on short string took 0.012724876403809 seconds strlen on long string took 0.012279987335205 seconds
Output for 5.3.4
strlen on short string took 0.014341115951538 seconds strlen on long string took 0.013792037963867 seconds
Output for 5.3.3
strlen on short string took 0.014147043228149 seconds strlen on long string took 0.013636112213135 seconds
Output for 5.3.2
strlen on short string took 0.014137983322144 seconds strlen on long string took 0.012264966964722 seconds
Output for 5.3.1
strlen on short string took 0.017410039901733 seconds strlen on long string took 0.016227006912231 seconds
Output for 5.3.0
strlen on short string took 0.013353109359741 seconds strlen on long string took 0.013322114944458 seconds
Output for 5.2.17
strlen on short string took 0.018113851547241 seconds strlen on long string took 0.015908002853394 seconds
Output for 5.2.16
strlen on short string took 0.024691104888916 seconds strlen on long string took 0.013490915298462 seconds
Output for 5.2.15
strlen on short string took 0.013467073440552 seconds strlen on long string took 0.01291298866272 seconds
Output for 5.2.14
strlen on short string took 0.012228965759277 seconds strlen on long string took 0.011745929718018 seconds
Output for 5.2.13
strlen on short string took 0.016226053237915 seconds strlen on long string took 0.012128114700317 seconds
Output for 5.2.12
strlen on short string took 0.013184070587158 seconds strlen on long string took 0.012903928756714 seconds
Output for 5.2.11
strlen on short string took 0.018313884735107 seconds strlen on long string took 0.017097949981689 seconds
Output for 5.2.10
strlen on short string took 0.016821146011353 seconds strlen on long string took 0.013225078582764 seconds
Output for 5.2.9
strlen on short string took 0.010914087295532 seconds strlen on long string took 0.01092791557312 seconds
Output for 5.2.8
strlen on short string took 0.016516923904419 seconds strlen on long string took 0.015433073043823 seconds
Output for 5.2.7
strlen on short string took 0.012861013412476 seconds strlen on long string took 0.01314902305603 seconds
Output for 5.2.6
strlen on short string took 0.01762318611145 seconds strlen on long string took 0.014300107955933 seconds
Output for 5.2.5
strlen on short string took 0.012243986129761 seconds strlen on long string took 0.011415004730225 seconds
Output for 5.2.4
strlen on short string took 0.011647939682007 seconds strlen on long string took 0.011361837387085 seconds
Output for 5.2.3
strlen on short string took 0.02030086517334 seconds strlen on long string took 0.012979030609131 seconds
Output for 5.2.2
strlen on short string took 0.016355991363525 seconds strlen on long string took 0.013269901275635 seconds
Output for 5.2.1
strlen on short string took 0.016308069229126 seconds strlen on long string took 0.015291929244995 seconds
Output for 5.2.0
strlen on short string took 0.012172937393188 seconds strlen on long string took 0.011459827423096 seconds
Output for 5.1.6
strlen on short string took 0.014079093933105 seconds strlen on long string took 0.010498046875 seconds
Output for 5.1.5
strlen on short string took 0.010567903518677 seconds strlen on long string took 0.010725021362305 seconds
Output for 5.1.4
strlen on short string took 0.014594078063965 seconds strlen on long string took 0.014436006546021 seconds
Output for 5.1.3
strlen on short string took 0.015836954116821 seconds strlen on long string took 0.014902114868164 seconds
Output for 5.1.2
strlen on short string took 0.016964912414551 seconds strlen on long string took 0.0156569480896 seconds
Output for 5.1.1
strlen on short string took 0.015888929367065 seconds strlen on long string took 0.014235973358154 seconds
Output for 5.1.0
strlen on short string took 0.017586946487427 seconds strlen on long string took 0.016225099563599 seconds
Output for 5.0.5
strlen on short string took 0.037424802780151 seconds strlen on long string took 0.032715797424316 seconds
Output for 5.0.4
strlen on short string took 0.040775060653687 seconds strlen on long string took 0.030915021896362 seconds
Output for 5.0.3
strlen on short string took 0.031208992004395 seconds strlen on long string took 0.026549100875854 seconds
Output for 5.0.2
strlen on short string took 0.03410792350769 seconds strlen on long string took 0.025766849517822 seconds
Output for 5.0.1
strlen on short string took 0.033875226974487 seconds strlen on long string took 0.025608062744141 seconds
Output for 5.0.0
strlen on short string took 0.035900115966797 seconds strlen on long string took 0.031417846679688 seconds
Output for 4.4.9
strlen on short string took 0.026467 seconds strlen on long string took 0.02386 seconds
Output for 4.4.8
strlen on short string took 0.025947 seconds strlen on long string took 0.023915 seconds
Output for 4.4.7
strlen on short string took 0.035652 seconds strlen on long string took 0.029449 seconds
Output for 4.4.6
strlen on short string took 0.021959 seconds strlen on long string took 0.021229 seconds
Output for 4.4.5
strlen on short string took 0.034251 seconds strlen on long string took 0.030031 seconds
Output for 4.4.4
strlen on short string took 0.021093 seconds strlen on long string took 0.021667 seconds
Output for 4.4.3
strlen on short string took 0.023352 seconds strlen on long string took 0.022881 seconds
Output for 4.4.2
strlen on short string took 0.039913 seconds strlen on long string took 0.031579 seconds
Output for 4.4.1
strlen on short string took 0.032904 seconds strlen on long string took 0.028088 seconds
Output for 4.4.0
strlen on short string took 0.021564 seconds strlen on long string took 0.022033 seconds
Output for 4.3.11
strlen on short string took 0.036172 seconds strlen on long string took 0.029636 seconds
Output for 4.3.10
strlen on short string took 0.036756 seconds strlen on long string took 0.030412 seconds
Output for 4.3.9
strlen on short string took 0.031896 seconds strlen on long string took 0.028433 seconds
Output for 4.3.8
strlen on short string took 0.031744 seconds strlen on long string took 0.025019 seconds
Output for 4.3.7
strlen on short string took 0.032055 seconds strlen on long string took 0.02869 seconds
Output for 4.3.6
strlen on short string took 0.029507 seconds strlen on long string took 0.027993 seconds
Output for 4.3.5
strlen on short string took 0.029116 seconds strlen on long string took 0.026163 seconds
Output for 4.3.4
strlen on short string took 0.031909 seconds strlen on long string took 0.02793 seconds
Output for 4.3.3
strlen on short string took 0.040276 seconds strlen on long string took 0.034865 seconds
Output for 4.3.2
strlen on short string took 0.030892 seconds strlen on long string took 0.027406 seconds
Output for 4.3.1
strlen on short string took 0.024905 seconds strlen on long string took 0.025919 seconds
Output for 4.3.0
strlen on short string took 0.026262 seconds strlen on long string took 0.024933 seconds