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(); count($range); $end_time = microtime(); echo "count: " . ($end_time - $start_time);
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/G9j4P on line 11 Notice: A non well formed numeric value encountered in /in/G9j4P on line 11 array_shift:0.000254 Notice: A non well formed numeric value encountered in /in/G9j4P on line 21 Notice: A non well formed numeric value encountered in /in/G9j4P on line 21 count: 2.0000000000003E-6
Output for 7.0.14
array_shift:0.000466 count: 2.0000000000003E-6
Output for 7.0.12
array_shift:0.000465 count: 3.9999999999997E-6
Output for 7.0.6
array_shift:0.00041199999999997 count: 2.0000000000575E-6
Output for 7.0.5
array_shift:0.00028600000000001 count: 1.0000000000288E-6
Output for 7.0.4
array_shift:0.000428 count: 3.000000000003E-6
Output for 7.0.3
array_shift:0.000362 count: 1.000000000001E-6
Output for 7.0.2
array_shift:0.00058500000000006 count: 2.0000000000575E-6
Output for 7.0.1
array_shift:0.000347 count: 1.9999999999985E-6
Output for 7.0.0
array_shift:0.00037700000000002 count: 9.9999999997324E-7
Output for hhvm-3.12.0
array_shift:9.1999999999981E-5 count: 6.000000000006E-6
Output for hhvm-3.10.0
array_shift:8.5000000000002E-5 count: 3.000000000003E-6
Output for 5.6.28
array_shift:0.001858 count: 2.9999999999995E-6
Output for 5.6.21
array_shift:0.001355 count: 2.000000000002E-6
Output for 5.6.20
array_shift:0.00201 count: 3.000000000003E-6
Output for 5.6.19
array_shift:0.001707 count: 2.0000000000575E-6
Output for 5.6.18
array_shift:0.002035 count: 2.9999999999752E-6
Output for 5.6.17
array_shift:0.002031 count: 2.9999999999752E-6
Output for 5.6.16
array_shift:0.002208 count: 2.9999999999752E-6
Output for 5.6.15
array_shift:0.001992 count: 4.000000000004E-6
Output for 5.6.14
array_shift:0.001649 count: 2.9999999999752E-6
Output for 5.6.13
array_shift:0.0017389999999999 count: 2.9999999999752E-6
Output for 5.6.12
array_shift:0.001944 count: 3.000000000003E-6
Output for 5.6.11
array_shift:0.001954 count: 4.000000000004E-6
Output for 5.6.10
array_shift:0.002248 count: 2.000000000002E-6
Output for 5.6.9
array_shift:0.001998 count: 3.0000000000308E-6
Output for 5.6.8
array_shift:0.001966 count: 3.0000000000863E-6
Output for 5.6.7
array_shift:0.0020849999999999 count: 3.0000000000863E-6
Output for 5.6.6
array_shift:0.00195 count: 2.0000000000575E-6
Output for 5.6.5
array_shift:0.001939 count: 2.000000000002E-6
Output for 5.6.4
array_shift:0.002034 count: 3.000000000003E-6
Output for 5.6.3
array_shift:0.001954 count: 1.9999999999465E-6
Output for 5.6.2
array_shift:0.002177 count: 2.9999999999752E-6
Output for 5.6.1
array_shift:0.002061 count: 3.0000000000863E-6
Output for 5.6.0
array_shift:0.002117 count: 2.9999999999752E-6
Output for 5.5.35
array_shift:0.001829 count: 2.000000000002E-6
Output for 5.5.34
array_shift:0.003623 count: 2.9999999999752E-6
Output for 5.5.33
array_shift:0.0033259999999999 count: 2.9999999999752E-6
Output for 5.5.32
array_shift:0.003547 count: 2.9999999999961E-6
Output for 5.5.31
array_shift:0.003408 count: 2.0000000000575E-6
Output for 5.5.30
array_shift:0.003152 count: 4.000000000004E-6
Output for 5.5.29
array_shift:0.003582 count: 3.000000000003E-6
Output for 5.5.28
array_shift:0.004233 count: 2.9999999999752E-6
Output for 5.5.27
array_shift:0.0029450000000001 count: 2.0000000000575E-6
Output for 5.5.26
array_shift:0.003541 count: 4.000000000004E-6
Output for 5.5.25
array_shift:0.0034219999999999 count: 2.9999999999752E-6
Output for 5.5.24
array_shift:0.003596 count: 2.9999999999891E-6
Output for 5.5.23
array_shift:0.004188 count: 3.000000000003E-6
Output for 5.5.22
array_shift:0.003507 count: 2.9999999999752E-6
Output for 5.5.21
array_shift:0.003439 count: 2.000000000002E-6
Output for 5.5.20
array_shift:0.003425 count: 4.9999999999217E-6
Output for 5.5.19
array_shift:0.003685 count: 1.9999999999465E-6
Output for 5.5.18
array_shift:0.003785 count: 2.000000000002E-6
Output for 5.5.16
array_shift:0.003871 count: 3.000000000003E-6
Output for 5.5.15
array_shift:0.003642 count: 2.9999999999995E-6
Output for 5.5.14
array_shift:0.004143 count: 3.000000000003E-6
Output for 5.5.13
array_shift:0.003429 count: 2.9999999999995E-6
Output for 5.5.12
array_shift:0.003812 count: 3.0000000000863E-6
Output for 5.5.11
array_shift:0.003058 count: 3.0000000000863E-6
Output for 5.5.10
array_shift:0.003682 count: 2.000000000002E-6
Output for 5.5.9
array_shift:0.0036109999999999 count: 1.9999999999465E-6
Output for 5.5.8
array_shift:0.004045 count: 3.000000000003E-6
Output for 5.5.7
array_shift:0.003336 count: 4.000000000004E-6
Output for 5.5.6
array_shift:0.00319 count: 2.000000000002E-6
Output for 5.5.5
array_shift:0.0023719999999999 count: 1.0000000000288E-6
Output for 5.5.4
array_shift:0.002329 count: 2.000000000002E-6
Output for 5.5.3
array_shift:0.002718 count: 2.0000000000575E-6
Output for 5.5.2
array_shift:0.002902 count: 2.0000000000575E-6
Output for 5.5.1
array_shift:0.002712 count: 3.000000000003E-6
Output for 5.5.0
array_shift:0.002166 count: 2.9999999999752E-6
Output for 5.4.45
array_shift:0.00361 count: 2.9999999999752E-6
Output for 5.4.44
array_shift:0.0043350000000001 count: 2.0000000000575E-6
Output for 5.4.43
array_shift:0.003669 count: 3.000000000003E-6
Output for 5.4.42
array_shift:0.003478 count: 5.0000000000328E-6
Output for 5.4.41
array_shift:0.003518 count: 2.000000000002E-6
Output for 5.4.40
array_shift:0.003774 count: 3.0000000000308E-6
Output for 5.4.39
array_shift:0.0035620000000001 count: 1.9999999999465E-6
Output for 5.4.38
array_shift:0.003622 count: 2.9999999999752E-6
Output for 5.4.37
array_shift:0.003567 count: 2.9999999999752E-6
Output for 5.4.36
array_shift:0.003682 count: 2.9999999999752E-6
Output for 5.4.35
array_shift:0.00366 count: 4.000000000004E-6
Output for 5.4.34
array_shift:0.003788 count: 3.0000000000308E-6
Output for 5.4.32
array_shift:0.003575 count: 2.9999999999752E-6
Output for 5.4.31
array_shift:0.003795 count: 4.000000000004E-6
Output for 5.4.30
array_shift:0.003824 count: 2.9999999999752E-6
Output for 5.4.29
array_shift:0.003542 count: 2.9999999999752E-6
Output for 5.4.28
array_shift:0.003268 count: 2.000000000002E-6
Output for 5.4.27
array_shift:0.003819 count: 3.0000000000863E-6
Output for 5.4.26
array_shift:0.003652 count: 3.000000000003E-6
Output for 5.4.25
array_shift:0.00305 count: 2.9999999999752E-6
Output for 5.4.24
array_shift:0.003789 count: 2.9999999999752E-6
Output for 5.4.23
array_shift:0.003624 count: 2.9999999999752E-6
Output for 5.4.22
array_shift:0.0028199999999999 count: 1.9999999999465E-6
Output for 5.4.21
array_shift:0.002499 count: 1.9999999999465E-6
Output for 5.4.20
array_shift:0.002921 count: 2.000000000002E-6
Output for 5.4.19
array_shift:0.002777 count: 2.000000000002E-6
Output for 5.4.18
array_shift:0.003066 count: 1.0000000000288E-6
Output for 5.4.17
array_shift:0.002457 count: 2.000000000002E-6
Output for 5.4.16
array_shift:0.0027739999999999 count: 1.9999999999465E-6
Output for 5.4.15
array_shift:0.002878 count: 2.000000000002E-6
Output for 5.4.14
array_shift:0.002421 count: 2.000000000002E-6
Output for 5.4.13
array_shift:0.0031690000000001 count: 1.9999999999465E-6
Output for 5.4.12
array_shift:0.002454 count: 1.000000000001E-6
Output for 5.4.11
array_shift:0.002318 count: 2.000000000002E-6
Output for 5.4.10
array_shift:0.002673 count: 2.000000000002E-6
Output for 5.4.9
array_shift:0.002518 count: 2.000000000002E-6
Output for 5.4.8
array_shift:0.0028830000000001 count: 1.9999999999465E-6
Output for 5.4.7
array_shift:0.002278 count: 2.000000000002E-6
Output for 5.4.6
array_shift:0.002154 count: 2.000000000002E-6
Output for 5.4.5
array_shift:0.0028969999999999 count: 2.9999999999752E-6
Output for 5.4.4
array_shift:0.002823 count: 2.9999999999752E-6
Output for 5.4.3
array_shift:0.00457 count: 3.0000000000308E-6
Output for 5.4.2
array_shift:0.002898 count: 3.000000000003E-6
Output for 5.4.1
array_shift:0.003268 count: 3.0000000000308E-6
Output for 5.4.0
array_shift:0.003657 count: 2.9999999999752E-6
Output for 5.3.29
array_shift:0.0037550000000001 count: 2.9999999999752E-6
Output for 5.3.28
array_shift:0.002981 count: 2.000000000002E-6
Output for 5.3.27
array_shift:0.002757 count: 2.000000000002E-6
Output for 5.3.26
array_shift:0.002304 count: 2.0000000000575E-6
Output for 5.3.25
array_shift:0.002273 count: 2.000000000002E-6
Output for 5.3.24
array_shift:0.002428 count: 1.0000000000066E-5
Output for 5.3.23
array_shift:0.0027100000000001 count: 2.0000000000575E-6
Output for 5.3.22
array_shift:0.002674 count: 2.9999999999752E-6
Output for 5.3.21
array_shift:0.003022 count: 2.9999999999752E-6
Output for 5.3.20
array_shift:0.002351 count: 3.000000000003E-6
Output for 5.3.19
array_shift:0.0023709999999999 count: 1.9999999999465E-6
Output for 5.3.18
array_shift:0.0022760000000001 count: 2.0000000000575E-6
Output for 5.3.17
array_shift:0.002735 count: 2.000000000002E-6
Output for 5.3.16
array_shift:0.002154 count: 2.9999999999752E-6
Output for 5.3.15
array_shift:0.003014 count: 2.0000000000575E-6
Output for 5.3.14
array_shift:0.002988 count: 2.9999999999961E-6
Output for 5.3.13
array_shift:0.004298 count: 2.9999999999752E-6
Output for 5.3.12
array_shift:0.00354 count: 2.9999999999752E-6
Output for 5.3.11
array_shift:0.002802 count: 3.000000000003E-6
Output for 5.3.10
array_shift:0.003557 count: 2.9999999999752E-6
Output for 5.3.9
array_shift:0.003042 count: 2.9999999999995E-6
Output for 5.3.8
array_shift:0.003449 count: 2.9999999999752E-6
Output for 5.2.17, 5.3.7
array_shift:0.00364 count: 4.000000000004E-6
Output for 5.3.6
array_shift:0.003509 count: 2.9999999999752E-6
Output for 5.3.5
array_shift:0.0032690000000001 count: 3.0000000000863E-6
Output for 5.3.4
array_shift:0.003429 count: 4.000000000004E-6
Output for 5.3.3
array_shift:0.003701 count: 3.000000000003E-6
Output for 5.3.2
array_shift:0.003521 count: 2.9999999999752E-6
Output for 5.3.1
array_shift:0.003607 count: 3.000000000003E-6
Output for 5.3.0
array_shift:0.003579 count: 2.9999999999752E-6
Output for 5.2.3, 5.2.16
array_shift:0.00325 count: 4.000000000004E-6
Output for 5.2.15
array_shift:0.003422 count: 2.9999999999752E-6
Output for 5.2.14
array_shift:0.003601 count: 4.000000000004E-6
Output for 5.2.13
array_shift:0.003448 count: 2.9999999999752E-6
Output for 5.2.12
array_shift:0.003709 count: 2.9999999999752E-6
Output for 5.2.11
array_shift:0.003325 count: 2.9999999999752E-6
Output for 5.2.10
array_shift:0.003567 count: 3.0000000000863E-6
Output for 5.2.9
array_shift:0.003595 count: 4.000000000004E-6
Output for 5.2.8
array_shift:0.003339 count: 2.9999999999995E-6
Output for 5.2.7
array_shift:0.003332 count: 4.000000000004E-6
Output for 5.2.6
array_shift:0.00345 count: 4.000000000004E-6
Output for 5.2.5
array_shift:0.003293 count: 2.9999999999752E-6
Output for 5.2.4
array_shift:0.003345 count: 3.9999999999901E-6
Output for 5.2.2
array_shift:0.0033840000000001 count: 4.000000000004E-6
Output for 5.2.1
array_shift:0.003237 count: 3.000000000003E-06
Output for 5.2.0
array_shift:0.003021 count: 2.000000000002E-06
Output for 5.1.6
array_shift:0.004467 count: 4.000000000004E-06
Output for 5.1.5
array_shift:0.005835 count: 3.000000000003E-06
Output for 5.1.4
array_shift:0.005869 count: 4.000000000004E-06
Output for 5.1.3
array_shift:0.005362 count: 2.9999999999752E-06
Output for 5.1.2
array_shift:0.005547 count: 4.9999999999217E-06
Output for 5.1.1
array_shift:0.005512 count: 3.000000000003E-06
Output for 5.1.0
array_shift:0.0054900000000001 count: 2.9999999999752E-06
Output for 5.0.5
array_shift:0.0054139999999999 count: 2.9999999999752E-06
Output for 5.0.4
array_shift:-0.994993 count: 4.0000000000005E-06
Output for 5.0.3
array_shift:0.004378 count: 2.9999999999752E-06
Output for 5.0.2
array_shift:0.005759 count: 4.000000000004E-06
Output for 5.0.1
array_shift:0.005684 count: 4.000000000004E-06
Output for 5.0.0
array_shift:0.005389 count: 4.000000000004E-06
Output for 4.4.9
array_shift:0.005811 count: 4.000000000004E-06
Output for 4.4.8
array_shift:0.006011 count: 4.000000000004E-06
Output for 4.4.7
array_shift:0.007073 count: 5.0000000000328E-06
Output for 4.4.6
array_shift:0.0057419999999999 count: 4.000000000004E-06
Output for 4.4.5
array_shift:0.006102 count: 4.9999999999981E-06
Output for 4.4.4
array_shift:0.005614 count: 4.000000000004E-06
Output for 4.4.3
array_shift:0.006097 count: 5.000000000005E-06
Output for 4.4.2
array_shift:0.005776 count: 2.9999999999752E-06
Output for 4.4.1
array_shift:0.00576 count: 4.000000000004E-06
Output for 4.4.0
array_shift:0.006124 count: 4.9999999999217E-06
Output for 4.3.11
array_shift:0.006233 count: 7.000000000007E-06
Output for 4.3.10
array_shift:0.005861 count: 4.000000000004E-06
Output for 4.3.9
array_shift:0.006189 count: 5.0000000000328E-06
Output for 4.3.8
array_shift:0.005754 count: 6.000000000006E-06
Output for 4.3.7
array_shift:0.0061030000000001 count: 5.9999999999505E-06
Output for 4.3.6
array_shift:0.006262 count: 8.000000000008E-06
Output for 4.3.5
array_shift:0.006144 count: 4.000000000004E-06
Output for 4.3.4
array_shift:0.006027 count: 5.9999999999921E-06
Output for 4.3.3
array_shift:0.004979 count: 4.000000000004E-06
Output for 4.3.2
array_shift:0.005013 count: 3.0000000000308E-06
Output for 4.3.1
array_shift:0.006278 count: 5.0000000000328E-06
Output for 4.3.0
array_shift:0.006455 count: 8.000000000008E-06