3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = range(0, 10000); $start_time = microtime(true); for ($index = 0; $index < 100000; $index++) { count($arr); } echo 'Took: ' . (string) (microtime(true) - $start_time) . "\n"; $start_time = microtime(true); for ($index = 0; $index < 100000; $index++) { empty($arr); } echo 'Took: ' . (string) (microtime(true) - $start_time) . "\n";
Output for 7.1.0
Took: 0.003870964050293 Took: 0.0029258728027344
Output for 7.0.14
Took: 0.003633975982666 Took: 0.0025899410247803
Output for 7.0.11
Took: 0.0033209323883057 Took: 0.0022478103637695
Output for 7.0.10
Took: 0.0027930736541748 Took: 0.0019619464874268
Output for 7.0.9
Took: 0.0034499168395996 Took: 0.0023210048675537
Output for 7.0.8
Took: 0.0029358863830566 Took: 0.0020930767059326
Output for 7.0.7
Took: 0.0028431415557861 Took: 0.0019080638885498
Output for 7.0.6
Took: 0.0028679370880127 Took: 0.0020558834075928
Output for 7.0.5
Took: 0.0028390884399414 Took: 0.0019428730010986
Output for 7.0.4
Took: 0.0030210018157959 Took: 0.0027580261230469
Output for 7.0.3
Took: 0.0029470920562744 Took: 0.0021939277648926
Output for 7.0.2
Took: 0.0031569004058838 Took: 0.0023109912872314
Output for 7.0.1
Took: 0.0029211044311523 Took: 0.0022249221801758
Output for 7.0.0
Took: 0.0040409564971924 Took: 0.002467155456543
Output for 5.6.28
Took: 0.01570200920105 Took: 0.0094020366668701
Output for 5.6.26
Took: 0.011624097824097 Took: 0.0043339729309082
Output for 5.6.25
Took: 0.011650085449219 Took: 0.0043480396270752
Output for 5.6.24
Took: 0.010967016220093 Took: 0.0037469863891602
Output for 5.6.23
Took: 0.012079000473022 Took: 0.0042898654937744
Output for 5.6.22
Took: 0.012948036193848 Took: 0.0045979022979736
Output for 5.6.21
Took: 0.013648986816406 Took: 0.0060629844665527
Output for 5.6.20
Took: 0.011696100234985 Took: 0.004270076751709
Output for 5.6.19
Took: 0.011018991470337 Took: 0.0036249160766602
Output for 5.6.18
Took: 0.011855125427246 Took: 0.0042688846588135
Output for 5.6.17
Took: 0.010393857955933 Took: 0.0036888122558594
Output for 5.6.16
Took: 0.012519836425781 Took: 0.0047399997711182
Output for 5.6.15
Took: 0.012325048446655 Took: 0.0035388469696045
Output for 5.6.14
Took: 0.0094490051269531 Took: 0.0032920837402344
Output for 5.6.13
Took: 0.012808799743652 Took: 0.0042719841003418
Output for 5.6.12
Took: 0.012356042861938 Took: 0.004572868347168
Output for 5.6.11
Took: 0.0098838806152344 Took: 0.0037190914154053
Output for 5.6.10
Took: 0.014009952545166 Took: 0.0039420127868652
Output for 5.6.9
Took: 0.01303505897522 Took: 0.0045700073242188
Output for 5.6.8
Took: 0.011314868927002 Took: 0.0041830539703369
Output for 5.6.7
Took: 0.010078907012939 Took: 0.0032100677490234
Output for 5.6.6
Took: 0.011430025100708 Took: 0.0041019916534424
Output for 5.6.5
Took: 0.011121034622192 Took: 0.0040221214294434
Output for 5.6.4
Took: 0.012571096420288 Took: 0.004518985748291
Output for 5.6.3
Took: 0.013406991958618 Took: 0.0048630237579346
Output for 5.6.2
Took: 0.012176036834717 Took: 0.0048449039459229
Output for 5.6.1
Took: 0.013745069503784 Took: 0.0041160583496094
Output for 5.6.0
Took: 0.012930870056152 Took: 0.0047080516815186
Output for 5.5.38
Took: 0.0092439651489258 Took: 0.0035340785980225
Output for 5.5.37
Took: 0.012120008468628 Took: 0.0032398700714111
Output for 5.5.36
Took: 0.012617826461792 Took: 0.004580020904541
Output for 5.5.35
Took: 0.019927978515625 Took: 0.0042049884796143
Output for 5.5.34
Took: 0.012491941452026 Took: 0.0039350986480713
Output for 5.5.33
Took: 0.011122226715088 Took: 0.0039188861846924
Output for 5.5.32
Took: 0.012650012969971 Took: 0.0044591426849365
Output for 5.5.31
Took: 0.0081689357757568 Took: 0.0028319358825684
Output for 5.5.30
Took: 0.012880086898804 Took: 0.0042970180511475
Output for 5.5.29
Took: 0.011662006378174 Took: 0.0037751197814941
Output for 5.5.28
Took: 0.012792110443115 Took: 0.0043959617614746
Output for 5.5.27
Took: 0.013699054718018 Took: 0.0046839714050293
Output for 5.5.26
Took: 0.011416912078857 Took: 0.0039219856262207
Output for 5.5.25
Took: 0.011315107345581 Took: 0.0041971206665039
Output for 5.5.24
Took: 0.012143135070801 Took: 0.0037209987640381
Output for 5.5.23
Took: 0.009788990020752 Took: 0.0034909248352051
Output for 5.5.22
Took: 0.01157283782959 Took: 0.00335693359375
Output for 5.5.21
Took: 0.01022481918335 Took: 0.003140926361084
Output for 5.5.20
Took: 0.012997150421143 Took: 0.0043609142303467
Output for 5.5.19
Took: 0.010755062103271 Took: 0.0037469863891602
Output for 5.5.18
Took: 0.011704921722412 Took: 0.0037510395050049
Output for 5.5.16
Took: 0.010252952575684 Took: 0.0036020278930664
Output for 5.5.15
Took: 0.012866973876953 Took: 0.0048408508300781
Output for 5.5.14
Took: 0.013859033584595 Took: 0.0046460628509521
Output for 5.5.13
Took: 0.01362419128418 Took: 0.0046510696411133
Output for 5.5.12
Took: 0.014017820358276 Took: 0.0049340724945068
Output for 5.5.11
Took: 0.0093660354614258 Took: 0.003870964050293
Output for 5.5.10
Took: 0.012262105941772 Took: 0.0044939517974854
Output for 5.5.9
Took: 0.011855125427246 Took: 0.0043351650238037
Output for 5.5.8
Took: 0.012101888656616 Took: 0.0041279792785645
Output for 5.5.7
Took: 0.01280403137207 Took: 0.0045740604400635
Output for 5.5.6
Took: 0.012490034103394 Took: 0.0044660568237305
Output for 5.5.5
Took: 0.013324975967407 Took: 0.004702091217041
Output for 5.5.4
Took: 0.012162923812866 Took: 0.0042538642883301
Output for 5.5.3
Took: 0.012125015258789 Took: 0.0033421516418457
Output for 5.5.2
Took: 0.012685060501099 Took: 0.0044598579406738
Output for 5.5.1
Took: 0.013128995895386 Took: 0.0046498775482178
Output for 5.5.0
Took: 0.010602951049805 Took: 0.0039069652557373
Output for 5.4.45
Took: 0.011260986328125 Took: 0.0039489269256592
Output for 5.4.44
Took: 0.010666131973267 Took: 0.003777027130127
Output for 5.4.43
Took: 0.01136589050293 Took: 0.0040130615234375
Output for 5.4.42
Took: 0.008638858795166 Took: 0.0028860569000244
Output for 5.4.41
Took: 0.011847972869873 Took: 0.0044128894805908
Output for 5.4.40
Took: 0.011996984481812 Took: 0.0042250156402588
Output for 5.4.39
Took: 0.014126777648926 Took: 0.002936840057373
Output for 5.4.38
Took: 0.0091948509216309 Took: 0.0032098293304443
Output for 5.4.37
Took: 0.013124942779541 Took: 0.0047240257263184
Output for 5.4.36
Took: 0.012906074523926 Took: 0.0045790672302246
Output for 5.4.35
Took: 0.011443853378296 Took: 0.0040390491485596
Output for 5.4.34
Took: 0.013381004333496 Took: 0.0048909187316895
Output for 5.4.32
Took: 0.012858867645264 Took: 0.0042920112609863
Output for 5.4.31
Took: 0.012902021408081 Took: 0.0047428607940674
Output for 5.4.30
Took: 0.010040044784546 Took: 0.0034899711608887
Output for 5.4.29
Took: 0.013174057006836 Took: 0.0040371417999268
Output for 5.4.28
Took: 0.012206077575684 Took: 0.0042622089385986
Output for 5.4.27
Took: 0.012454032897949 Took: 0.0034370422363281
Output for 5.4.26
Took: 0.0085668563842773 Took: 0.002892017364502
Output for 5.4.25
Took: 0.012240171432495 Took: 0.0042760372161865
Output for 5.4.24
Took: 0.013291835784912 Took: 0.0046379566192627
Output for 5.4.23
Took: 0.011571884155273 Took: 0.0042948722839355
Output for 5.4.22
Took: 0.011719942092896 Took: 0.0042300224304199
Output for 5.4.21
Took: 0.013676881790161 Took: 0.0048370361328125
Output for 5.4.20
Took: 0.008821964263916 Took: 0.0032651424407959
Output for 5.4.19
Took: 0.013519048690796 Took: 0.0046150684356689
Output for 5.4.18
Took: 0.013062953948975 Took: 0.0047531127929688
Output for 5.4.17
Took: 0.011430978775024 Took: 0.0030291080474854
Output for 5.4.16
Took: 0.013146162033081 Took: 0.0046849250793457
Output for 5.4.15
Took: 0.011193990707397 Took: 0.0033049583435059
Output for 5.4.14
Took: 0.0105140209198 Took: 0.0042920112609863
Output for 5.4.13
Took: 0.011682033538818 Took: 0.0042951107025146
Output for 5.4.12
Took: 0.010859966278076 Took: 0.0039870738983154
Output for 5.4.11
Took: 0.012315034866333 Took: 0.0043480396270752
Output for 5.4.10
Took: 0.011336088180542 Took: 0.0042810440063477
Output for 5.4.9
Took: 0.012671947479248 Took: 0.004453182220459
Output for 5.4.8
Took: 0.014130115509033 Took: 0.0050449371337891
Output for 5.4.7
Took: 0.013200044631958 Took: 0.0054991245269775
Output for 5.4.6
Took: 0.013476848602295 Took: 0.0047259330749512
Output for 5.4.5
Took: 0.012600898742676 Took: 0.0037369728088379
Output for 5.4.4
Took: 0.012423992156982 Took: 0.0043652057647705
Output for 5.4.3
Took: 0.013212919235229 Took: 0.0040719509124756
Output for 5.4.2
Took: 0.013011932373047 Took: 0.0046792030334473
Output for 5.4.1
Took: 0.011021852493286 Took: 0.0041849613189697
Output for 5.4.0
Took: 0.013113975524902 Took: 0.0045750141143799
Output for 5.3.29
Took: 0.01341986656189 Took: 0.0049619674682617
Output for 5.3.28
Took: 0.012551069259644 Took: 0.004478931427002
Output for 5.3.27
Took: 0.013309955596924 Took: 0.0046019554138184
Output for 5.3.26
Took: 0.012993812561035 Took: 0.0048868656158447
Output for 5.3.25
Took: 0.014564037322998 Took: 0.0054268836975098
Output for 5.3.24
Took: 0.012290000915527 Took: 0.0044147968292236
Output for 5.3.23
Took: 0.011943101882935 Took: 0.0039560794830322
Output for 5.3.22
Took: 0.016185998916626 Took: 0.0059249401092529
Output for 5.3.21
Took: 0.015601873397827 Took: 0.0060110092163086
Output for 5.3.20
Took: 0.013117074966431 Took: 0.0041329860687256
Output for 5.3.19
Took: 0.012609004974365 Took: 0.0048449039459229
Output for 5.3.18
Took: 0.01516318321228 Took: 0.0056178569793701
Output for 5.3.17
Took: 0.016271114349365 Took: 0.0059969425201416
Output for 5.3.16
Took: 0.016271829605103 Took: 0.004835844039917
Output for 5.3.15
Took: 0.014111995697021 Took: 0.0047571659088135
Output for 5.3.14
Took: 0.014178037643433 Took: 0.0043220520019531
Output for 5.3.13
Took: 0.01220703125 Took: 0.0044548511505127
Output for 5.3.12
Took: 0.0156090259552 Took: 0.0057220458984375
Output for 5.3.11
Took: 0.015079021453857 Took: 0.005389928817749
Output for 5.3.10
Took: 0.014188051223755 Took: 0.004774808883667
Output for 5.3.9
Took: 0.016653060913086 Took: 0.0048420429229736
Output for 5.3.8
Took: 0.014214038848877 Took: 0.0048339366912842
Output for 5.3.7
Took: 0.014471054077148 Took: 0.0053780078887939
Output for 5.3.6
Took: 0.013059854507446 Took: 0.0050420761108398
Output for 5.3.5
Took: 0.013695955276489 Took: 0.0050978660583496
Output for 5.3.4
Took: 0.01504921913147 Took: 0.0058610439300537
Output for 5.3.3
Took: 0.014602184295654 Took: 0.005263090133667
Output for 5.3.2
Took: 0.016272068023682 Took: 0.0043609142303467
Output for 5.3.1
Took: 0.014266014099121 Took: 0.0053529739379883
Output for 5.3.0
Took: 0.016826868057251 Took: 0.0060839653015137
Output for 5.2.17
Took: 0.017342090606689 Took: 0.010264873504639
Output for 5.2.16
Took: 0.015088081359863 Took: 0.0066800117492676
Output for 5.2.15
Took: 0.016853809356689 Took: 0.0079588890075684
Output for 5.2.14
Took: 0.019742965698242 Took: 0.0072371959686279
Output for 5.2.13
Took: 0.015406131744385 Took: 0.0075829029083252
Output for 5.2.12
Took: 0.019066095352173 Took: 0.0087409019470215
Output for 5.2.11
Took: 0.016592979431152 Took: 0.0077719688415527
Output for 5.2.10
Took: 0.016932964324951 Took: 0.0078871250152588
Output for 5.2.9
Took: 0.019370079040527 Took: 0.0094799995422363
Output for 5.2.8
Took: 0.01665210723877 Took: 0.0072319507598877
Output for 5.2.7
Took: 0.018733024597168 Took: 0.0082430839538574
Output for 5.2.6
Took: 0.018168926239014 Took: 0.0074200630187988
Output for 5.2.5
Took: 0.017681837081909 Took: 0.0078728199005127
Output for 5.2.4
Took: 0.017866134643555 Took: 0.0084869861602783
Output for 5.2.3
Took: 0.017990827560425 Took: 0.0086050033569336
Output for 5.2.2
Took: 0.020992994308472 Took: 0.0089659690856934
Output for 5.2.1
Took: 0.016561031341553 Took: 0.0077848434448242
Output for 5.2.0
Took: 0.016331911087036 Took: 0.0076911449432373
Output for 5.1.6
Took: 0.016690969467163 Took: 0.0086460113525391
Output for 5.1.5
Took: 0.017338991165161 Took: 0.0087850093841553
Output for 5.1.4
Took: 0.019080877304077 Took: 0.0088469982147217
Output for 5.1.3
Took: 0.017879962921143 Took: 0.0089819431304932
Output for 5.1.2
Took: 0.016462087631226 Took: 0.0085358619689941
Output for 5.1.1
Took: 0.016326904296875 Took: 0.0088620185852051
Output for 5.1.0
Took: 0.016135931015015 Took: 0.008030891418457
Output for 5.0.5
Took: 0.03933310508728 Took: 0.018781900405884
Output for 5.0.4
Took: 0.039206981658936 Took: 0.018639087677002
Output for 5.0.3
Took: 0.0282301902771 Took: 0.012709856033325
Output for 5.0.2
Took: 0.030400037765503 Took: 0.014416933059692
Output for 5.0.1
Took: 0.035083055496216 Took: 0.015725135803223
Output for 5.0.0
Took: 0.030586004257202 Took: 0.015336990356445
Output for 4.4.9
Took: 0.036888 Took: 0.018428
Output for 4.4.8
Took: 0.035701 Took: 0.019412
Output for 4.4.7
Took: 0.030138 Took: 0.014886
Output for 4.4.6
Took: 0.033112 Took: 0.018186
Output for 4.4.5
Took: 0.023274 Took: 0.014038
Output for 4.4.4
Took: 0.029857 Took: 0.018428
Output for 4.4.3
Took: 0.030917 Took: 0.017406
Output for 4.4.2
Took: 0.034697 Took: 0.019403
Output for 4.4.1
Took: 0.027514 Took: 0.017065
Output for 4.4.0
Took: 0.030602 Took: 0.01684
Output for 4.3.11
Took: 0.033238 Took: 0.015527
Output for 4.3.10
Took: 0.035656 Took: 0.018925
Output for 4.3.9
Took: 0.033388 Took: 0.017257
Output for 4.3.8
Took: 0.032769 Took: 0.016423
Output for 4.3.7
Took: 0.035232 Took: 0.01784
Output for 4.3.6
Took: 0.032004 Took: 0.01605
Output for 4.3.5
Took: 0.035673 Took: 0.017818
Output for 4.3.4
Took: 0.030928 Took: 0.017278
Output for 4.3.3
Took: 0.035262 Took: 0.018745
Output for 4.3.2
Took: 0.035753 Took: 0.015972
Output for 4.3.1
Took: 0.0341 Took: 0.018497
Output for 4.3.0
Took: 0.036806 Took: 0.021461