3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $range = range(1,100000); $start_time = microtime(); array_shift($range); $end_time = microtime(); echo "array_shift:" . $end_time - $start_time; echo "\n\n"; $start_time = microtime(); echo "count: " . count($range); $end_time = microtime(); echo $end_time - $start_time;
Output for 7.1.0
Warning: A non-numeric value encountered in /in/GT8bJ on line 11 Notice: A non well formed numeric value encountered in /in/GT8bJ on line 11 -0.004799 count: 99999 Notice: A non well formed numeric value encountered in /in/GT8bJ on line 21 Notice: A non well formed numeric value encountered in /in/GT8bJ on line 21 3.0000000000004E-6
Output for 7.0.14
-0.004753 count: 999996.0000000000008E-6
Output for 7.0.12
-0.004992 count: 999994.9999999999998E-6
Output for 7.0.6
-0.87297 count: 999995.0000000000328E-6
Output for 7.0.5
-0.667694 count: 999991.4999999999987E-5
Output for 7.0.4
-0.435005 count: 999992.9999999999752E-6
Output for 7.0.3
-0.200122 count: 999993.000000000003E-6
Output for 7.0.2
-0.781978 count: 999992.9999999999752E-6
Output for 7.0.1
-0.933345 count: 999992.0000000000575E-6
Output for 7.0.0
-0.393022 count: 999993.0000000000308E-6
Output for 5.6.28
-0.018559 count: 999996.0000000000025E-6
Output for 5.6.21
-0.202765 count: 999995.000000000005E-6
Output for 5.6.20
-0.3355 count: 999994.000000000004E-6
Output for 5.6.19
-0.072981 count: 999993.9999999999901E-6
Output for 5.6.18
-0.85827 count: 999996.0000000000615E-6
Output for 5.6.17
-0.363669 count: 999994.9999999999772E-6
Output for 5.6.16
-0.571435 count: 999994.000000000004E-6
Output for 5.6.15
-0.742672 count: 999994.000000000004E-6
Output for 5.6.14
-0.224442 count: 999993.9999999999762E-6
Output for 5.6.13
-0.612279 count: 999994.000000000004E-6
Output for 5.6.12
-0.393676 count: 999996.9999999999792E-6
Output for 5.6.11
-0.933747 count: 999992.9999999999752E-6
Output for 5.6.10
-0.29994 count: 999994.000000000004E-6
Output for 5.6.9
-0.514849 count: 999996.9999999999792E-6
Output for 5.6.8
-0.482206 count: 999994.000000000004E-6
Output for 5.6.7
-0.882419 count: 999994.000000000004E-6
Output for 5.6.6
-0.706014 count: 999996.9999999999792E-6
Output for 5.6.5
-0.3739 count: 999994.000000000004E-6
Output for 5.6.4
-0.013912 count: 999994.9999999999998E-6
Output for 5.6.3
-0.41543 count: 999994.000000000004E-6
Output for 5.6.2
-0.200001 count: 999994.000000000004E-6
Output for 5.6.1
-0.415053 count: 999996.9999999999792E-6
Output for 5.6.0
-0.60119 count: 999996.0000000000615E-6
Output for 5.5.35
-0.272638 count: 999994.000000000004E-6
Output for 5.5.34
-0.504161 count: 999992.9999999999752E-6
Output for 5.5.33
-0.237246 count: 999995.9999999999782E-6
Output for 5.5.32
-0.042419 count: 999996.000000000006E-6
Output for 5.5.31
-0.576821 count: 999994.000000000004E-6
Output for 5.5.30
-0.433145 count: 999994.000000000004E-6
Output for 5.5.29
-0.967035 count: 999994.000000000004E-6
Output for 5.5.28
-0.605207 count: 999995.0000000000328E-6
Output for 5.5.27
-0.103993 count: 999993.000000000003E-6
Output for 5.5.26
-0.482509 count: 999993.9999999999485E-6
Output for 5.5.25
-0.925473 count: 999995.0000000000328E-6
Output for 5.5.24
-0.673007 count: 999994.000000000004E-6
Output for 5.5.23
-0.241387 count: 999992.9999999999752E-6
Output for 5.5.22
-0.864975 count: 999994.9999999999217E-6
Output for 5.5.21
-0.03068 count: 999994.9999999999981E-6
Output for 5.5.20
-0.81033 count: 999995.0000000000328E-6
Output for 5.5.19
-0.632636 count: 999995.0000000000328E-6
Output for 5.5.18
-0.798783 count: 999995.0000000000328E-6
Output for 5.5.16
-0.805659 count: 999996.0000000000615E-6
Output for 5.5.15
-0.527773 count: 999992.9999999999752E-6
Output for 5.5.14
-0.684685 count: 999994.000000000004E-6
Output for 5.5.13
-0.256068 count: 999994.000000000004E-6
Output for 5.5.12
-0.655114 count: 999995.0000000000328E-6
Output for 5.5.11
-0.006094 count: 999994.0000000000005E-6
Output for 5.5.10
-0.418194 count: 999994.000000000004E-6
Output for 5.5.9
-0.818818 count: 999994.000000000004E-6
Output for 5.5.8
-0.973666 count: 999992.9999999999752E-6
Output for 5.5.7
-0.540375 count: 999994.000000000004E-6
Output for 5.5.6
-0.894708 count: 999995.0000000000328E-6
Output for 5.5.5
-0.427298 count: 999994.000000000004E-6
Output for 5.5.4
-0.746768 count: 999994.000000000004E-6
Output for 5.5.3
-0.063816 count: 999994.000000000004E-6
Output for 5.5.2
-0.219123 count: 999994.000000000004E-6
Output for 5.5.1
-0.554289 count: 999994.000000000004E-6
Output for 5.5.0
-0.105041 count: 999995.9999999999921E-6
Output for 5.4.45
-0.799147 count: 999994.000000000004E-6
Output for 5.4.44
-0.774095 count: 999994.000000000004E-6
Output for 5.4.43
-0.30906 count: 999994.000000000004E-6
Output for 5.4.42
-0.013409 count: 999995.0000000000015E-6
Output for 5.4.41
-0.721351 count: 999994.000000000004E-6
Output for 5.4.40
-0.279077 count: 999994.000000000004E-6
Output for 5.4.39
-0.080801 count: 999993.9999999999901E-6
Output for 5.4.38
-0.449012 count: 999996.9999999999792E-6
Output for 5.4.37
-0.187831 count: 999994.000000000004E-6
Output for 5.4.36
-0.564249 count: 999994.000000000004E-6
Output for 5.4.35
-0.21734 count: 999995.9999999999782E-6
Output for 5.4.34
-0.041481 count: 999993.9999999999971E-6
Output for 5.4.32
-0.000665 count: 999995.9999999999999E-6
Output for 5.4.31
-0.337352 count: 999991.5000000000043E-5
Output for 5.4.30
-0.8855 count: 999999.0000000000368E-6
Output for 5.4.29
-0.09201 count: 999995.9999999999921E-6
Output for 5.4.28
-0.469375 count: 999994.9999999999772E-6
Output for 5.4.27
-0.820914 count: 999994.000000000004E-6
Output for 5.4.26
-0.238191 count: 999995.000000000005E-6
Output for 5.4.25
-0.594742 count: 999994.000000000004E-6
Output for 5.4.24
-0.194013 count: 999996.000000000006E-6
Output for 5.4.23
-0.351363 count: 999994.000000000004E-6
Output for 5.4.22
-0.0612 count: 999996.000000000006E-6
Output for 5.4.21
-0.258468 count: 999997.0000000000348E-6
Output for 5.4.20
-0.585509 count: 999994.000000000004E-6
Output for 5.4.19
-0.904155 count: 999995.9999999999505E-6
Output for 5.4.18
-0.378439 count: 999993.9999999999485E-6
Output for 5.4.17
-0.914226 count: 999994.000000000004E-6
Output for 5.4.16
-0.264806 count: 999992.9999999999752E-6
Output for 5.4.15
-0.809548 count: 999994.000000000004E-6
Output for 5.4.14
-0.005594 count: 999997.0000000000001E-6
Output for 5.4.13
-0.381715 count: 999995.9999999999505E-6
Output for 5.4.12
-0.775069 count: 999994.000000000004E-6
Output for 5.4.11
-0.288935 count: 999994.9999999999772E-6
Output for 5.4.10
-0.609119 count: 999994.000000000004E-6
Output for 5.4.9
-0.767495 count: 999995.9999999999505E-6
Output for 5.4.8
-0.366295 count: 999994.9999999999772E-6
Output for 5.4.7
-0.696181 count: 999996.0000000000615E-6
Output for 5.4.6
-0.849505 count: 999994.000000000004E-6
Output for 5.4.5
-0.374513 count: 999994.9999999999772E-6
Output for 5.4.4
-0.691011 count: 999992.9999999999752E-6
Output for 5.4.3
-0.860092 count: 999992.9999999999752E-6
Output for 5.4.2
-0.341326 count: 999995.0000000000328E-6
Output for 5.4.1
-0.706288 count: 999994.000000000004E-6
Output for 5.4.0
-0.864675 count: 999994.000000000004E-6
Output for 5.3.29
-0.164892 count: 999994.000000000004E-6
Output for 5.3.28
-0.697011 count: 999992.9999999999752E-6
Output for 5.3.27
-0.747146 count: 999993.0000000000863E-6
Output for 5.3.26
-0.456666 count: 999994.9999999999772E-6
Output for 5.3.25
-0.645551 count: 999995.0000000000328E-6
Output for 5.3.24
-0.185057 count: 999994.000000000004E-6
Output for 5.3.23
-0.60405 count: 999995.0000000000328E-6
Output for 5.3.22
-0.931296 count: 999995.0000000000328E-6
Output for 5.3.21
-0.108892 count: 999994.000000000004E-6
Output for 5.3.20
-0.452855 count: 999994.000000000004E-6
Output for 5.3.19
-0.969718 count: 999994.9999999999217E-6
Output for 5.3.18
-0.165903 count: 999995.000000000005E-6
Output for 5.3.17
-0.527208 count: 999994.000000000004E-6
Output for 5.3.16
-0.013387 count: 999995.0000000000015E-6
Output for 5.3.15
-0.169997 count: 999993.9999999999762E-6
Output for 5.3.14
-0.533397 count: 999994.000000000004E-6
Output for 5.3.13
-0.023716 count: 999994.9999999999981E-6
Output for 5.3.12
-0.183412 count: 999994.9999999999772E-6
Output for 5.3.11
-0.509596 count: 999994.000000000004E-6
Output for 5.3.10
-0.02049 count: 999994.0000000000005E-6
Output for 5.3.9
-0.188958 count: 999994.000000000004E-6
Output for 5.3.8
-0.349353 count: 999994.000000000004E-6
Output for 5.3.7
-0.55267 count: 999995.9999999999505E-6
Output for 5.3.6
-0.780581 count: 999994.000000000004E-6
Output for 5.3.5
-0.937486 count: 999994.000000000004E-6
Output for 5.3.4
-0.403413 count: 999996.9999999999792E-6
Output for 5.3.3
-0.738503 count: 999994.000000000004E-6
Output for 5.3.2
-0.060598 count: 999993.9999999999901E-6
Output for 5.3.1
-0.515957 count: 999994.000000000004E-6
Output for 5.3.0
-0.839326 count: 999994.000000000004E-6
Output for 5.2.17
-0.095172 count: 999994.000000000004E-6
Output for 5.2.16
-0.237739 count: 999993.000000000003E-6
Output for 5.2.15
-0.555606 count: 999994.000000000004E-6
Output for 5.2.14
-0.9008 count: 999993.0000000000863E-6
Output for 5.2.13
-0.212334 count: 999995.000000000005E-6
Output for 5.2.12
-0.363504 count: 999994.000000000004E-6
Output for 5.2.11
-0.686523 count: 999994.000000000004E-6
Output for 5.2.10
-0.986509 count: 999995.9999999999505E-6
Output for 5.2.9
-0.135671 count: 999994.000000000004E-6
Output for 5.2.8
-0.292959 count: 999996.000000000006E-6
Output for 5.2.7
-0.448632 count: 999996.000000000006E-6
Output for 5.2.6
-0.807249 count: 999994.000000000004E-6
Output for 5.2.5
-0.115022 count: 999991.7000000000003E-5
Output for 5.2.4
-0.277846 count: 999994.9999999999772E-6
Output for 5.2.3
-0.43128 count: 999994.000000000004E-6
Output for 5.2.2
-0.596778 count: 999994.000000000004E-6
Output for 5.2.1
-0.229402 count: 999998.9999999999812E-06
Output for 5.2.0
-0.380957 count: 999994.000000000004E-06
Output for 5.1.6
-0.54272 count: 999995.0000000000328E-06
Output for 5.1.5
-0.916315 count: 999997.0000000000903E-06
Output for 5.1.4
-0.257791 count: 999995.0000000000328E-06
Output for 5.1.3
-0.485988 count: 999996.000000000006E-06
Output for 5.1.2
-0.644409 count: 999994.000000000004E-06
Output for 5.1.1
-0.962038 count: 999995.0000000000328E-06
Output for 5.1.0
-0.153871 count: 999997.000000000007E-06
Output for 5.0.5
-0.447723 count: 999995.0000000000328E-06
Output for 5.0.4
-0.758177 count: 999998.000000000008E-06
Output for 5.0.3
-0.060709 count: 999996.9999999999931E-06
Output for 5.0.2
-0.348705 count: 999995.0000000000328E-06
Output for 5.0.1
-0.668584 count: 999994.000000000004E-06
Output for 5.0.0
-0.858302 count: 999994.000000000004E-06
Output for 4.4.9
-0.588103 count: 999995.0000000000328E-06
Output for 4.4.8
-0.947279 count: 999998.000000000008E-06
Output for 4.4.7
-0.744212 count: 999998.000000000008E-06
Output for 4.4.6
-0.912914 count: 999995.9999999999505E-06
Output for 4.4.5
-0.065896 count: 999995.000000000005E-06
Output for 4.4.4
-0.744108 count: 999996.0000000000615E-06
Output for 4.4.3
-0.07483 count: 999995.9999999999921E-06
Output for 4.4.2
-0.795463 count: 999998.000000000008E-06
Output for 4.4.1
-0.297373 count: 999995.9999999999505E-06
Output for 4.4.0
-0.595468 count: 999999.9999999999545E-06
Output for 4.3.11
-0.908256 count: 999996.9999999999792E-06
Output for 4.3.10
-0.200771 count: 999995.000000000005E-06
Output for 4.3.9
-0.521955 count: 999998.000000000008E-06
Output for 4.3.8
-0.044481 count: 999995.9999999999991E-06
Output for 4.3.7
-0.184784 count: 999996.000000000006E-06
Output for 4.3.6
-0.324925 count: 999994.000000000004E-06
Output for 4.3.5
-0.468201 count: 999994.000000000004E-06
Output for 4.3.4
-0.613214 count: 999994.9999999999217E-06
Output for 4.3.3
-0.76681 count: 999994.000000000004E-06
Output for 4.3.2
-0.905346 count: 999994.000000000004E-06
Output for 4.3.1
-0.048027 count: 999993.9999999999971E-06
Output for 4.3.0
-0.185124 count: 999994.000000000004E-06