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.0.0beta3
0.014522790908813 0.030689001083374
Output for 8.0.0beta1
0.011760950088501 0.022481203079224
Output for 8.0.0alpha3
0.01329493522644 0.025151014328003
Output for 8.0.0alpha2
0.013329982757568 0.022984981536865
Output for 8.0.0alpha1
0.021141052246094 0.038136005401611
Output for 7.4.10
0.020516872406006 0.03548002243042
Output for 7.4.9
0.016984939575195 0.027697801589966
Output for 7.4.8
0.025260925292969 0.047959089279175
Output for 7.4.7
0.02660083770752 0.028799057006836
Output for 7.4.6
0.021878957748413 0.027403116226196
Output for 7.4.5
0.021605968475342 0.020531892776489
Output for 7.4.4
0.017435073852539 0.026867151260376
Output for 7.4.2
0.016493797302246 0.031981945037842
Output for 7.4.1
0.016604900360107 0.027399063110352
Output for 7.4.0
0.030518054962158 0.055340051651001
Output for 7.3.21
0.040117025375366 0.050132989883423
Output for 7.3.20
0.020875930786133 0.034888982772827
Output for 7.3.19
0.02750301361084 0.033829927444458
Output for 7.3.18
0.021533012390137 0.03020715713501
Output for 7.3.17
0.0500168800354 0.051620006561279
Output for 7.3.16
0.020864009857178 0.029143810272217
Output for 7.3.13
0.020762920379639 0.032750129699707
Output for 7.3.12
0.030384063720703 0.074141979217529
Output for 7.3.11
0.024293184280396 0.045038938522339
Output for 7.3.10
0.033267021179199 0.056084871292114
Output for 7.3.9
0.021077871322632 0.035989999771118
Output for 7.3.8
0.025743961334229 0.0366370677948
Output for 7.3.7
0.02787709236145 0.04441499710083
Output for 7.3.6
0.024368047714233 0.040654182434082
Output for 7.3.5
0.028264999389648 0.045290946960449
Output for 7.3.4
0.023924112319946 0.037836790084839
Output for 7.3.3
0.022141218185425 0.033005952835083
Output for 7.3.2
0.023803949356079 0.034218072891235
Output for 7.3.1
0.024019956588745 0.032855033874512
Output for 7.3.0
0.021986961364746 0.029332160949707
Output for 7.2.33
0.030675888061523 0.043805837631226
Output for 7.2.32
0.027143955230713 0.033576965332031
Output for 7.2.31
0.02339506149292 0.03532600402832
Output for 7.2.30
0.024358034133911 0.033478975296021
Output for 7.2.29
0.028231859207153 0.03508186340332
Output for 7.2.26
0.023836851119995 0.062542915344238
Output for 7.2.25
0.14330005645752 0.050747156143188
Output for 7.2.24
0.048956871032715 0.080177068710327
Output for 7.2.23
0.038719177246094 0.053128004074097
Output for 7.2.22
0.02673602104187 0.047608852386475
Output for 7.2.21
0.025566101074219 0.041635036468506
Output for 7.2.20
0.028702020645142 0.051292181015015
Output for 7.2.19
0.030081033706665 0.047724008560181
Output for 7.2.18
0.025326013565063 0.04030704498291
Output for 7.2.17
0.038172006607056 0.036303043365479
Output for 7.2.16
0.033638000488281 0.039397001266479
Output for 7.2.15
0.035224914550781 0.044832944869995
Output for 7.2.14
0.024094104766846 0.038244962692261
Output for 7.2.13
0.02184796333313 0.034327983856201
Output for 7.2.12
0.052035093307495 0.052680969238281
Output for 7.2.11
0.021582841873169 0.034423112869263
Output for 7.2.10
0.023522853851318 0.035506963729858
Output for 7.2.9
0.02101993560791 0.031538009643555
Output for 7.2.8
0.021468877792358 0.036628007888794
Output for 7.2.7
0.021108150482178 0.033067941665649
Output for 7.2.6
0.022352933883667 0.032536029815674
Output for 7.2.5
0.027559041976929 0.045247793197632
Output for 7.2.4
0.026618957519531 0.047987937927246
Output for 7.2.3
0.027414083480835 0.032773017883301
Output for 7.2.2
0.025654792785645 0.034909009933472
Output for 7.2.1
0.027896165847778 0.048068046569824
Output for 7.2.0
0.022279977798462 0.033314943313599
Output for 7.1.33
0.076450824737549 0.04978609085083
Output for 7.1.32
0.060214996337891 0.051202058792114
Output for 7.1.31
0.036154985427856 0.04191517829895
Output for 7.1.30
0.071367025375366 0.051275968551636
Output for 7.1.29
0.064077854156494 0.070265054702759
Output for 7.1.28
0.061079025268555 0.047132015228271
Output for 7.1.27
0.049443960189819 0.061967134475708
Output for 7.1.26
0.036077976226807 0.035788059234619
Output for 7.1.25
0.050260782241821 0.041228055953979
Output for 7.1.24
0.03597617149353 0.037887096405029
Output for 7.1.23
0.038246870040894 0.059076070785522
Output for 7.1.22
0.034574031829834 0.036469221115112
Output for 7.1.21
0.040830135345459 0.039821147918701
Output for 7.1.20
0.034257173538208 0.035971879959106
Output for 7.1.19
0.036262989044189 0.040282964706421
Output for 7.1.18
0.053897857666016 0.03913688659668
Output for 7.1.17
0.053526878356934 0.056486845016479
Output for 7.1.16
0.057331085205078 0.059929847717285
Output for 7.1.15
0.037661075592041 0.056678056716919
Output for 7.1.14
0.036570072174072 0.051823854446411
Output for 7.1.13
0.043832063674927 0.042013883590698
Output for 7.1.12
0.061025142669678 0.058537006378174
Output for 7.1.11
0.03675389289856 0.038439035415649
Output for 7.1.10
0.035125017166138 0.04131007194519
Output for 7.1.9
0.059725999832153 0.062094211578369
Output for 7.1.8
0.036273002624512 0.043998956680298
Output for 7.1.7
0.033936977386475 0.035991907119751
Output for 7.1.6
0.038745164871216 0.037758111953735
Output for 7.1.5
0.036977052688599 0.040375947952271
Output for 7.1.4
0.034119844436646 0.036226987838745
Output for 7.1.3
0.034486055374146 0.037202119827271
Output for 7.1.2
0.037385225296021 0.036818981170654
Output for 7.1.1
0.035268068313599 0.038876056671143
Output for 7.1.0
0.058795928955078 0.07572603225708