3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $range = range(1,100000); $start_time = microtime(true); # count($range) ? $range[0] : null; array_shift($range); $end_time = microtime(true); echo ($end_time - $start_time);
Output for 7.1.0
0.00025820732116699
Output for 7.0.14
0.00046110153198242
Output for 7.0.12
0.00044798851013184
Output for 7.0.6
0.00038385391235352
Output for 7.0.5
0.00024008750915527
Output for 7.0.4
0.00040006637573242
Output for 7.0.3
0.00037789344787598
Output for 7.0.2
0.00024294853210449
Output for 7.0.1
0.00031900405883789
Output for 7.0.0
0.00040793418884277
Output for hhvm-3.12.0
7.9870223999023E-5
Output for hhvm-3.10.0
0.00016093254089355
Output for 5.6.28
0.001845121383667
Output for 5.6.21
0.0020160675048828
Output for 5.6.20
0.0016381740570068
Output for 5.6.19
0.0016660690307617
Output for 5.6.18
0.0016539096832275
Output for 5.6.17
0.0019500255584717
Output for 5.6.16
0.0021109580993652
Output for 5.6.15
0.0013349056243896
Output for 5.6.14
0.0019230842590332
Output for 5.6.13
0.002241849899292
Output for 5.6.12
0.002061128616333
Output for 5.6.11
0.0018489360809326
Output for 5.6.10
0.0014290809631348
Output for 5.6.9
0.0017170906066895
Output for 5.6.8
0.0019068717956543
Output for 5.6.7
0.0014691352844238
Output for 5.5.35
0.0025579929351807
Output for 5.5.34
0.0036849975585938
Output for 5.5.33
0.0031931400299072
Output for 5.5.32
0.002310037612915
Output for 5.5.31
0.0024380683898926
Output for 5.5.30
0.0029940605163574
Output for 5.5.29
0.0027790069580078
Output for 5.5.28
0.0033059120178223
Output for 5.5.27
0.0030720233917236
Output for 5.5.26
0.0025129318237305
Output for 5.5.25
0.0032579898834229
Output for 5.5.24
0.0027549266815186
Output for 5.4.45
0.0030829906463623
Output for 5.4.44
0.0027890205383301
Output for 5.4.43
0.0036618709564209
Output for 5.4.42
0.0030169486999512
Output for 5.4.41
0.0034401416778564
Output for 5.4.40
0.0029270648956299
Output for 5.4.39
0.0032129287719727
Output for 5.4.38
0.0038130283355713
Output for 5.4.37
0.0038180351257324
Output for 5.4.36
0.002723217010498
Output for 5.4.35
0.0036880970001221
Output for 5.4.34
0.003154993057251
Output for 5.4.32
0.0033960342407227
Output for 5.4.31
0.0032429695129395
Output for 5.4.30
0.0037209987640381
Output for 5.4.29
0.0036990642547607
Output for 5.4.28
0.0036520957946777
Output for 5.4.27
0.0026199817657471
Output for 5.4.26
0.0029430389404297
Output for 5.4.25
0.0028641223907471
Output for 5.4.24
0.0032320022583008
Output for 5.4.23
0.0029621124267578
Output for 5.4.22
0.0030081272125244
Output for 5.4.21
0.0025310516357422
Output for 5.4.20
0.0026540756225586
Output for 5.4.19
0.002518892288208
Output for 5.4.18
0.0025391578674316
Output for 5.4.17
0.0025060176849365
Output for 5.4.16
0.0030131340026855
Output for 5.4.15
0.0029029846191406
Output for 5.4.14
0.0026059150695801
Output for 5.4.13
0.0028660297393799
Output for 5.4.12
0.0026369094848633
Output for 5.4.11
0.0029120445251465
Output for 5.4.10
0.0027740001678467
Output for 5.4.9
0.0027930736541748
Output for 5.4.8
0.0027608871459961
Output for 5.4.7
0.002932071685791
Output for 5.4.6
0.0025131702423096
Output for 5.4.5
0.002781867980957
Output for 5.4.4
0.0026919841766357
Output for 5.4.3
0.0027289390563965
Output for 5.4.2
0.0027079582214355
Output for 5.4.1
0.0024080276489258
Output for 5.4.0
0.0025360584259033
Output for 5.3.29
0.0034129619598389
Output for 5.3.28
0.0028269290924072
Output for 5.3.27
0.0029988288879395
Output for 5.3.26
0.0028009414672852
Output for 5.3.25
0.0027680397033691
Output for 5.3.24
0.0026810169219971
Output for 5.3.23
0.0028679370880127
Output for 5.3.22
0.0029470920562744
Output for 5.3.21
0.0025451183319092
Output for 5.3.20
0.0027780532836914
Output for 5.3.19
0.002485990524292
Output for 5.3.18
0.0025980472564697
Output for 5.3.13, 5.3.17
0.0024681091308594
Output for 5.3.16
0.0025811195373535
Output for 5.3.15
0.0026309490203857
Output for 5.3.14
0.0027968883514404
Output for 5.3.12
0.0027799606323242
Output for 5.3.11
0.0024690628051758
Output for 5.3.10
0.0032789707183838
Output for 5.3.9
0.0025160312652588
Output for 5.3.8
0.0022978782653809
Output for 5.3.7
0.0027029514312744
Output for 5.3.6
0.0028541088104248
Output for 5.3.5
0.00295090675354
Output for 5.3.4
0.0033040046691895
Output for 5.3.3
0.0030291080474854
Output for 5.3.2
0.0024409294128418
Output for 5.3.1
0.0037229061126709
Output for 5.3.0
0.0036017894744873
Output for 5.2.17
0.0028998851776123
Output for 5.2.16
0.0023839473724365
Output for 5.2.15
0.0026330947875977
Output for 5.2.14
0.0028319358825684
Output for 5.2.13
0.00288987159729
Output for 5.2.12
0.0032808780670166
Output for 5.2.11
0.0023949146270752
Output for 5.2.10
0.0035171508789062
Output for 5.2.9
0.0038249492645264
Output for 5.2.8
0.0038721561431885
Output for 5.2.7
0.0037398338317871
Output for 5.2.6
0.0035429000854492
Output for 5.2.5
0.0036561489105225
Output for 5.2.4
0.0035691261291504
Output for 5.2.3
0.0029129981994629
Output for 5.2.2
0.0027239322662354
Output for 5.2.1
0.0035278797149658
Output for 5.2.0
0.002816915512085
Output for 5.1.6
0.0044679641723633
Output for 5.1.5
0.0052330493927002
Output for 5.1.4
0.0045528411865234
Output for 5.1.3
0.0056610107421875
Output for 5.1.2
0.0049359798431396
Output for 5.1.1
0.0057351589202881
Output for 5.1.0
0.0053532123565674
Output for 5.0.5
0.0053131580352783
Output for 5.0.4
0.0055170059204102
Output for 5.0.3
0.0045390129089355
Output for 5.0.2
0.0071601867675781
Output for 5.0.1
0.0059709548950195
Output for 5.0.0
0.0052340030670166
Output for 4.4.9
0.006348
Output for 4.4.8
0.006399
Output for 4.4.7
0.006868
Output for 4.4.6
0.005939
Output for 4.4.5
0.00615
Output for 4.4.4
0.004987
Output for 4.4.3
0.005039
Output for 4.4.2
0.005766
Output for 4.4.1
0.0060279999999999
Output for 4.4.0
0.00551
Output for 4.3.11
0.005483
Output for 4.3.10
0.0051030000000001
Output for 4.3.9
0.00576
Output for 4.3.8
0.006395
Output for 4.3.7
0.0061789999999999
Output for 4.3.6
0.00517
Output for 4.3.5
0.0063299999999999
Output for 4.3.4
0.0053839999999999
Output for 4.3.3
0.006393
Output for 4.3.2
0.006292
Output for 4.3.1
0.006051
Output for 4.3.0
0.00603