3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $range = range(1,100000); $start_time = microtime(true); array_shift($range); $end_time = microtime(true); echo ($end_time - $start_time);
Output for 7.1.0
0.00069808959960938
Output for 7.0.14
0.00043296813964844
Output for 7.0.10
0.0003821849822998
Output for 7.0.9
0.00037789344787598
Output for 7.0.8
0.0003662109375
Output for 7.0.7
0.00033402442932129
Output for 7.0.6
0.00037193298339844
Output for 7.0.5
0.00039887428283691
Output for 7.0.4
0.00053977966308594
Output for 7.0.3
0.0003361701965332
Output for 7.0.2
0.0003509521484375
Output for 7.0.1
0.00035595893859863
Output for 7.0.0
0.00032496452331543
Output for 5.6.25
0.0019309520721436
Output for 5.6.24
0.0020279884338379
Output for 5.6.23
0.0019350051879883
Output for 5.6.22
0.0019030570983887
Output for 5.6.21
0.0020091533660889
Output for 5.6.20
0.0015261173248291
Output for 5.6.19
0.0020148754119873
Output for 5.6.18
0.0018789768218994
Output for 5.6.17
0.0021049976348877
Output for 5.6.16
0.0016260147094727
Output for 5.6.15
0.0018229484558105
Output for 5.6.14
0.0021648406982422
Output for 5.6.13
0.0019869804382324
Output for 5.6.12
0.0018479824066162
Output for 5.6.11
0.0021278858184814
Output for 5.6.10
0.0023331642150879
Output for 5.6.9
0.0021300315856934
Output for 5.6.8
0.0021119117736816
Output for 5.6.7
0.0019960403442383
Output for 5.6.6
0.0017218589782715
Output for 5.6.5
0.0019481182098389
Output for 5.6.4
0.001823902130127
Output for 5.6.3
0.0021090507507324
Output for 5.6.2
0.0020439624786377
Output for 5.6.1
0.0024580955505371
Output for 5.2.17, 5.6.0
0.0020010471343994
Output for 5.5.38
0.0033140182495117
Output for 5.5.6, 5.5.37
0.003046989440918
Output for 5.5.36
0.002960205078125
Output for 5.5.35
0.003277063369751
Output for 5.5.34
0.0032610893249512
Output for 5.5.33
0.0032520294189453
Output for 5.5.32
0.0033118724822998
Output for 5.5.31
0.003342866897583
Output for 5.5.30
0.0031669139862061
Output for 5.5.29
0.0034489631652832
Output for 5.5.28
0.0034358501434326
Output for 5.5.27
0.0032708644866943
Output for 5.5.26
0.0043060779571533
Output for 5.5.25
0.0033020973205566
Output for 5.5.24
0.0037479400634766
Output for 5.5.23
0.0026841163635254
Output for 5.5.22
0.0033550262451172
Output for 5.4.45, 5.5.21
0.0028960704803467
Output for 5.5.20
0.0035009384155273
Output for 5.5.19
0.0039479732513428
Output for 5.5.18
0.0034379959106445
Output for 5.5.16
0.0033290386199951
Output for 5.5.15
0.0031328201293945
Output for 5.5.14
0.0033149719238281
Output for 5.5.13
0.0034139156341553
Output for 5.5.12
0.0032048225402832
Output for 5.5.11
0.0038690567016602
Output for 5.5.10
0.0032219886779785
Output for 5.5.9
0.0036730766296387
Output for 5.5.8
0.0034120082855225
Output for 5.5.7
0.0038149356842041
Output for 5.4.41, 5.5.5
0.0036859512329102
Output for 5.5.4
0.0030429363250732
Output for 5.5.3
0.0031042098999023
Output for 5.5.2
0.0029671192169189
Output for 5.5.1
0.0034561157226562
Output for 5.3.16, 5.5.0
0.0032060146331787
Output for 5.4.44
0.0036020278930664
Output for 5.4.43
0.0032448768615723
Output for 5.4.42
0.0034079551696777
Output for 5.4.40
0.0031509399414062
Output for 5.4.39
0.0034880638122559
Output for 5.4.38
0.0034458637237549
Output for 5.4.37
0.0027709007263184
Output for 5.4.36
0.0029439926147461
Output for 5.4.35
0.0033679008483887
Output for 5.4.34
0.0043411254882812
Output for 5.4.32
0.00331711769104
Output for 5.4.31
0.0043759346008301
Output for 5.4.30
0.0028998851776123
Output for 5.4.29
0.0031819343566895
Output for 5.4.28
0.0031909942626953
Output for 5.4.27
0.0043649673461914
Output for 5.4.26
0.0034499168395996
Output for 5.4.25
0.0033681392669678
Output for 5.4.24
0.0033411979675293
Output for 5.4.23
0.0039191246032715
Output for 5.4.22
0.0032861232757568
Output for 5.4.21
0.0029001235961914
Output for 5.4.20
0.0037441253662109
Output for 5.4.19
0.0033659934997559
Output for 5.4.18
0.0034480094909668
Output for 5.4.17
0.0038549900054932
Output for 5.4.16
0.0035810470581055
Output for 5.4.15
0.0034670829772949
Output for 5.4.14
0.003352165222168
Output for 5.4.13
0.0035638809204102
Output for 5.4.12
0.0033130645751953
Output for 5.4.11
0.0027458667755127
Output for 5.0.3, 5.4.10
0.0036849975585938
Output for 5.4.9
0.0040979385375977
Output for 5.4.8
0.0027151107788086
Output for 5.4.7
0.003568172454834
Output for 5.4.6
0.0036070346832275
Output for 5.4.5
0.0032279491424561
Output for 5.4.4
0.0030078887939453
Output for 5.4.3
0.0032570362091064
Output for 5.4.2
0.0027110576629639
Output for 5.4.1
0.0024039745330811
Output for 5.4.0
0.0025529861450195
Output for 5.3.29
0.0032567977905273
Output for 5.3.28
0.0030159950256348
Output for 5.3.27
0.0033769607543945
Output for 5.3.26
0.0029098987579346
Output for 5.3.25
0.0034031867980957
Output for 5.3.24
0.0035288333892822
Output for 5.3.23
0.0033309459686279
Output for 5.3.22
0.0031058788299561
Output for 5.3.21
0.0039980411529541
Output for 5.3.20
0.0035769939422607
Output for 5.3.19
0.0038490295410156
Output for 5.3.18
0.0035080909729004
Output for 5.3.17
0.0041940212249756
Output for 5.3.15
0.0045778751373291
Output for 5.3.14
0.0041201114654541
Output for 5.3.13
0.0027439594268799
Output for 5.3.12
0.0030639171600342
Output for 5.3.11
0.0026869773864746
Output for 5.3.10
0.0036580562591553
Output for 5.3.9
0.0023989677429199
Output for 5.3.8
0.0030221939086914
Output for 5.3.7
0.0028009414672852
Output for 5.3.6
0.0024981498718262
Output for 5.3.5
0.0024042129516602
Output for 5.3.4
0.0030009746551514
Output for 5.3.3
0.0028238296508789
Output for 5.3.2
0.002424955368042
Output for 5.3.1
0.0028679370880127
Output for 5.3.0
0.0037910938262939
Output for 5.2.16
0.0024490356445312
Output for 5.2.15
0.0029411315917969
Output for 5.2.14
0.0018889904022217
Output for 5.2.13
0.0023789405822754
Output for 5.2.12
0.0024468898773193
Output for 5.2.11
0.0033161640167236
Output for 5.2.10
0.0026659965515137
Output for 5.2.9
0.0020828247070312
Output for 5.2.8
0.0022239685058594
Output for 5.2.7
0.002140998840332
Output for 5.2.6
0.0025570392608643
Output for 5.2.5
0.0022871494293213
Output for 5.2.4
0.0022048950195312
Output for 5.2.3
0.0027229785919189
Output for 5.2.2
0.002161979675293
Output for 5.2.1
0.0022261142730713
Output for 5.2.0
0.0023660659790039
Output for 5.1.6
0.0041320323944092
Output for 5.1.5
0.0040171146392822
Output for 5.1.4
0.0035748481750488
Output for 5.1.3
0.0041429996490479
Output for 5.1.2
0.0037639141082764
Output for 5.1.1
0.0039920806884766
Output for 5.1.0
0.0034558773040771
Output for 5.0.5
0.0035269260406494
Output for 5.0.4
0.0041639804840088
Output for 5.0.2
0.003687858581543
Output for 5.0.1
0.0035719871520996
Output for 5.0.0
0.0041050910949707
Output for 4.4.9
0.003808
Output for 4.4.7 - 4.4.8
0.003843
Output for 4.3.6, 4.4.6
0.003969
Output for 4.4.1, 4.4.5
0.003938
Output for 4.4.4
0.00383
Output for 4.4.3
0.003687
Output for 4.4.2
0.004047
Output for 4.4.0
0.00412
Output for 4.3.11
0.004471
Output for 4.3.10
0.004749
Output for 4.3.9
0.00485
Output for 4.3.8
0.004052
Output for 4.3.7
0.004393
Output for 4.3.5
0.003704
Output for 4.3.4
0.00426
Output for 4.3.3
0.004466
Output for 4.3.2
0.003851
Output for 4.3.1
0.004381
Output for 4.3.0
0.00361