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 "array_shift:" . ($end_time - $start_time); echo "\n\n"; $start_time = microtime(); count($range); $end_time = microtime(); echo "count: " . ($end_time - $start_time);
Output for 7.1.0
array_shift:0.00024199485778809 Notice: A non well formed numeric value encountered in /in/S6SU4 on line 21 Notice: A non well formed numeric value encountered in /in/S6SU4 on line 21 count: 3.9999999999997E-6
Output for 7.0.14
array_shift:0.0004570484161377 count: 4.9999999999998E-6
Output for 7.0.12
array_shift:0.00046014785766602 count: 3.9999999999997E-6
Output for 7.0.6
array_shift:0.00043797492980957 count: 4.000000000004E-6
Output for 7.0.5
array_shift:0.00037312507629395 count: 5.000000000005E-6
Output for 7.0.4
array_shift:0.00038599967956543 count: 4.000000000004E-6
Output for 7.0.3
array_shift:0.00040507316589355 count: 5.0000000000328E-6
Output for 7.0.2
array_shift:0.00040817260742188 count: 6.000000000006E-6
Output for 7.0.1
array_shift:0.00040912628173828 count: 5.9999999999505E-6
Output for 7.0.0
array_shift:0.00039792060852051 count: 5.0000000000328E-6
Output for 5.6.28
array_shift:0.0018329620361328 count: 6.0000000000025E-6
Output for 5.6.21
array_shift:0.0016119480133057 count: 5.000000000005E-6
Output for 5.6.20
array_shift:0.0021181106567383 count: 5.9999999999505E-6
Output for 5.6.19
array_shift:0.0020592212677002 count: 6.0000000000615E-6
Output for 5.6.18
array_shift:0.0015699863433838 count: 5.0000000000328E-6
Output for 5.6.17
array_shift:0.0022790431976318 count: 6.9999999999792E-6
Output for 5.6.16
array_shift:0.0023958683013916 count: 6.9999999999931E-6
Output for 5.6.15
array_shift:0.0016100406646729 count: 5.0000000000328E-6
Output for 5.6.14
array_shift:0.0017337799072266 count: 5.0000000000328E-6
Output for 5.6.13
array_shift:0.002161979675293 count: 7.9999999999941E-6
Output for 5.6.12
array_shift:0.002230167388916 count: 7.0000000000903E-6
Output for 5.6.11
array_shift:0.0020840167999268 count: 6.000000000006E-6
Output for 5.6.10
array_shift:0.0022609233856201 count: 6.000000000006E-6
Output for 5.6.9
array_shift:0.0023000240325928 count: 7.0000000000903E-6
Output for 5.6.8
array_shift:0.0021719932556152 count: 5.9999999999505E-6
Output for 5.6.7
array_shift:0.0022060871124268 count: 5.9999999999991E-6
Output for 5.6.6
array_shift:0.0023009777069092 count: 8.000000000008E-6
Output for 5.6.5
array_shift:0.0019099712371826 count: 5.9999999999505E-6
Output for 5.6.4
array_shift:0.0019710063934326 count: 6.000000000006E-6
Output for 5.6.3
array_shift:0.0017049312591553 count: 4.9999999999772E-6
Output for 5.6.2
array_shift:0.0016319751739502 count: 5.000000000005E-6
Output for 5.6.1
array_shift:0.0021932125091553 count: 4.000000000004E-6
Output for 5.6.0
array_shift:0.0020859241485596 count: 6.0000000000615E-6
Output for 5.5.35
array_shift:0.002734899520874 count: 5.0000000000328E-6
Output for 5.5.34
array_shift:0.0031380653381348 count: 4.9999999999981E-6
Output for 5.5.33
array_shift:0.0029699802398682 count: 5.0000000000328E-6
Output for 5.5.32
array_shift:0.0035309791564941 count: 6.0000000000615E-6
Output for 5.5.31
array_shift:0.0038878917694092 count: 7.000000000007E-6
Output for 5.5.30
array_shift:0.0038630962371826 count: 6.0000000000615E-6
Output for 5.5.29
array_shift:0.0035679340362549 count: 7.9999999999525E-6
Output for 5.5.28
array_shift:0.0037040710449219 count: 6.000000000006E-6
Output for 5.5.27
array_shift:0.0031158924102783 count: 6.9999999999792E-6
Output for 5.5.26
array_shift:0.003183126449585 count: 6.0000000000008E-6
Output for 5.5.25
array_shift:0.0034599304199219 count: 5.9999999999991E-6
Output for 5.5.24
array_shift:0.00360107421875 count: 6.0000000000615E-6
Output for 5.5.23
array_shift:0.0028691291809082 count: 6.9999999999792E-6
Output for 5.5.22
array_shift:0.0033111572265625 count: 5.9999999999505E-6
Output for 5.5.21
array_shift:0.0026640892028809 count: 4.000000000004E-6
Output for 5.5.20
array_shift:0.0033981800079346 count: 5.0000000000328E-6
Output for 5.5.19
array_shift:0.0031440258026123 count: 5.0000000000328E-6
Output for 5.5.18
array_shift:0.0036489963531494 count: 6.0000000000615E-6
Output for 5.5.16
array_shift:0.0026988983154297 count: 4.000000000004E-6
Output for 5.5.15
array_shift:0.0039541721343994 count: 4.9999999999772E-6
Output for 5.5.14
array_shift:0.002781867980957 count: 5.9999999999505E-6
Output for 5.5.13
array_shift:0.0039207935333252 count: 5.000000000005E-6
Output for 5.5.12
array_shift:0.0028040409088135 count: 6.9999999999792E-6
Output for 5.5.11
array_shift:0.0024430751800537 count: 5.0000000000328E-6
Output for 5.5.10
array_shift:0.0025241374969482 count: 6.000000000006E-6
Output for 5.5.9
array_shift:0.002769947052002 count: 4.000000000004E-6
Output for 5.5.8
array_shift:0.0023648738861084 count: 5.9999999999505E-6
Output for 5.5.7
array_shift:0.0024740695953369 count: 4.000000000004E-6
Output for 5.5.6
array_shift:0.0023441314697266 count: 4.000000000004E-6
Output for 5.5.5
array_shift:0.0023279190063477 count: 4.000000000004E-6
Output for 5.5.4
array_shift:0.0024521350860596 count: 4.000000000004E-6
Output for 5.5.3
array_shift:0.0026860237121582 count: 5.0000000000328E-6
Output for 5.5.2
array_shift:0.0026390552520752 count: 3.9999999999901E-6
Output for 5.5.1
array_shift:0.0024831295013428 count: 5.0000000000328E-6
Output for 5.5.0
array_shift:0.002453088760376 count: 4.000000000004E-6
Output for 5.4.45
array_shift:0.0030500888824463 count: 5.9999999999782E-6
Output for 5.4.44
array_shift:0.0025460720062256 count: 4.9999999999772E-6
Output for 5.4.43
array_shift:0.0036578178405762 count: 4.000000000004E-6
Output for 5.4.42
array_shift:0.0040910243988037 count: 8.000000000008E-6
Output for 5.4.41
array_shift:0.0043649673461914 count: 1.8999999999991E-5
Output for 5.4.40
array_shift:0.0032098293304443 count: 4.9999999999772E-6
Output for 5.4.39
array_shift:0.0037429332733154 count: 6.9999999999792E-6
Output for 5.4.38
array_shift:0.002694845199585 count: 5.0000000000328E-6
Output for 5.4.37
array_shift:0.0025811195373535 count: 5.0000000000328E-6
Output for 5.4.36
array_shift:0.0033359527587891 count: 6.0000000000615E-6
Output for 5.4.35
array_shift:0.002659797668457 count: 3.9999999999485E-6
Output for 5.4.34
array_shift:0.0029098987579346 count: 8.0000000000011E-6
Output for 5.4.32
array_shift:0.0032210350036621 count: 4.9999999999217E-6
Output for 5.4.31
array_shift:0.0029709339141846 count: 7.0000000000348E-6
Output for 5.4.30
array_shift:0.0028440952301025 count: 6.0000000000615E-6
Output for 5.4.29
array_shift:0.0029809474945068 count: 6.9999999999792E-6
Output for 5.4.28
array_shift:0.0040841102600098 count: 6.000000000006E-6
Output for 5.4.27
array_shift:0.0024209022521973 count: 4.000000000004E-6
Output for 5.4.26
array_shift:0.0027661323547363 count: 4.000000000004E-6
Output for 5.4.25
array_shift:0.0028560161590576 count: 5.0000000000328E-6
Output for 5.4.24
array_shift:0.0025460720062256 count: 4.9999999999981E-6
Output for 5.4.23
array_shift:0.002938985824585 count: 4.000000000004E-6
Output for 5.4.22
array_shift:0.0027849674224854 count: 4.9999999999217E-6
Output for 5.4.21
array_shift:0.002385139465332 count: 5.9999999999921E-6
Output for 5.4.20
array_shift:0.0025739669799805 count: 6.9999999999792E-6
Output for 5.4.19
array_shift:0.002805233001709 count: 6.9999999999792E-6
Output for 5.4.18
array_shift:0.0025100708007812 count: 6.000000000006E-6
Output for 5.4.17
array_shift:0.0027379989624023 count: 5.0000000000328E-6
Output for 5.4.16
array_shift:0.0023620128631592 count: 5.0000000000015E-6
Output for 5.4.15
array_shift:0.0025689601898193 count: 1.2000000000012E-5
Output for 5.4.14
array_shift:0.0026118755340576 count: 4.9999999999217E-6
Output for 5.4.13
array_shift:0.0025689601898193 count: 4.000000000004E-6
Output for 5.4.12
array_shift:0.0023300647735596 count: 4.000000000004E-6
Output for 5.4.11
array_shift:0.0027079582214355 count: 4.000000000004E-6
Output for 5.4.10
array_shift:0.0026030540466309 count: 4.0000000000005E-6
Output for 5.4.9
array_shift:0.0025839805603027 count: 5.000000000005E-6
Output for 5.4.8
array_shift:0.0027298927307129 count: 5.0000000000328E-6
Output for 5.4.7
array_shift:0.0023620128631592 count: 5.0000000000328E-6
Output for 5.4.6
array_shift:0.0024619102478027 count: 4.000000000004E-6
Output for 5.4.5
array_shift:0.0039041042327881 count: 5.0000000000328E-6
Output for 5.4.4
array_shift:0.0027971267700195 count: 5.9999999999991E-6
Output for 5.4.3
array_shift:0.0036551952362061 count: 9.000000000009E-6
Output for 5.4.2
array_shift:0.0036928653717041 count: 9.0000000000368E-6
Output for 5.4.1
array_shift:0.0029418468475342 count: 5.000000000005E-6
Output for 5.4.0
array_shift:0.0033769607543945 count: 4.9999999999772E-6
Output for 5.3.29
array_shift:0.0032680034637451 count: 7.0000000000001E-6
Output for 5.3.28
array_shift:0.0024750232696533 count: 4.000000000004E-6
Output for 5.3.27
array_shift:0.0027101039886475 count: 6.0000000000615E-6
Output for 5.3.26
array_shift:0.0026049613952637 count: 4.000000000004E-6
Output for 5.3.25
array_shift:0.0027551651000977 count: 5.0000000000328E-6
Output for 5.3.24
array_shift:0.0027940273284912 count: 4.000000000004E-6
Output for 5.3.23
array_shift:0.0023760795593262 count: 4.000000000004E-6
Output for 5.3.22
array_shift:0.0028071403503418 count: 5.0000000000328E-6
Output for 5.3.21
array_shift:0.0024349689483643 count: 5.0000000000328E-6
Output for 5.3.20
array_shift:0.0023989677429199 count: 5.9999999999505E-6
Output for 5.3.19
array_shift:0.0026071071624756 count: 5.0000000000328E-6
Output for 5.3.18
array_shift:0.0027809143066406 count: 5.9999999999505E-6
Output for 5.3.17
array_shift:0.0024909973144531 count: 5.0000000000328E-6
Output for 5.3.16
array_shift:0.002830982208252 count: 4.9999999999772E-6
Output for 5.3.15
array_shift:0.0029110908508301 count: 6.0000000000615E-6
Output for 5.3.14
array_shift:0.0027961730957031 count: 6.9999999999792E-6
Output for 5.3.13
array_shift:0.0036308765411377 count: 8.9999999999812E-6
Output for 5.3.12
array_shift:0.0036201477050781 count: 6.9999999999792E-6
Output for 5.3.11
array_shift:0.0031189918518066 count: 4.9999999999981E-6
Output for 5.3.10
array_shift:0.0041940212249756 count: 6.9999999999792E-6
Output for 5.3.9
array_shift:0.0040290355682373 count: 6.9999999999792E-6
Output for 5.3.8
array_shift:0.0033631324768066 count: 8.000000000008E-6
Output for 5.3.7
array_shift:0.0034520626068115 count: 6.000000000006E-6
Output for 5.3.6
array_shift:0.00388503074646 count: 7.0000000000348E-6
Output for 5.3.5
array_shift:0.0036599636077881 count: 5.0000000000328E-6
Output for 5.3.4
array_shift:0.0035600662231445 count: 7.000000000007E-6
Output for 5.3.3
array_shift:0.0036089420318604 count: 6.9999999999792E-6
Output for 5.3.2
array_shift:0.003342866897583 count: 5.9999999999505E-6
Output for 5.3.1
array_shift:0.0028059482574463 count: 5.9999999999505E-6
Output for 5.3.0
array_shift:0.0034008026123047 count: 1.3000000000041E-5
Output for 5.2.17
array_shift:0.0027768611907959 count: 5.9999999999505E-6
Output for 5.2.16
array_shift:0.0029129981994629 count: 6.9999999999792E-6
Output for 5.2.15
array_shift:0.0032930374145508 count: 6.9999999999792E-6
Output for 5.2.14
array_shift:0.0035600662231445 count: 8.000000000008E-6
Output for 5.2.13
array_shift:0.0033700466156006 count: 6.9999999999792E-6
Output for 5.2.12
array_shift:0.0031678676605225 count: 1.4000000000014E-5
Output for 5.2.11
array_shift:0.0026099681854248 count: 5.0000000000328E-6
Output for 5.2.10
array_shift:0.0027399063110352 count: 5.9999999999921E-6
Output for 5.2.9
array_shift:0.0031552314758301 count: 1.4000000000014E-5
Output for 5.2.8
array_shift:0.0030758380889893 count: 5.9999999999505E-6
Output for 5.2.7
array_shift:0.0032100677490234 count: 6.9999999999792E-6
Output for 5.2.6
array_shift:0.0041818618774414 count: 1.0999999999997E-5
Output for 5.2.5
array_shift:0.0035479068756104 count: 6.9999999999792E-6
Output for 5.2.4
array_shift:0.0038321018218994 count: 6.9999999999792E-6
Output for 5.2.3
array_shift:0.0042400360107422 count: 8.9999999999257E-6
Output for 5.2.2
array_shift:0.0032298564910889 count: 9.000000000009E-6
Output for 5.2.1
array_shift:0.0041129589080811 count: 1.8000000000074E-05
Output for 5.2.0
array_shift:0.0035851001739502 count: 2.2999999999995E-05
Output for 5.1.6
array_shift:0.0048408508300781 count: 1.799999999999E-05
Output for 5.1.5
array_shift:0.0063199996948242 count: 2.4999999999997E-05
Output for 5.1.4
array_shift:0.0059969425201416 count: 2.1999999999966E-05
Output for 5.1.3
array_shift:0.0057158470153809 count: 1.8000000000004E-05
Output for 5.1.2
array_shift:0.0056419372558594 count: 2.2999999999995E-05
Output for 5.1.1
array_shift:0.0049419403076172 count: 8.9999999999257E-06
Output for 5.1.0
array_shift:0.0048470497131348 count: 1.0000000000066E-05
Output for 5.0.5
array_shift:0.005601167678833 count: 2.1999999999994E-05
Output for 5.0.4
array_shift:0.0059089660644531 count: 2.2999999999995E-05
Output for 5.0.3
array_shift:0.0053248405456543 count: 2.5000000000053E-05
Output for 5.0.2
array_shift:0.005774974822998 count: 9.000000000009E-06
Output for 5.0.1
array_shift:0.0054738521575928 count: 5.9999999999505E-06
Output for 5.0.0
array_shift:0.0054538249969482 count: 6.9999999999792E-06
Output for 4.4.9
array_shift:0.005857 count: 4.000000000004E-06
Output for 4.4.8
array_shift:0.006052 count: 5.000000000005E-06
Output for 4.4.7
array_shift:0.005224 count: 5.000000000005E-06
Output for 4.4.6
array_shift:0.006395 count: 4.000000000004E-06
Output for 4.4.5
array_shift:0.006219 count: 5.0000000000328E-06
Output for 4.4.4
array_shift:0.005545 count: 2.9999999999752E-06
Output for 4.4.3
array_shift:0.006444 count: 4.000000000004E-06
Output for 4.4.2
array_shift:0.006314 count: 4.9999999999772E-06
Output for 4.4.1
array_shift:0.0066999999999999 count: 6.0000000000615E-06
Output for 4.4.0
array_shift:0.005967 count: 4.9999999999772E-06
Output for 4.3.11
array_shift:0.004863 count: 4.000000000004E-06
Output for 4.3.10
array_shift:0.006665 count: 5.9999999999505E-06
Output for 4.3.9
array_shift:0.006264 count: 5.0000000000328E-06
Output for 4.3.8
array_shift:0.006292 count: 4.000000000004E-06
Output for 4.3.7
array_shift:0.006011 count: 5.000000000005E-06
Output for 4.3.6
array_shift:0.005987 count: 6.000000000006E-06
Output for 4.3.5
array_shift:0.006337 count: 4.9999999999772E-06
Output for 4.3.4
array_shift:0.007261 count: 5.0000000000328E-06
Output for 4.3.3
array_shift:0.006545 count: 5.0000000000328E-06
Output for 4.3.2
array_shift:0.006197 count: 4.000000000004E-06
Output for 4.3.1
array_shift:0.005886 count: 4.9999999999911E-06
Output for 4.3.0
array_shift:0.006076 count: 7.000000000007E-06