3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A\B; $a = [['x'], ['y'], ['z1'], 1, 2, 3, 4, 5, 'some text']; $time = microtime(true); for ($i=0; $i<1000000; $i++) { \count($a); } echo (microtime(true) - $time) . "\n"; $time = microtime(true); for ($i=0; $i<1000000; $i++) { count($a); } echo (microtime(true) - $time) . "\n";
Output for 8.3.0
0.011444091796875 0.021852970123291
Output for 8.2.13
0.0045530796051025 0.0096309185028076
Output for 8.2.12
0.0047981739044189 0.0096991062164307
Output for 8.2.11
0.011448860168457 0.024081945419312
Output for 8.2.10
0.0044920444488525 0.011528968811035
Output for 8.2.9
0.011628150939941 0.018465042114258
Output for 8.2.8
0.0093069076538086 0.0096099376678467
Output for 8.2.7
0.0045299530029297 0.0096888542175293
Output for 8.2.6
0.0044958591461182 0.0097789764404297
Output for 8.2.5
0.011606931686401 0.024194002151489
Output for 8.2.4
0.0090310573577881 0.015048980712891
Output for 8.2.3
0.0045638084411621 0.0096700191497803
Output for 8.2.2
0.01202392578125 0.029838800430298
Output for 8.2.1
0.0045309066772461 0.0097048282623291
Output for 8.2.0
0.0049648284912109 0.0095160007476807
Output for 8.1.26
0.004472017288208 0.0092811584472656
Output for 8.1.25
0.0049171447753906 0.0095980167388916
Output for 8.1.24
0.0049550533294678 0.0094099044799805
Output for 8.1.23
0.0044682025909424 0.0097689628601074
Output for 8.1.22
0.0044732093811035 0.0095980167388916
Output for 8.1.21
0.0045709609985352 0.0092220306396484
Output for 8.1.20
0.0044667720794678 0.0091750621795654
Output for 8.1.19
0.0045578479766846 0.0092260837554932
Output for 8.1.18
0.0044970512390137 0.009397029876709
Output for 8.1.17
0.004626989364624 0.0091390609741211
Output for 8.1.16
0.0045080184936523 0.0095441341400146
Output for 8.1.15
0.0062911510467529 0.0093410015106201
Output for 8.1.14
0.0092310905456543 0.016716957092285
Output for 8.1.13
0.0074300765991211 0.010056972503662
Output for 8.1.12
0.006072998046875 0.0095770359039307
Output for 8.1.11
0.011698961257935 0.024911880493164
Output for 8.1.10
0.012427091598511 0.025251865386963
Output for 8.1.9
0.011510848999023 0.023723125457764
Output for 8.1.8
0.0089190006256104 0.0095140933990479
Output for 8.1.7
0.011502981185913 0.02009105682373
Output for 8.1.6
0.0089759826660156 0.021008968353271
Output for 8.1.5
0.010760068893433 0.011121034622192
Output for 8.1.4
0.011412858963013 0.024008989334106
Output for 8.1.3
0.012326002120972 0.02649998664856
Output for 8.1.2
0.012490034103394 0.020998954772949
Output for 8.1.1
0.0045268535614014 0.0092771053314209
Output for 8.1.0
0.01159405708313 0.023101091384888
Output for 8.0.30
0.012254953384399 0.017563819885254
Output for 8.0.29
0.0052039623260498 0.0099930763244629
Output for 8.0.28
0.0051970481872559 0.010203123092651
Output for 8.0.27
0.0052261352539062 0.0098261833190918
Output for 8.0.26
0.0051741600036621 0.0097260475158691
Output for 8.0.25
0.0049140453338623 0.009706974029541
Output for 8.0.24
0.0049309730529785 0.0097088813781738
Output for 8.0.23
0.012738943099976 0.016704082489014
Output for 8.0.22
0.005856990814209 0.0096561908721924
Output for 8.0.21
0.0074570178985596 0.01044487953186
Output for 8.0.20
0.0054669380187988 0.0098059177398682
Output for 8.0.19
0.0054571628570557 0.010847806930542
Output for 8.0.18
0.0051701068878174 0.009739875793457
Output for 8.0.17
0.0051910877227783 0.0095729827880859
Output for 8.0.16
0.0051970481872559 0.010193109512329
Output for 8.0.15
0.0049378871917725 0.010787010192871
Output for 8.0.14
0.011173009872437 0.022186994552612
Output for 8.0.13
0.010119199752808 0.023056983947754
Output for 8.0.12
0.0074810981750488 0.010696172714233
Output for 8.0.11
0.013400077819824 0.01966118812561
Output for 8.0.10
0.0052521228790283 0.010283946990967
Output for 8.0.9
0.014028072357178 0.024779081344604
Output for 8.0.8
0.0052249431610107 0.010820865631104
Output for 8.0.7
0.0053901672363281 0.010722160339355
Output for 8.0.6
0.013394117355347 0.01997184753418
Output for 8.0.5
0.0051891803741455 0.011942148208618
Output for 8.0.3
0.013362884521484 0.01630687713623
Output for 8.0.2
0.0053360462188721 0.017848014831543
Output for 8.0.1
0.005479097366333 0.0098690986633301
Output for 8.0.0
0.0057570934295654 0.010720014572144
Output for 7.4.33
0.01817798614502 0.014580965042114
Output for 7.4.32
0.020277976989746 0.030674934387207
Output for 7.4.30
0.013962030410767 0.01947808265686
Output for 7.4.29
0.0079147815704346 0.015427827835083
Output for 7.4.28
0.0079669952392578 0.011759042739868
Output for 7.4.27
0.0081918239593506 0.013663053512573
Output for 7.4.26
0.0084810256958008 0.012270927429199
Output for 7.4.25
0.0079360008239746 0.013376951217651
Output for 7.4.24
0.020005941390991 0.015787839889526
Output for 7.4.23
0.0079610347747803 0.012831926345825
Output for 7.4.22
0.0084559917449951 0.013203859329224
Output for 7.4.21
0.0079419612884521 0.012595176696777
Output for 7.4.20
0.0084760189056396 0.012594938278198
Output for 7.4.19
0.0076820850372314 0.012011051177979
Output for 7.4.18
0.019646883010864 0.019121885299683
Output for 7.4.16
0.019479990005493 0.015902996063232
Output for 7.4.15
0.0087549686431885 0.012264013290405
Output for 7.4.14
0.020017147064209 0.018673181533813
Output for 7.4.13
0.0089530944824219 0.013520956039429
Output for 7.4.12
0.0082271099090576 0.012550115585327
Output for 7.4.11
0.017571926116943 0.019994020462036
Output for 7.4.10
0.020610809326172 0.016434907913208
Output for 7.4.9
0.0082628726959229 0.013128995895386
Output for 7.4.8
0.0077149868011475 0.012857913970947
Output for 7.4.7
0.008491039276123 0.013106107711792
Output for 7.4.6
0.007659912109375 0.011842012405396
Output for 7.4.5
0.0089170932769775 0.013654947280884
Output for 7.4.4
0.008030891418457 0.013550996780396
Output for 7.4.3
0.010776996612549 0.031144142150879
Output for 7.4.2
0.021005153656006 0.01715612411499
Output for 7.4.1
0.017968893051147 0.013983011245728
Output for 7.4.0
0.0087518692016602 0.013360977172852
Output for 7.3.33
0.023097991943359 0.015249013900757
Output for 7.3.32
0.010787010192871 0.020833015441895
Output for 7.3.31
0.010984897613525 0.014711856842041
Output for 7.3.30
0.010420083999634 0.014952898025513
Output for 7.3.29
0.010396003723145 0.014346837997437
Output for 7.3.28
0.011034965515137 0.014813899993896
Output for 7.3.27
0.010142087936401 0.014385938644409
Output for 7.3.26
0.010447025299072 0.014809131622314
Output for 7.3.25
0.010417222976685 0.013916015625
Output for 7.3.24
0.010426998138428 0.014780044555664
Output for 7.3.23
0.010395050048828 0.014722108840942
Output for 7.3.22
0.023567914962769 0.030626058578491
Output for 7.3.21
0.010377883911133 0.014179944992065
Output for 7.3.20
0.010140180587769 0.014240980148315
Output for 7.3.19
0.010344982147217 0.014484882354736
Output for 7.3.18
0.010219097137451 0.01451587677002
Output for 7.3.17
0.010378837585449 0.013651132583618
Output for 7.3.16
0.010771989822388 0.015285015106201
Output for 7.3.15
0.010792970657349 0.015007972717285
Output for 7.3.14
0.014898061752319 0.019370794296265
Output for 7.3.13
0.010478973388672 0.014168977737427
Output for 7.3.12
0.010684967041016 0.014621019363403
Output for 7.3.11
0.010201930999756 0.013667821884155
Output for 7.3.10
0.010386943817139 0.014860153198242
Output for 7.3.9
0.010226964950562 0.013612031936646
Output for 7.3.8
0.010121822357178 0.014912843704224
Output for 7.3.7
0.022730827331543 0.014052867889404
Output for 7.3.6
0.01042103767395 0.012876033782959
Output for 7.3.5
0.022523880004883 0.01448392868042
Output for 7.3.4
0.023147106170654 0.013391971588135
Output for 7.3.3
0.010178089141846 0.014965057373047
Output for 7.3.2
0.010437965393066 0.014465093612671
Output for 7.3.1
0.010107040405273 0.014266014099121
Output for 7.3.0
0.022481918334961 0.014259815216064
Output for 7.2.34
0.011490106582642 0.018543004989624
Output for 7.2.33
0.016384124755859 0.019393920898438
Output for 7.2.32
0.010932922363281 0.016082048416138
Output for 7.2.31
0.010929822921753 0.015520095825195
Output for 7.2.30
0.021478891372681 0.01559591293335
Output for 7.2.29
0.027878999710083 0.017096042633057
Output for 7.2.28
0.011764049530029 0.015737056732178
Output for 7.2.27
0.011806964874268 0.016094923019409
Output for 7.2.26
0.011620044708252 0.01617693901062
Output for 7.2.25
0.01096510887146 0.014983892440796
Output for 7.2.24
0.023306131362915 0.016299962997437
Output for 7.2.23
0.023286104202271 0.025363922119141
Output for 7.2.22
0.011480093002319 0.016106128692627
Output for 7.2.21
0.028748035430908 0.022228002548218
Output for 7.2.20
0.023852825164795 0.017683982849121
Output for 7.2.19
0.011454105377197 0.017255067825317
Output for 7.2.18
0.011190176010132 0.015568971633911
Output for 7.2.17
0.010912895202637 0.014657020568848
Output for 7.2.16
0.020157098770142 0.015830993652344
Output for 7.2.15
0.01115608215332 0.016118049621582
Output for 7.2.14
0.027084827423096 0.019367218017578
Output for 7.2.13
0.010655164718628 0.013447046279907
Output for 7.2.12
0.011451005935669 0.015801906585693
Output for 7.2.11
0.011198997497559 0.016079902648926
Output for 7.2.10
0.010655879974365 0.016592025756836
Output for 7.2.9
0.0275719165802 0.023019075393677
Output for 7.2.8
0.011713981628418 0.016714096069336
Output for 7.2.7
0.010691165924072 0.014358043670654
Output for 7.2.6
0.010696172714233 0.0155930519104
Output for 7.2.5
0.011421918869019 0.016443967819214
Output for 7.2.4
0.015356063842773 0.017524003982544
Output for 7.2.3
0.021568059921265 0.017606019973755
Output for 7.2.2
0.024600982666016 0.030016899108887
Output for 7.2.1
0.010977983474731 0.015774011611938
Output for 7.2.0
0.010937929153442 0.015223979949951
Output for 7.1.33
0.017951965332031 0.018316030502319
Output for 7.1.32
0.033607959747314 0.018230199813843
Output for 7.1.31
0.046987056732178 0.024200916290283
Output for 7.1.30
0.01841402053833 0.018260955810547
Output for 7.1.29
0.032855987548828 0.018638134002686
Output for 7.1.28
0.018318176269531 0.019391059875488
Output for 7.1.27
0.018401861190796 0.018336057662964
Output for 7.1.26
0.018071889877319 0.018235921859741
Output for 7.1.25
0.024975061416626 0.01898717880249
Output for 7.1.24
0.018562078475952 0.019096851348877
Output for 7.1.23
0.018978118896484 0.019113063812256
Output for 7.1.22
0.038880825042725 0.019334077835083
Output for 7.1.21
0.034091949462891 0.019834041595459
Output for 7.1.20
0.032325029373169 0.018229961395264
Output for 7.1.19
0.037795066833496 0.019292831420898
Output for 7.1.18
0.018160820007324 0.018527984619141
Output for 7.1.17
0.018692016601562 0.019068956375122
Output for 7.1.16
0.040256977081299 0.019919872283936
Output for 7.1.15
0.018236875534058 0.01935887336731
Output for 7.1.14
0.019225120544434 0.019924879074097
Output for 7.1.13
0.047437906265259 0.020026922225952
Output for 7.1.12
0.018961906433105 0.019351959228516
Output for 7.1.11
0.032580137252808 0.019372940063477
Output for 7.1.10
0.019210815429688 0.01871919631958
Output for 7.1.9
0.018857955932617 0.019657135009766
Output for 7.1.8
0.01882791519165 0.018584012985229
Output for 7.1.7
0.019128084182739 0.019378185272217
Output for 7.1.6
0.033984899520874 0.019035816192627
Output for 7.1.5
0.031804084777832 0.019395112991333
Output for 7.1.4
0.042720079421997 0.022629976272583
Output for 7.1.3
0.047411918640137 0.022044897079468
Output for 7.1.2
0.018700838088989 0.018762826919556
Output for 7.1.1
0.018975973129272 0.01949405670166
Output for 7.1.0
0.019598960876465 0.02153205871582

preferences:
75.26 ms | 694 KiB | 5 Q