3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $tries = 100000; $arr = array(1,2,3); $start = microtime(true); for ($i = 0; $i < $tries; $i++) { $test = $arr[0]; } echo (microtime(true) - $start)."\n"; $start = microtime(true); for ($i = 0; $i < $tries; $i++) { $test = current($arr); } echo (microtime(true) - $start);
Output for 7.1.0
0.0027298927307129 0.004054069519043
Output for 7.0.14
0.0047080516815186 0.005856990814209
Output for 7.0.10
0.001863956451416 0.0025520324707031
Output for 7.0.9
0.0024991035461426 0.0035290718078613
Output for 7.0.8
0.0019659996032715 0.0027930736541748
Output for 7.0.7
0.0023858547210693 0.0037009716033936
Output for 7.0.6
0.0025060176849365 0.0036940574645996
Output for 7.0.5
0.0023019313812256 0.0033729076385498
Output for 7.0.4
0.002673864364624 0.004033088684082
Output for 7.0.3
0.0020840167999268 0.002924919128418
Output for 7.0.2
0.002687931060791 0.00360107421875
Output for 7.0.1
0.0024120807647705 0.0033969879150391
Output for 7.0.0
0.0027709007263184 0.0039510726928711
Output for 5.6.28
0.0067429542541504 0.014432907104492
Output for 5.6.25
0.0043301582336426 0.008289098739624
Output for 5.6.24
0.0072219371795654 0.012817859649658
Output for 5.6.23
0.0061111450195312 0.011789083480835
Output for 5.6.22
0.0064089298248291 0.012608766555786
Output for 5.6.21
0.0058438777923584 0.011998176574707
Output for 5.6.20
0.0053091049194336 0.0088558197021484
Output for 5.6.19
0.0045881271362305 0.010133981704712
Output for 5.6.18
0.0055999755859375 0.012374877929688
Output for 5.6.17
0.0063130855560303 0.009221076965332
Output for 5.6.16
0.0060210227966309 0.012198925018311
Output for 5.6.15
0.0063779354095459 0.012837886810303
Output for 5.6.14
0.0064079761505127 0.013098955154419
Output for 5.6.13
0.0050280094146729 0.01004695892334
Output for 5.6.12
0.0062220096588135 0.011427164077759
Output for 5.6.11
0.005504846572876 0.015045166015625
Output for 5.6.10
0.0046899318695068 0.010924100875854
Output for 5.6.9
0.0059330463409424 0.011774063110352
Output for 5.6.8
0.0049481391906738 0.0091891288757324
Output for 5.6.7
0.0058228969573975 0.011714220046997
Output for 5.6.6
0.0056021213531494 0.011458158493042
Output for 5.6.5
0.0067589282989502 0.018167018890381
Output for 5.6.4
0.0040750503540039 0.0087170600891113
Output for 5.6.3
0.0067870616912842 0.013495922088623
Output for 5.6.2
0.0061569213867188 0.01192307472229
Output for 5.6.1
0.0063240528106689 0.012923955917358
Output for 5.6.0
0.0066919326782227 0.013509035110474
Output for 5.5.38
0.0049808025360107 0.0098710060119629
Output for 5.5.37
0.010384082794189 0.019505023956299
Output for 5.5.36
0.0042049884796143 0.0093450546264648
Output for 5.5.35
0.0069918632507324 0.013990163803101
Output for 5.5.34
0.0066888332366943 0.013473987579346
Output for 5.5.33
0.0056979656219482 0.011948108673096
Output for 5.5.32
0.0063037872314453 0.011208057403564
Output for 5.5.31
0.0055150985717773 0.010493040084839
Output for 5.5.30
0.0055878162384033 0.016042947769165
Output for 5.5.29
0.0070559978485107 0.012755155563354
Output for 5.5.28
0.0057001113891602 0.012197017669678
Output for 5.5.27
0.0069959163665771 0.013888835906982
Output for 5.5.26
0.0069799423217773 0.01031494140625
Output for 5.5.25
0.005526065826416 0.011563062667847
Output for 5.5.24
0.0058579444885254 0.01184606552124
Output for 5.5.23
0.0057919025421143 0.011884927749634
Output for 5.5.22
0.006080150604248 0.011679172515869
Output for 5.5.21
0.0056328773498535 0.012632131576538
Output for 5.5.20
0.0065169334411621 0.012650012969971
Output for 5.5.19
0.0063860416412354 0.013252973556519
Output for 5.5.18
0.0051920413970947 0.012040853500366
Output for 5.5.16
0.0066509246826172 0.013526916503906
Output for 5.5.15
0.0063610076904297 0.010572910308838
Output for 5.5.14
0.0064268112182617 0.01282000541687
Output for 5.5.13
0.0068249702453613 0.012919902801514
Output for 5.5.12
0.0068240165710449 0.013736009597778
Output for 5.5.11
0.0069069862365723 0.011132001876831
Output for 5.5.10
0.0066189765930176 0.0096919536590576
Output for 5.5.9
0.005587100982666 0.0098259449005127
Output for 5.5.8
0.0063309669494629 0.013025999069214
Output for 5.5.7
0.0051569938659668 0.010310173034668
Output for 5.5.6
0.0053520202636719 0.012508153915405
Output for 5.5.5
0.0068240165710449 0.01193380355835
Output for 5.5.4
0.0084919929504395 0.018769025802612
Output for 5.5.3
0.0066401958465576 0.013637065887451
Output for 5.5.2
0.005469799041748 0.010277986526489
Output for 5.5.1
0.0067110061645508 0.014811038970947
Output for 5.5.0
0.012286901473999 0.014586925506592
Output for 5.4.45
0.0065929889678955 0.010312080383301
Output for 5.4.44
0.0065009593963623 0.013274192810059
Output for 5.4.43
0.0065779685974121 0.011339902877808
Output for 5.4.42
0.005903959274292 0.012511014938354
Output for 5.4.41
0.0069179534912109 0.012225151062012
Output for 5.4.40
0.0071640014648438 0.014194965362549
Output for 5.4.39
0.006335973739624 0.01286506652832
Output for 5.4.38
0.0059161186218262 0.011468887329102
Output for 5.4.37
0.0067229270935059 0.01377010345459
Output for 5.4.36
0.0063209533691406 0.012876033782959
Output for 5.4.35
0.0059361457824707 0.018071889877319
Output for 5.4.34
0.0067710876464844 0.012176990509033
Output for 5.4.32
0.0070090293884277 0.013500928878784
Output for 5.4.31
0.0059440135955811 0.012937068939209
Output for 5.4.30
0.0058841705322266 0.020176887512207
Output for 5.4.29
0.0059449672698975 0.012596130371094
Output for 5.4.28
0.0063638687133789 0.010864019393921
Output for 5.4.27
0.0068681240081787 0.012338161468506
Output for 5.4.26
0.0059468746185303 0.012499094009399
Output for 5.4.25
0.0071699619293213 0.014539957046509
Output for 5.4.24
0.0041990280151367 0.0088350772857666
Output for 5.4.23
0.0059638023376465 0.010170936584473
Output for 5.4.22
0.0061230659484863 0.011873006820679
Output for 5.4.21
0.005659818649292 0.011318922042847
Output for 5.4.20
0.0053091049194336 0.010900020599365
Output for 5.4.19
0.0066049098968506 0.012540817260742
Output for 5.4.18
0.0068681240081787 0.013288974761963
Output for 5.4.17
0.0068941116333008 0.01393985748291
Output for 5.4.16
0.0066421031951904 0.010631084442139
Output for 5.4.15
0.0057179927825928 0.012079000473022
Output for 5.4.14
0.0061979293823242 0.012929201126099
Output for 5.4.13
0.0051219463348389 0.011007070541382
Output for 5.4.12
0.0063440799713135 0.013367891311646
Output for 5.4.11
0.0064070224761963 0.013522863388062
Output for 5.4.10
0.0077269077301025 0.013957023620605
Output for 5.4.9
0.0073459148406982 0.014009952545166
Output for 5.4.8
0.0065760612487793 0.0098350048065186
Output for 5.4.7
0.0064208507537842 0.013113021850586
Output for 5.4.6
0.006641149520874 0.011254072189331
Output for 5.4.5
0.006173849105835 0.011024951934814
Output for 5.4.4
0.0074648857116699 0.014266967773438
Output for 5.4.3
0.0066819190979004 0.01268196105957
Output for 5.4.2
0.0078530311584473 0.015625
Output for 5.4.1
0.0073909759521484 0.012277841567993
Output for 5.4.0
0.0059309005737305 0.0095529556274414
Output for 5.3.29
0.0076580047607422 0.015263795852661
Output for 5.3.28
0.0075089931488037 0.013880014419556
Output for 5.3.27
0.0057740211486816 0.011490821838379
Output for 5.3.26
0.0092799663543701 0.016661882400513
Output for 5.3.25
0.0066790580749512 0.01363205909729
Output for 5.3.24
0.0070168972015381 0.014343976974487
Output for 5.3.23
0.0090019702911377 0.016588926315308
Output for 5.3.22
0.0087041854858398 0.014448881149292
Output for 5.3.21
0.0087070465087891 0.016948938369751
Output for 5.3.20
0.0060939788818359 0.012208938598633
Output for 5.3.19
0.0057628154754639 0.012195110321045
Output for 5.3.18
0.0074069499969482 0.01452898979187
Output for 5.3.17
0.0087418556213379 0.017188787460327
Output for 5.3.16
0.0077528953552246 0.015696048736572
Output for 5.3.15
0.0076150894165039 0.014927864074707
Output for 5.3.14
0.0068230628967285 0.013148069381714
Output for 5.3.13
0.0058310031890869 0.012094974517822
Output for 5.3.12
0.0087380409240723 0.017467021942139
Output for 5.3.11
0.0084211826324463 0.015116930007935
Output for 5.3.10
0.0070908069610596 0.013095140457153
Output for 5.3.9
0.0082910060882568 0.015909910202026
Output for 5.3.8
0.0085549354553223 0.016467094421387
Output for 5.3.7
0.0079128742218018 0.014926195144653
Output for 5.3.6
0.0081570148468018 0.012557029724121
Output for 5.3.5
0.0052270889282227 0.010701894760132
Output for 5.3.4
0.0089321136474609 0.021862030029297
Output for 5.3.3
0.0077340602874756 0.015383958816528
Output for 5.3.2
0.0080101490020752 0.014611005783081
Output for 5.3.1
0.0075709819793701 0.015320062637329
Output for 5.3.0
0.0090019702911377 0.015377998352051
Output for 5.2.17
0.010886192321777 0.017640113830566
Output for 5.2.16
0.012575149536133 0.020199060440063
Output for 5.2.15
0.011927843093872 0.017414808273315
Output for 5.2.14
0.022284984588623 0.017798900604248
Output for 5.2.13
0.011227130889893 0.017864942550659
Output for 5.2.12
0.012190103530884 0.019647121429443
Output for 5.2.11
0.01211404800415 0.019201040267944
Output for 5.2.10
0.011429071426392 0.016432046890259
Output for 5.2.9
0.01349401473999 0.017037868499756
Output for 5.2.8
0.010366916656494 0.016104936599731
Output for 5.2.7
0.0098919868469238 0.016494989395142
Output for 5.2.6
0.01134991645813 0.018126964569092
Output for 5.2.5
0.0098950862884521 0.015710115432739
Output for 5.2.4
0.012351036071777 0.02015495300293
Output for 5.2.3
0.012272119522095 0.016948938369751
Output for 5.2.2
0.012392997741699 0.019438982009888
Output for 5.2.1
0.011392116546631 0.018109083175659
Output for 5.2.0
0.01262903213501 0.019185066223145
Output for 5.1.6
0.011361122131348 0.015869140625
Output for 5.1.5
0.012088060379028 0.018702983856201
Output for 5.1.4
0.012370109558105 0.017822027206421
Output for 5.1.3
0.012379884719849 0.019353151321411
Output for 5.1.2
0.0087099075317383 0.013798952102661
Output for 5.1.1
0.014394044876099 0.019502878189087
Output for 5.1.0
0.013222932815552 0.019580841064453
Output for 5.0.5
0.033967971801758 0.03865385055542
Output for 5.0.4
0.027670860290527 0.031377077102661
Output for 5.0.3
0.026433944702148 0.028990030288696
Output for 5.0.2
0.023932933807373 0.030897855758667
Output for 5.0.1
0.029598951339722 0.036864995956421
Output for 5.0.0
0.027616024017334 0.034501791000366
Output for 4.4.9
0.031184 0.032995
Output for 4.4.8
0.030003 0.030816
Output for 4.4.7
0.029769 0.036423
Output for 4.4.6
0.029809 0.033812
Output for 4.4.5
0.032185 0.030419
Output for 4.4.4
0.026393 0.032952
Output for 4.4.3
0.033681 0.035367
Output for 4.4.2
0.039684 0.034877
Output for 4.4.1
0.03185 0.033601
Output for 4.4.0
0.026767 0.032358
Output for 4.3.11
0.033468 0.03864
Output for 4.3.10
0.025228 0.028367
Output for 4.3.9
0.032015 0.032789
Output for 4.3.8
0.031166 0.032487
Output for 4.3.7
0.03073 0.037674
Output for 4.3.6
0.032733 0.038007
Output for 4.3.5
0.033294 0.038534
Output for 4.3.4
0.031087 0.036177
Output for 4.3.3
0.030887 0.034821
Output for 4.3.2
0.034339 0.039153
Output for 4.3.1
0.031051 0.035123
Output for 4.3.0
0.031475 0.037285