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 7.4.3
0.015928030014038 0.015876770019531
Output for 7.4.2
0.01500391960144 0.015259981155396
Output for 7.4.1
0.016022920608521 0.015834808349609
Output for 7.4.0
0.022871017456055 0.022362947463989
Output for 7.3.15
0.02491307258606 0.020409107208252
Output for 7.3.14
0.025422096252441 0.020147800445557
Output for 7.3.13
0.020176887512207 0.020173072814941
Output for 7.3.12
0.020380020141602 0.020239114761353
Output for 7.3.11
0.021985054016113 0.020750045776367
Output for 7.3.10
0.0312659740448 0.030519962310791
Output for 7.3.9
0.01972484588623 0.019675016403198
Output for 7.3.8
0.027704954147339 0.027909994125366
Output for 7.3.7
0.020302057266235 0.020101070404053
Output for 7.3.6
0.021541118621826 0.022095918655396
Output for 7.3.5
0.020060062408447 0.020138025283813
Output for 7.3.4
0.020950078964233 0.021342039108276
Output for 7.3.3
0.019343852996826 0.019623994827271
Output for 7.3.2
0.029749155044556 0.029510974884033
Output for 7.3.1
0.019701957702637 0.019531965255737
Output for 7.3.0
0.020723104476929 0.019723176956177
Output for 7.2.28
0.021991968154907 0.021757125854492
Output for 7.2.27
0.021668910980225 0.023706912994385
Output for 7.2.26
0.021610975265503 0.021687030792236
Output for 7.2.25
0.022100925445557 0.021897077560425
Output for 7.2.24
0.022044897079468 0.022058963775635
Output for 7.2.23
0.031667947769165 0.024497985839844
Output for 7.2.22
0.022753953933716 0.021119117736816
Output for 7.2.21
0.026376008987427 0.028652906417847
Output for 7.2.20
0.022078990936279 0.021017074584961
Output for 7.2.19
0.022243022918701 0.027580976486206
Output for 7.2.18
0.022059917449951 0.022725820541382
Output for 7.2.17
0.022013902664185 0.023828029632568
Output for 7.2.16
0.022027969360352 0.022166013717651
Output for 7.2.15
0.027980089187622 0.028219938278198
Output for 7.2.14
0.021139860153198 0.021352767944336
Output for 7.2.13
0.021645069122314 0.021387815475464
Output for 7.2.12
0.031143188476562 0.0365309715271
Output for 7.2.11
0.022718906402588 0.022003889083862
Output for 7.2.10
0.022228002548218 0.021533966064453
Output for 7.2.9
0.021895170211792 0.021294116973877
Output for 7.2.8
0.021617889404297 0.022049903869629
Output for 7.2.7
0.029682159423828 0.0296790599823
Output for 7.2.6
0.022110939025879 0.022363185882568
Output for 7.2.5
0.02177619934082 0.021589040756226
Output for 7.2.4
0.028460025787354 0.029947996139526
Output for 7.2.3
0.022639036178589 0.024287939071655
Output for 7.2.2
0.020889043807983 0.020952939987183
Output for 7.2.1
0.022653102874756 0.021342039108276
Output for 7.2.0
0.023343086242676 0.023396968841553
Output for 7.1.33
0.033835887908936 0.034493923187256
Output for 7.1.32
0.04880690574646 0.033807039260864
Output for 7.1.31
0.040179014205933 0.032831907272339
Output for 7.1.30
0.033473014831543 0.033150911331177
Output for 7.1.29
0.051136016845703 0.050065040588379
Output for 7.1.28
0.038645029067993 0.034454107284546
Output for 7.1.27
0.053431034088135 0.049628019332886
Output for 7.1.26
0.05898380279541 0.059410095214844
Output for 7.1.25
0.04043984413147 0.040030956268311
Output for 7.1.24
0.0363450050354 0.034572839736938
Output for 7.1.23
0.040544986724854 0.03554892539978
Output for 7.1.22
0.05929708480835 0.057478189468384
Output for 7.1.21
0.034523010253906 0.03476095199585
Output for 7.1.20
0.053505182266235 0.044322967529297
Output for 7.1.19
0.061150074005127 0.0556640625
Output for 7.1.18
0.045319795608521 0.040879011154175
Output for 7.1.17
0.059194087982178 0.056035995483398
Output for 7.1.16
0.064594984054565 0.064642906188965
Output for 7.1.15
0.035210132598877 0.032245874404907
Output for 7.1.14
0.033711194992065 0.033478975296021
Output for 7.1.13
0.040075063705444 0.033308029174805
Output for 7.1.12
0.04591703414917 0.038459062576294
Output for 7.1.11
0.037355184555054 0.034471988677979
Output for 7.1.10
0.03287410736084 0.032668113708496
Output for 7.1.9
0.035027027130127 0.03423285484314
Output for 7.1.8
0.05420994758606 0.050160884857178
Output for 7.1.7
0.038660049438477 0.032618999481201
Output for 7.1.6
0.060136079788208 0.042680978775024
Output for 7.1.5
0.044034004211426 0.034733057022095
Output for 7.1.4
0.058545827865601 0.047183036804199
Output for 7.1.3
0.040987014770508 0.034817934036255
Output for 7.1.2
0.035982847213745 0.035438060760498
Output for 7.1.1
0.039857149124146 0.034704208374023
Output for 7.1.0
0.037410020828247 0.038985013961792
Output for 7.0.33
0.037949085235596 0.034467935562134
Output for 7.0.32
0.034984111785889 0.03830099105835
Output for 7.0.31
0.037096977233887 0.039047002792358
Output for 7.0.30
0.034688949584961 0.035803079605103
Output for 7.0.29
0.044816017150879 0.036134004592896
Output for 7.0.28
0.043103933334351 0.041996955871582
Output for 7.0.27
0.047800064086914 0.038002967834473
Output for 7.0.26
0.038054943084717 0.040274143218994
Output for 7.0.25
0.036000967025757 0.033248901367188
Output for 7.0.24
0.042346954345703 0.042747020721436
Output for 7.0.23
0.033949136734009 0.047262907028198
Output for 7.0.22
0.063762187957764 0.037338018417358
Output for 7.0.21
0.035304069519043 0.049634218215942
Output for 7.0.20
0.035026788711548 0.034238815307617
Output for 7.0.19
0.046790838241577 0.057910919189453
Output for 7.0.18
0.038160800933838 0.044187068939209
Output for 7.0.17
0.04182505607605 0.04154896736145
Output for 7.0.16
0.039619207382202 0.042672872543335
Output for 7.0.15
0.036325931549072 0.034643888473511
Output for 7.0.14
0.04355001449585 0.037682056427002
Output for 7.0.13
0.040700912475586 0.045846939086914
Output for 7.0.12
0.057208061218262 0.035881996154785
Output for 7.0.11
0.038127183914185 0.039330005645752
Output for 7.0.10
0.042627096176147 0.036959886550903
Output for 7.0.9
0.067863941192627 0.044945955276489
Output for 7.0.8
0.045516014099121 0.043941974639893
Output for 7.0.7
0.04944109916687 0.0433030128479
Output for 7.0.6
0.067061901092529 0.065258979797363
Output for 7.0.5
0.035846948623657 0.046093940734863
Output for 7.0.4
0.032622814178467 0.033982992172241
Output for 7.0.3
0.062851905822754 0.055186033248901
Output for 7.0.2
0.034786939620972 0.038261890411377
Output for 7.0.1
0.03312611579895 0.035536050796509
Output for 7.0.0
0.036968946456909 0.034809827804565
Output for 5.6.40
0.15184783935547 0.13534617424011
Output for 5.6.39
0.15210795402527 0.14750599861145
Output for 5.6.38
0.17601990699768 0.12485098838806
Output for 5.6.37
0.17751502990723 0.13616800308228
Output for 5.6.36
0.16667509078979 0.13058996200562
Output for 5.6.35
0.1356828212738 0.13349294662476
Output for 5.6.34
0.23765015602112 0.20887112617493
Output for 5.6.33
0.19123697280884 0.15082287788391
Output for 5.6.32
0.18464398384094 0.14499998092651
Output for 5.6.31
0.16517496109009 0.1551730632782
Output for 5.6.30
0.26295399665833 0.21988606452942
Output for 5.6.29
0.12550806999207 0.12724900245667
Output for 5.6.28
0.15582418441772 0.15718483924866
Output for 5.6.27
0.20845007896423 0.19373202323914
Output for 5.6.26
0.18660688400269 0.15497708320618
Output for 5.6.25
0.20537900924683 0.14556407928467
Output for 5.6.24
0.15533709526062 0.16586112976074
Output for 5.6.23
0.17358207702637 0.1436870098114
Output for 5.6.22
0.18080520629883 0.12392282485962
Output for 5.6.21
0.1465060710907 0.13386416435242
Output for 5.6.20
0.14312505722046 0.12571310997009
Output for 5.6.19
0.18826699256897 0.2027759552002
Output for 5.6.18
0.13473296165466 0.17445302009583
Output for 5.6.17
0.15506076812744 0.20576882362366
Output for 5.6.16
0.13461780548096 0.16188311576843
Output for 5.6.15
0.160964012146 0.13361382484436
Output for 5.6.14
0.2377450466156 0.23655486106873
Output for 5.6.13
0.16170597076416 0.14338207244873
Output for 5.6.12
0.1590268611908 0.13575887680054
Output for 5.6.11
0.16926312446594 0.157870054245
Output for 5.6.10
0.1479549407959 0.13608407974243
Output for 5.6.9
0.12375903129578 0.14875411987305
Output for 5.6.8
0.12782406806946 0.1391499042511
Output for 5.6.7
0.13746690750122 0.13491415977478
Output for 5.6.6
0.12148594856262 0.18048000335693
Output for 5.6.5
0.20690298080444 0.25391793251038
Output for 5.6.4
0.18352818489075 0.20673704147339
Output for 5.6.3
0.13734221458435 0.13353991508484
Output for 5.6.2
0.16672086715698 0.1693229675293
Output for 5.6.1
0.20617008209229 0.19750189781189
Output for 5.6.0
0.19454503059387 0.20896005630493
Output for 5.5.38
0.14688086509705 0.14408206939697
Output for 5.5.37
0.13953185081482 0.15902709960938
Output for 5.5.36
0.17443084716797 0.14305806159973
Output for 5.5.35
0.19537305831909 0.24909687042236
Output for 5.5.34
0.17036414146423 0.13430905342102
Output for 5.5.33
0.1569709777832 0.12954306602478
Output for 5.5.32
0.20037698745728 0.19878697395325
Output for 5.5.31
0.18553996086121 0.14042997360229
Output for 5.5.30
0.18617916107178 0.15747499465942
Output for 5.5.29
0.14982199668884 0.12967419624329
Output for 5.5.28
0.19282793998718 0.1299889087677
Output for 5.5.27
0.13108897209167 0.13291192054749
Output for 5.5.26
0.12932896614075 0.1331901550293
Output for 5.5.25
0.12239408493042 0.1625759601593
Output for 5.5.24
0.20243811607361 0.1549379825592
Output for 5.5.23
0.14767599105835 0.14798307418823
Output for 5.5.22
0.14196610450745 0.14561796188354
Output for 5.5.21
0.19646596908569 0.20397400856018
Output for 5.5.20
0.1331160068512 0.19857692718506
Output for 5.5.19
0.19265413284302 0.12314701080322
Output for 5.5.18
0.14152002334595 0.18593716621399
Output for 5.5.17
0.24928784370422 0.19372606277466
Output for 5.5.16
0.12688302993774 0.1224799156189
Output for 5.5.15
0.13279986381531 0.12031412124634
Output for 5.5.14
0.26797318458557 0.2056200504303
Output for 5.5.13
0.14945888519287 0.14238214492798
Output for 5.5.12
0.14332890510559 0.1346549987793
Output for 5.5.11
0.18269395828247 0.16777992248535
Output for 5.5.10
0.1690239906311 0.19877600669861
Output for 5.5.9
0.16254115104675 0.17661499977112
Output for 5.5.8
0.18913912773132 0.17404294013977
Output for 5.5.7
0.16084313392639 0.16958594322205
Output for 5.5.6
0.19400215148926 0.15184712409973
Output for 5.5.5
0.16498589515686 0.17563199996948
Output for 5.5.4
0.17535781860352 0.15438103675842
Output for 5.5.3
0.14918494224548 0.15570688247681
Output for 5.5.2
0.15996098518372 0.1329619884491
Output for 5.5.1
0.14592599868774 0.1243851184845
Output for 5.5.0
0.21430516242981 0.19357895851135
Output for 5.4.45
0.1709201335907 0.15307116508484
Output for 5.4.44
0.15029001235962 0.15025401115417
Output for 5.4.43
0.19812703132629 0.16818284988403
Output for 5.4.42
0.24215698242188 0.19705510139465
Output for 5.4.41
0.17929005622864 0.14442205429077
Output for 5.4.40
0.17109894752502 0.18788599967957
Output for 5.4.39
0.21357583999634 0.17475581169128
Output for 5.4.38
0.1568911075592 0.15640497207642
Output for 5.4.37
0.15525603294373 0.14825105667114
Output for 5.4.36
0.15056991577148 0.13270688056946
Output for 5.4.35
0.18164610862732 0.13037109375
Output for 5.4.34
0.18122792243958 0.2215781211853
Output for 5.4.33
0.18755984306335 0.14026117324829
Output for 5.4.32
0.14701700210571 0.21354198455811
Output for 5.4.31
0.14817094802856 0.14399600028992
Output for 5.4.30
0.16906809806824 0.16983985900879
Output for 5.4.29
0.13475799560547 0.15346717834473
Output for 5.4.28
0.1396119594574 0.13635492324829
Output for 5.4.27
0.15096998214722 0.14233613014221
Output for 5.4.26
0.1586971282959 0.15160894393921
Output for 5.4.25
0.21375298500061 0.18313407897949
Output for 5.4.24
0.23611998558044 0.21971416473389
Output for 5.4.23
0.20907807350159 0.20951414108276
Output for 5.4.22
0.14935803413391 0.14170408248901
Output for 5.4.21
0.15551090240479 0.16999506950378
Output for 5.4.20
0.16372895240784 0.14236879348755
Output for 5.4.19
0.14574599266052 0.13954997062683
Output for 5.4.18
0.16118979454041 0.16150403022766
Output for 5.4.17
0.15362000465393 0.16659307479858
Output for 5.4.16
0.14661884307861 0.13796401023865
Output for 5.4.15
0.17108511924744 0.22155094146729
Output for 5.4.14
0.13597011566162 0.16330194473267
Output for 5.4.13
0.14519786834717 0.14405918121338
Output for 5.4.12
0.16758489608765 0.15438318252563
Output for 5.4.11
0.15253686904907 0.15034294128418
Output for 5.4.10
0.12752485275269 0.13266491889954
Output for 5.4.9
0.15203905105591 0.20456600189209
Output for 5.4.8
0.14196085929871 0.13978505134583
Output for 5.4.7
0.13712811470032 0.14332818984985
Output for 5.4.6
0.20347785949707 0.17487215995789
Output for 5.4.5
0.13769316673279 0.15904188156128
Output for 5.4.4
0.15485382080078 0.1380889415741
Output for 5.4.3
0.15187501907349 0.13479709625244
Output for 5.4.2
0.1393449306488 0.13379192352295
Output for 5.4.1
0.1369469165802 0.12400889396667
Output for 5.4.0
0.16449809074402 0.15686511993408
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/tmJMq on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/tmJMq on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/tmJMq on line 5
Process exited with code 255.