3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $range = range(1,100000); $start_time = microtime(true); $x=array_shift($range); $end_time = microtime(true); echo ($end_time - $start_time);
Output for 7.1.0
0.00026917457580566
Output for 7.0.14
0.00044798851013184
Output for 7.0.12
0.00045108795166016
Output for 7.0.6
0.00029110908508301
Output for 7.0.5
0.00035595893859863
Output for 7.0.4
0.00047397613525391
Output for 7.0.3
0.00036811828613281
Output for 7.0.2
0.00037002563476562
Output for 7.0.1
0.00059890747070312
Output for 7.0.0
0.00034499168395996
Output for hhvm-3.12.0
7.2002410888672E-5
Output for hhvm-3.10.0
7.8201293945312E-5
Output for 5.6.28
0.0018088817596436
Output for 5.6.21
0.0023088455200195
Output for 5.6.20
0.0021049976348877
Output for 5.6.19
0.0019760131835938
Output for 5.6.18
0.0013778209686279
Output for 5.6.17
0.0017819404602051
Output for 5.6.16
0.0019547939300537
Output for 5.6.15
0.0015499591827393
Output for 5.6.14
0.001978874206543
Output for 5.6.13
0.001816987991333
Output for 5.6.12
0.0014100074768066
Output for 5.6.11
0.0019559860229492
Output for 5.6.10
0.001986026763916
Output for 5.6.9
0.0022339820861816
Output for 5.6.8
0.0015110969543457
Output for 5.6.7
0.0013530254364014
Output for 5.5.35
0.0031909942626953
Output for 5.5.34
0.0034458637237549
Output for 5.5.33
0.0031149387359619
Output for 5.5.32
0.0025718212127686
Output for 5.5.31
0.0033211708068848
Output for 5.5.30
0.0033249855041504
Output for 5.5.29
0.0038650035858154
Output for 5.5.28
0.0034959316253662
Output for 5.5.27
0.0035340785980225
Output for 5.5.26
0.0030958652496338
Output for 5.5.25
0.0032668113708496
Output for 5.5.24
0.0029230117797852
Output for 5.4.45
0.0036640167236328
Output for 5.4.44
0.0035078525543213
Output for 5.4.43
0.0033829212188721
Output for 5.4.42
0.0033068656921387
Output for 5.4.41
0.0027239322662354
Output for 5.4.40
0.0032608509063721
Output for 5.4.39
0.0038940906524658
Output for 5.4.38
0.0039541721343994
Output for 5.4.37
0.0035929679870605
Output for 5.4.36
0.0031640529632568
Output for 5.4.35
0.0035521984100342
Output for 5.4.34
0.0034091472625732
Output for 5.3.15, 5.4.32
0.0036029815673828
Output for 5.4.31
0.0036609172821045
Output for 5.4.30
0.0038950443267822
Output for 5.4.29
0.0029900074005127
Output for 5.4.28
0.0037860870361328
Output for 5.4.27
0.0038559436798096
Output for 5.4.26
0.0036470890045166
Output for 5.4.25
0.0029480457305908
Output for 5.4.24
0.0030090808868408
Output for 5.4.23
0.0038750171661377
Output for 5.4.22
0.0036461353302002
Output for 5.4.21
0.0036370754241943
Output for 5.4.20
0.0037600994110107
Output for 5.4.19
0.0037529468536377
Output for 5.4.18
0.003342866897583
Output for 5.4.17
0.0033071041107178
Output for 5.4.16
0.0028679370880127
Output for 5.4.15
0.0036020278930664
Output for 5.4.14
0.002938985824585
Output for 5.4.13
0.003870964050293
Output for 5.4.12
0.0037250518798828
Output for 5.4.11
0.0030550956726074
Output for 5.4.10
0.003000020980835
Output for 5.4.9
0.0029721260070801
Output for 5.4.8
0.0030369758605957
Output for 5.4.7
0.0036489963531494
Output for 5.4.6
0.0038120746612549
Output for 5.4.5
0.0036001205444336
Output for 5.4.4
0.0036420822143555
Output for 5.4.3
0.003058910369873
Output for 5.4.2
0.0031800270080566
Output for 5.4.1
0.0036358833312988
Output for 5.4.0
0.0028581619262695
Output for 5.3.29
0.0036771297454834
Output for 5.3.28
0.0036587715148926
Output for 5.3.27
0.0037200450897217
Output for 5.3.26
0.0029811859130859
Output for 5.3.25
0.0036861896514893
Output for 5.3.24
0.0030438899993896
Output for 5.3.23
0.0029428005218506
Output for 5.3.22
0.0029830932617188
Output for 5.3.21
0.0030479431152344
Output for 5.3.20
0.0033869743347168
Output for 5.3.19
0.0027611255645752
Output for 5.3.18
0.0030829906463623
Output for 5.3.17
0.0037510395050049
Output for 5.3.10, 5.3.16
0.0033669471740723
Output for 5.3.14
0.0032041072845459
Output for 5.3.13
0.0042510032653809
Output for 5.3.12
0.0028071403503418
Output for 5.3.11
0.0028359889984131
Output for 5.3.9
0.003741979598999
Output for 5.3.8
0.0034968852996826
Output for 5.3.7
0.0041739940643311
Output for 5.3.6
0.0035500526428223
Output for 5.3.5
0.0031399726867676
Output for 5.3.4
0.0030519962310791
Output for 5.3.3
0.0029449462890625
Output for 5.3.2
0.0028250217437744
Output for 5.3.1
0.0031380653381348
Output for 5.3.0
0.00288987159729
Output for 5.2.17
0.0029551982879639
Output for 5.2.16
0.0035450458526611
Output for 5.2.15
0.0034160614013672
Output for 5.2.14
0.0026929378509521
Output for 5.2.13
0.0034651756286621
Output for 5.2.12
0.0033910274505615
Output for 5.2.11
0.0038590431213379
Output for 5.2.10
0.0023858547210693
Output for 5.2.9
0.0030591487884521
Output for 5.2.8
0.0034539699554443
Output for 5.2.7
0.0035300254821777
Output for 5.2.6
0.0035419464111328
Output for 5.2.5
0.0031421184539795
Output for 5.2.4
0.0034270286560059
Output for 5.2.3
0.0027990341186523
Output for 5.2.2
0.0035772323608398
Output for 5.2.1
0.0037548542022705
Output for 5.2.0
0.0026919841766357
Output for 5.1.6
0.0056068897247314
Output for 5.1.5
0.0059430599212646
Output for 5.1.4
0.0047769546508789
Output for 5.1.3
0.0050559043884277
Output for 5.1.2
0.0059809684753418
Output for 5.1.1
0.0059621334075928
Output for 5.1.0
0.0048980712890625
Output for 5.0.5
0.0058670043945312
Output for 5.0.4
0.0057868957519531
Output for 5.0.3
0.0048768520355225
Output for 5.0.2
0.0050158500671387
Output for 5.0.1
0.0055980682373047
Output for 5.0.0
0.0056171417236328
Output for 4.4.9
0.0062
Output for 4.4.8
0.006057
Output for 4.4.7
0.006223
Output for 4.4.6
0.00621
Output for 4.4.5
0.007161
Output for 4.4.4
0.0058950000000001
Output for 4.4.3
0.005135
Output for 4.4.2
0.005556
Output for 4.4.1
0.006068
Output for 4.4.0
0.0059239999999999
Output for 4.3.11
0.005583
Output for 4.3.10
0.006284
Output for 4.3.9
0.006459
Output for 4.3.8
-0.994403
Output for 4.3.7
0.006239
Output for 4.3.6
0.00709
Output for 4.3.5
0.006397
Output for 4.3.4
0.006253
Output for 4.3.3
0.006352
Output for 4.3.2
-0.994763
Output for 4.3.1
0.005539
Output for 4.3.0
0.00524