3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = microtime(true); $arr = range(1, 10000); foreach ($arr as $v) { array_shift($arr); } echo round(microtime(true) - $start, 5);
Output for 7.1.0
0.15901
Output for 7.0.14
0.16035
Output for 7.0.10
0.12119
Output for 7.0.9
0.13656
Output for 7.0.8
0.14511
Output for 7.0.7
0.13714
Output for 7.0.6
0.14814
Output for 7.0.5
0.15269
Output for 7.0.4
0.13073
Output for 7.0.3
0.12912
Output for 7.0.2
0.14515
Output for 7.0.1
0.12449
Output for 7.0.0
0.13797
Output for hhvm-3.12.0
0.03894
Output for hhvm-3.10.0
0.03559
Output for 5.6.28
-0.12219
Output for 5.6.25
0.40843
Output for 5.6.24
0.3995
Output for 5.6.23
0.40415
Output for 5.6.22
0.41302
Output for 5.6.21
0.35096
Output for 5.6.20
0.39052
Output for 5.6.19
0.42005
Output for 5.6.18
0.3574
Output for 5.6.17
0.35112
Output for 5.6.16
0.36209
Output for 5.6.15
0.36373
Output for 5.6.14
0.36054
Output for 5.6.13
0.35957
Output for 5.6.12
0.3923
Output for 5.6.11
0.40299
Output for 5.6.10
0.35234
Output for 5.6.9
0.35947
Output for 5.6.8
0.41609
Output for 5.6.7
0.39125
Output for 5.6.6
0.34153
Output for 5.6.5
0.37493
Output for 5.6.4
0.3571
Output for 5.6.3
0.41293
Output for 5.6.2
0.29388
Output for 5.6.1
0.33787
Output for 5.6.0
0.29333
Output for 5.5.38
0.66096
Output for 5.5.37
0.67807
Output for 5.5.36
0.67302
Output for 5.5.35
0.65726
Output for 5.5.34
0.66721
Output for 5.5.33
0.58091
Output for 5.5.32
0.56169
Output for 5.5.31
0.6752
Output for 5.5.30
0.58505
Output for 5.5.29
0.61115
Output for 5.5.28
0.58634
Output for 5.5.27
0.67245
Output for 5.5.26
0.58508
Output for 5.5.25
0.56561
Output for 5.5.24
0.67149
Output for 5.5.23
0.63108
Output for 5.5.22
0.56208
Output for 5.5.21
0.58194
Output for 5.5.20
0.58484
Output for 5.5.19
0.49935
Output for 5.5.18
0.53386
Output for 5.5.16
0.6236
Output for 5.5.15
0.5506
Output for 5.5.14
0.55314
Output for 5.5.13
0.54892
Output for 5.5.12
0.58057
Output for 5.5.11
0.55708
Output for 5.5.10
0.5321
Output for 5.5.9
0.57131
Output for 5.5.8
0.5805
Output for 5.5.7
0.58704
Output for 5.5.6
0.66416
Output for 5.5.5
0.65935
Output for 5.5.4
0.59933
Output for 5.5.3
0.68363
Output for 5.5.2
0.67416
Output for 5.5.1
0.68186
Output for 5.5.0
0.62239
Output for 5.4.45
0.55761
Output for 5.4.44
0.6639
Output for 5.4.43
0.67615
Output for 5.4.42
0.57298
Output for 5.4.41
0.68503
Output for 5.4.40
0.67497
Output for 5.4.39
0.67415
Output for 5.4.38
0.57662
Output for 5.4.37
0.57747
Output for 5.4.36
0.5679
Output for 5.4.35
0.71994
Output for 5.4.34
0.55723
Output for 5.4.32
0.56952
Output for 5.4.31
0.566
Output for 5.4.30
0.57684
Output for 5.4.29
0.56986
Output for 5.4.28
0.58015
Output for 5.4.27
0.55793
Output for 5.4.26
0.66219
Output for 5.4.25
0.61129
Output for 5.4.24
0.58377
Output for 5.4.23
0.58053
Output for 5.4.22
0.66787
Output for 5.4.21
0.63367
Output for 5.4.20
0.67878
Output for 5.4.19
0.69789
Output for 5.4.18
0.66879
Output for 5.4.17
0.65706
Output for 5.4.16
0.56223
Output for 5.4.15
0.59497
Output for 5.4.14
0.58258
Output for 5.4.13
0.56542
Output for 5.4.12
0.57851
Output for 5.4.11
0.56875
Output for 5.4.10
0.73601
Output for 5.4.9
0.56791
Output for 5.4.8
0.56979
Output for 5.4.7
0.56982
Output for 5.4.6
0.5942
Output for 5.4.5
0.57021
Output for 5.4.4
0.56799
Output for 5.4.3
0.55642
Output for 5.4.2
0.57907
Output for 5.4.1
0.57273
Output for 5.4.0
0.59338
Output for 5.3.29
0.53017
Output for 5.3.28
0.62622
Output for 5.3.27
0.67983
Output for 5.3.26
0.56345
Output for 5.3.25
0.59076
Output for 5.3.24
0.59458
Output for 5.3.23
0.5745
Output for 5.3.22
0.58337
Output for 5.3.21
0.54508
Output for 5.3.20
0.56016
Output for 5.3.19
0.57005
Output for 5.3.18
0.57008
Output for 5.3.17
0.56688
Output for 5.3.16
0.56537
Output for 5.3.15
0.55669
Output for 5.3.14
0.57165
Output for 5.3.13
0.56973
Output for 5.3.12
0.56232
Output for 5.3.11
0.56685
Output for 5.3.10
0.56701
Output for 5.3.9
0.55342
Output for 5.3.8
0.56473
Output for 5.3.7
0.57125
Output for 5.3.6
0.5819
Output for 5.3.5
0.55111
Output for 5.3.4
0.61794
Output for 5.3.3
0.55694
Output for 5.3.2
0.55727
Output for 5.3.1
0.55901
Output for 5.3.0
0.54612
Output for 5.2.17
0.56793
Output for 5.2.16
0.58451
Output for 5.2.15
0.54517
Output for 5.2.14
0.48947
Output for 5.2.13
0.57176
Output for 5.2.12
0.55572
Output for 5.2.11
0.55067
Output for 5.2.10
0.56641
Output for 5.2.9
0.55812
Output for 5.2.8
0.583
Output for 5.2.7
0.56215
Output for 5.2.6
0.57415
Output for 5.2.5
0.57278
Output for 5.2.4
0.59723
Output for 5.2.3
0.57814
Output for 5.2.2
0.56678
Output for 5.2.1
0.66329
Output for 5.2.0
0.66746
Output for 5.1.6
0.75759
Output for 5.1.5
0.75761
Output for 5.1.4
0.6348
Output for 5.1.3
0.64486
Output for 5.1.2
0.63778
Output for 5.1.1
0.60685
Output for 5.1.0
0.62713
Output for 5.0.5
0.64259
Output for 5.0.4
0.66293
Output for 5.0.3
0.62537
Output for 5.0.2
0.62359
Output for 5.0.1
0.6377
Output for 5.0.0
0.63896
Output for 4.4.9
0.67218
Output for 4.4.8
0.62155
Output for 4.4.7
0.77472
Output for 4.4.6
0.80821
Output for 4.4.5
0.79222
Output for 4.4.4
0.79103
Output for 4.4.3
0.67843
Output for 4.4.2
0.7697
Output for 4.4.1
0.62559
Output for 4.4.0
0.67093
Output for 4.3.11
0.63161
Output for 4.3.10
0.66047
Output for 4.3.9
0.62503
Output for 4.3.8
0.65712
Output for 4.3.7
0.65
Output for 4.3.6
0.74099
Output for 4.3.5
0.65657
Output for 4.3.4
0.76308
Output for 4.3.3
0.63948
Output for 4.3.2
0.6308
Output for 4.3.1
0.67515
Output for 4.3.0
0.6445