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.1.3
0.013060092926025 0.013077974319458
Output for 8.1.2
0.013197898864746 0.01313304901123
Output for 8.1.1
0.013060092926025 0.013005971908569
Output for 8.1.0
0.013089895248413 0.013040065765381
Output for 8.0.16
0.015202045440674 0.015206098556519
Output for 8.0.15
0.013089895248413 0.013067960739136
Output for 8.0.14
0.013001203536987 0.013000011444092
Output for 8.0.13
0.013059139251709 0.013015985488892
Output for 8.0.12
0.013065814971924 0.013000011444092
Output for 8.0.11
0.013014078140259 0.013004064559937
Output for 8.0.10
0.016323089599609 0.015331983566284
Output for 8.0.9
0.013033151626587 0.01307201385498
Output for 8.0.8
0.013046979904175 0.013055086135864
Output for 8.0.7
0.015190124511719 0.015130043029785
Output for 8.0.6
0.013055086135864 0.013008832931519
Output for 8.0.5
0.013020038604736 0.013031005859375
Output for 8.0.3
0.015214920043945 0.014218091964722
Output for 8.0.2
0.013061046600342 0.013020992279053
Output for 8.0.1
0.013025045394897 0.01299786567688
Output for 8.0.0
0.017742872238159 0.017568111419678
Output for 7.4.28
0.018303155899048 0.018241882324219
Output for 7.4.27
0.015625953674316 0.015455961227417
Output for 7.4.26
0.018589019775391 0.018143892288208
Output for 7.4.25
0.015687942504883 0.015545129776001
Output for 7.4.24
0.015439033508301 0.015554904937744
Output for 7.4.23
0.015557050704956 0.015445947647095
Output for 7.4.22
0.015570163726807 0.015480041503906
Output for 7.4.21
0.015431880950928 0.015558958053589
Output for 7.4.20
0.015383005142212 0.015424966812134
Output for 7.4.19
0.015601873397827 0.015475988388062
Output for 7.4.18
0.018315076828003 0.018266916275024
Output for 7.4.16
0.015769004821777 0.016571998596191
Output for 7.4.15
0.018287897109985 0.018256902694702
Output for 7.4.14
0.018383979797363 0.018290996551514
Output for 7.4.13
0.015527963638306 0.015460968017578
Output for 7.4.12
0.018353939056396 0.018242835998535
Output for 7.4.11
0.016599178314209 0.015547037124634
Output for 7.4.10
0.015634059906006 0.015535116195679
Output for 7.4.9
0.01560115814209 0.015597105026245
Output for 7.4.8
0.015605211257935 0.015497922897339
Output for 7.4.7
0.01556396484375 0.015673160552979
Output for 7.4.6
0.015431880950928 0.015549898147583
Output for 7.4.5
0.018348932266235 0.01834511756897
Output for 7.4.4
0.015551090240479 0.015464067459106
Output for 7.4.3
0.016103982925415 0.016195058822632
Output for 7.4.2
0.018452167510986 0.018348217010498
Output for 7.4.1
0.018392086029053 0.01673412322998
Output for 7.4.0
0.015488862991333 0.015566825866699
Output for 7.3.33
0.015315055847168 0.015242099761963
Output for 7.3.32
0.015142917633057 0.015172958374023
Output for 7.3.31
0.0157310962677 0.022832155227661
Output for 7.3.30
0.015244007110596 0.015240907669067
Output for 7.3.29
0.021854162216187 0.015415906906128
Output for 7.3.28
0.022977828979492 0.022895097732544
Output for 7.3.27
0.0229811668396 0.022889852523804
Output for 7.3.26
0.015338897705078 0.015291929244995
Output for 7.3.25
0.024087905883789 0.024346113204956
Output for 7.3.24
0.016250848770142 0.015267848968506
Output for 7.3.23
0.015383005142212 0.015331983566284
Output for 7.3.22
0.01541805267334 0.015251159667969
Output for 7.3.21
0.017734050750732 0.018224000930786
Output for 7.3.20
0.016893863677979 0.016744136810303
Output for 7.3.19
0.022830009460449 0.022934913635254
Output for 7.3.18
0.015259981155396 0.015182018280029
Output for 7.3.17
0.01535177230835 0.015233993530273
Output for 7.3.16
0.015275955200195 0.015275001525879
Output for 7.3.15
0.015380144119263 0.015277147293091
Output for 7.3.14
0.015377998352051 0.015312194824219
Output for 7.3.13
0.023303985595703 0.023176908493042
Output for 7.3.12
0.015290975570679 0.019876956939697
Output for 7.3.11
0.015525817871094 0.015494823455811
Output for 7.3.10
0.01736307144165 0.017579078674316
Output for 7.3.9
0.015542030334473 0.016234159469604
Output for 7.3.8
0.01535701751709 0.015190124511719
Output for 7.3.7
0.015308141708374 0.015360116958618
Output for 7.3.6
0.015225172042847 0.015264987945557
Output for 7.3.5
0.015287160873413 0.015276908874512
Output for 7.3.4
0.015187978744507 0.015300035476685
Output for 7.3.3
0.015327930450439 0.015336036682129
Output for 7.3.2
0.015199184417725 0.015214920043945
Output for 7.3.1
0.015186071395874 0.01518988609314
Output for 7.3.0
0.015219926834106 0.015254974365234
Output for 7.2.34
0.017568826675415 0.015486001968384
Output for 7.2.33
0.024818897247314 0.023040056228638
Output for 7.2.32
0.015422105789185 0.015444993972778
Output for 7.2.31
0.023680925369263 0.017481088638306
Output for 7.2.30
0.015427112579346 0.015531063079834
Output for 7.2.29
0.020758867263794 0.016867876052856
Output for 7.2.28
0.016865015029907 0.0155029296875
Output for 7.2.27
0.024358034133911 0.024290800094604
Output for 7.2.26
0.024410009384155 0.024682998657227
Output for 7.2.25
0.015622854232788 0.015465021133423
Output for 7.2.24
0.02398419380188 0.02370285987854
Output for 7.2.23
0.015537023544312 0.015437841415405
Output for 7.2.22
0.0155348777771 0.015548944473267
Output for 7.2.21
0.015591859817505 0.015455961227417
Output for 7.2.20
0.016016006469727 0.015678882598877
Output for 7.2.19
0.017254114151001 0.017804861068726
Output for 7.2.18
0.015563011169434 0.015533924102783
Output for 7.2.17
0.015561103820801 0.015998125076294
Output for 7.2.16
0.024507999420166 0.023991107940674
Output for 7.2.15
0.016036033630371 0.015856027603149
Output for 7.2.14
0.015491008758545 0.01558518409729
Output for 7.2.13
0.015561103820801 0.015723943710327
Output for 7.2.12
0.029011011123657 0.029425144195557
Output for 7.2.11
0.025007009506226 0.018330812454224
Output for 7.2.10
0.015681028366089 0.015507936477661
Output for 7.2.9
0.024095058441162 0.016512155532837
Output for 7.2.8
0.015460968017578 0.015427827835083
Output for 7.2.7
0.015525102615356 0.015519857406616
Output for 7.2.6
0.026057004928589 0.021742105484009
Output for 7.2.5
0.022440910339355 0.02209210395813
Output for 7.2.4
0.025137901306152 0.020421028137207
Output for 7.2.3
0.026242017745972 0.026449918746948
Output for 7.2.2
0.02522611618042 0.024203062057495
Output for 7.2.1
0.02474308013916 0.016361951828003
Output for 7.2.0
0.016171932220459 0.015555143356323
Output for 7.1.33
0.041536092758179 0.034884929656982
Output for 7.1.32
0.024044036865234 0.024590969085693
Output for 7.1.31
0.024465084075928 0.02417778968811
Output for 7.1.30
0.041574001312256 0.041491031646729
Output for 7.1.29
0.024672985076904 0.024699926376343
Output for 7.1.28
0.024479866027832 0.02514910697937
Output for 7.1.27
0.041461944580078 0.041408061981201
Output for 7.1.26
0.041604995727539 0.031781196594238
Output for 7.1.25
0.025429964065552 0.025925874710083
Output for 7.1.24
0.041331052780151 0.032947063446045
Output for 7.1.23
0.02426290512085 0.024935960769653
Output for 7.1.22
0.024419069290161 0.02463698387146
Output for 7.1.21
0.041340827941895 0.030094146728516
Output for 7.1.20
0.025781869888306 0.026467084884644
Output for 7.1.19
0.023902893066406 0.023852109909058
Output for 7.1.18
0.03858208656311 0.024382829666138
Output for 7.1.17
0.024949073791504 0.024840116500854
Output for 7.1.16
0.037937164306641 0.025193929672241
Output for 7.1.15
0.024937868118286 0.025014877319336
Output for 7.1.14
0.025372982025146 0.025838136672974
Output for 7.1.13
0.025668144226074 0.032034873962402
Output for 7.1.12
0.041424036026001 0.032753944396973
Output for 7.1.11
0.025042057037354 0.02535080909729
Output for 7.1.10
0.02519679069519 0.028735160827637
Output for 7.1.9
0.025069952011108 0.025307893753052
Output for 7.1.8
0.024775981903076 0.025182962417603
Output for 7.1.7
0.030141115188599 0.024405956268311
Output for 7.1.6
0.041654109954834 0.027098894119263
Output for 7.1.5
0.025557994842529 0.025495052337646
Output for 7.1.4
0.023887157440186 0.024641990661621
Output for 7.1.3
0.036198854446411 0.026506185531616
Output for 7.1.2
0.034314155578613 0.025113821029663
Output for 7.1.1
0.026714086532593 0.02665901184082
Output for 7.1.0
0.04135799407959 0.041976928710938

preferences:
60.11 ms | 621 KiB | 5 Q