3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A; $t1 = hrtime(true); for ($i = 0; $i < 6000000; $i++) { count([]); } $t2 = hrtime(true); $t3 = hrtime(true); for ($i = 0; $i < 6000000; $i++) { \count([]); } $t4 = hrtime(true); echo "Without import: " . (($t2 - $t1) / 1000000) . " ms\n"; echo "With import : " . (($t4 - $t3) / 1000000) . " ms\n";
Output for 8.3.13
Without import: 53.277284 ms With import : 32.742906 ms
Output for 8.3.12
Without import: 59.68525 ms With import : 33.080404 ms
Output for 8.3.11
Without import: 54.219425 ms With import : 32.841176 ms
Output for 8.3.10
Without import: 53.1324 ms With import : 29.561087 ms
Output for 8.3.9
Without import: 53.100592 ms With import : 33.312368 ms
Output for 8.3.8
Without import: 63.680566 ms With import : 35.386678 ms
Output for 8.3.7
Without import: 113.893973 ms With import : 54.567284 ms
Output for 8.3.6
Without import: 123.908855 ms With import : 63.9568 ms
Output for 8.3.5
Without import: 83.341159 ms With import : 39.210907 ms
Output for 8.3.4
Without import: 103.089297 ms With import : 57.66279 ms
Output for 8.3.3
Without import: 106.218577 ms With import : 58.036784 ms
Output for 8.3.2
Without import: 83.883849 ms With import : 31.038212 ms
Output for 8.3.1
Without import: 70.368793 ms With import : 32.909477 ms
Output for 8.3.0
Without import: 56.149645 ms With import : 30.989445 ms
Output for 8.2.25
Without import: 56.215971 ms With import : 34.745526 ms
Output for 8.2.24
Without import: 56.304217 ms With import : 32.755788 ms
Output for 8.2.23
Without import: 74.259669 ms With import : 30.780618 ms
Output for 8.2.22
Without import: 53.195893 ms With import : 31.151495 ms
Output for 8.2.21
Without import: 52.170198 ms With import : 31.16498 ms
Output for 8.2.20
Without import: 62.99172 ms With import : 33.802866 ms
Output for 8.2.19
Without import: 98.370058 ms With import : 57.703876 ms
Output for 8.2.18
Without import: 102.139967 ms With import : 61.555879 ms
Output for 8.2.17
Without import: 102.626084 ms With import : 54.876758 ms
Output for 8.2.16
Without import: 131.8549 ms With import : 62.202704 ms
Output for 8.2.15
Without import: 58.000384 ms With import : 34.339859 ms
Output for 8.2.14
Without import: 54.124718 ms With import : 34.243306 ms
Output for 8.2.13
Without import: 66.149554 ms With import : 32.876119 ms
Output for 8.2.12
Without import: 54.21168 ms With import : 32.631608 ms
Output for 8.2.11
Without import: 76.922031 ms With import : 73.412885 ms
Output for 8.2.10
Without import: 73.828104 ms With import : 35.038544 ms
Output for 8.2.9
Without import: 72.022495 ms With import : 35.047427 ms
Output for 8.2.8
Without import: 72.539959 ms With import : 35.14241 ms
Output for 8.2.7
Without import: 72.290959 ms With import : 35.546531 ms
Output for 8.2.6
Without import: 75.143376 ms With import : 35.197259 ms
Output for 8.2.5
Without import: 72.078982 ms With import : 35.058152 ms
Output for 8.2.4
Without import: 72.974939 ms With import : 36.814245 ms
Output for 8.2.3
Without import: 74.870447 ms With import : 36.72231 ms
Output for 8.2.2
Without import: 88.32802 ms With import : 45.642505 ms
Output for 8.2.1
Without import: 73.67013 ms With import : 35.056536 ms
Output for 8.2.0
Without import: 72.651037 ms With import : 38.869168 ms
Output for 8.1.30
Without import: 66.970971 ms With import : 35.95836 ms
Output for 8.1.29
Without import: 67.574633 ms With import : 43.830445 ms
Output for 8.1.28
Without import: 97.648098 ms With import : 60.751298 ms
Output for 8.1.27
Without import: 54.179579 ms With import : 32.835649 ms
Output for 8.1.26
Without import: 80.645071 ms With import : 35.451482 ms
Output for 8.1.25
Without import: 51.87336 ms With import : 33.000691 ms
Output for 8.1.24
Without import: 77.429046 ms With import : 72.317272 ms
Output for 8.1.23
Without import: 71.145076 ms With import : 35.137269 ms
Output for 8.1.22
Without import: 71.827775 ms With import : 36.922729 ms
Output for 8.1.21
Without import: 73.914447 ms With import : 36.503048 ms
Output for 8.1.20
Without import: 71.179359 ms With import : 35.512915 ms
Output for 8.1.19
Without import: 71.135787 ms With import : 35.26794 ms
Output for 8.1.18
Without import: 73.227594 ms With import : 36.88865 ms
Output for 8.1.17
Without import: 70.448235 ms With import : 49.371711 ms
Output for 8.1.16
Without import: 72.767295 ms With import : 36.02375 ms
Output for 8.1.15
Without import: 71.553388 ms With import : 35.140572 ms
Output for 8.1.14
Without import: 71.429463 ms With import : 35.122145 ms
Output for 8.1.13
Without import: 71.640795 ms With import : 35.4795 ms
Output for 8.1.12
Without import: 69.931227 ms With import : 35.191249 ms
Output for 8.1.11
Without import: 71.284294 ms With import : 44.988355 ms
Output for 8.1.10
Without import: 86.731558 ms With import : 57.460385 ms
Output for 8.1.9
Without import: 69.772399 ms With import : 35.082425 ms
Output for 8.1.8
Without import: 71.34676 ms With import : 47.305365 ms
Output for 8.1.7
Without import: 71.27705 ms With import : 36.738781 ms
Output for 8.1.6
Without import: 82.536084 ms With import : 76.310731 ms
Output for 8.1.5
Without import: 82.303721 ms With import : 76.227215 ms
Output for 8.1.4
Without import: 81.818147 ms With import : 76.222676 ms
Output for 8.1.3
Without import: 82.562663 ms With import : 76.195133 ms
Output for 8.1.2
Without import: 83.006628 ms With import : 76.604173 ms
Output for 8.1.1
Without import: 82.953046 ms With import : 76.736983 ms
Output for 8.1.0
Without import: 83.027303 ms With import : 76.311819 ms
Output for 8.0.30
Without import: 74.727435 ms With import : 41.146655 ms
Output for 8.0.29
Without import: 74.887063 ms With import : 40.544195 ms
Output for 8.0.28
Without import: 74.743511 ms With import : 40.413739 ms
Output for 8.0.27
Without import: 78.704686 ms With import : 40.990358 ms
Output for 8.0.26
Without import: 74.482129 ms With import : 38.951911 ms
Output for 8.0.25
Without import: 92.980149 ms With import : 55.583547 ms
Output for 8.0.24
Without import: 74.322285 ms With import : 40.681816 ms
Output for 8.0.23
Without import: 74.009389 ms With import : 42.312918 ms
Output for 8.0.22
Without import: 74.207334 ms With import : 42.437794 ms
Output for 8.0.21
Without import: 74.594688 ms With import : 40.634685 ms
Output for 8.0.20
Without import: 84.534367 ms With import : 46.961264 ms
Output for 8.0.19
Without import: 85.866773 ms With import : 79.955885 ms
Output for 8.0.18
Without import: 85.216642 ms With import : 79.919512 ms
Output for 8.0.17
Without import: 86.076338 ms With import : 80.059287 ms
Output for 8.0.16
Without import: 84.499555 ms With import : 80.117321 ms
Output for 8.0.15
Without import: 85.418959 ms With import : 79.801371 ms
Output for 8.0.14
Without import: 85.036905 ms With import : 79.896794 ms
Output for 8.0.13
Without import: 85.416693 ms With import : 80.160502 ms
Output for 8.0.12
Without import: 85.972693 ms With import : 80.788258 ms
Output for 8.0.11
Without import: 88.925704 ms With import : 79.859897 ms
Output for 8.0.10
Without import: 84.990892 ms With import : 80.237377 ms
Output for 8.0.9
Without import: 88.549804 ms With import : 80.177297 ms
Output for 8.0.8
Without import: 124.657358 ms With import : 71.88945 ms
Output for 8.0.7
Without import: 85.244165 ms With import : 80.115008 ms
Output for 8.0.6
Without import: 87.182126 ms With import : 79.878786 ms
Output for 8.0.5
Without import: 87.431549 ms With import : 81.168061 ms
Output for 8.0.3
Without import: 95.018715 ms With import : 57.570585 ms
Output for 8.0.2
Without import: 127.108223 ms With import : 75.293326 ms
Output for 8.0.1
Without import: 87.987354 ms With import : 80.415181 ms
Output for 8.0.0
Without import: 134.910098 ms With import : 76.718668 ms
Output for 7.4.33
Without import: 91.288415 ms With import : 64.106144 ms
Output for 7.4.32
Without import: 93.45127 ms With import : 58.836485 ms
Output for 7.4.30
Without import: 91.412337 ms With import : 58.613141 ms
Output for 7.4.29
Without import: 105.985961 ms With import : 95.924445 ms
Output for 7.4.28
Without import: 109.372137 ms With import : 97.500191 ms
Output for 7.4.27
Without import: 108.194372 ms With import : 96.463943 ms
Output for 7.4.26
Without import: 105.865271 ms With import : 96.17232 ms
Output for 7.4.25
Without import: 108.311905 ms With import : 97.897373 ms
Output for 7.4.24
Without import: 110.992304 ms With import : 96.222255 ms
Output for 7.4.23
Without import: 108.015545 ms With import : 96.337257 ms
Output for 7.4.22
Without import: 105.31401 ms With import : 95.515658 ms
Output for 7.4.21
Without import: 163.293456 ms With import : 91.15347 ms
Output for 7.4.20
Without import: 112.534229 ms With import : 96.448124 ms
Output for 7.4.13
Without import: 159.395487 ms With import : 99.604666 ms
Output for 7.4.12
Without import: 217.894851 ms With import : 109.28759 ms
Output for 7.4.11
Without import: 170.968696 ms With import : 116.114151 ms
Output for 7.4.10
Without import: 253.835613 ms With import : 124.517611 ms
Output for 7.4.9
Without import: 162.381727 ms With import : 101.899012 ms
Output for 7.4.8
Without import: 162.514522 ms With import : 100.726318 ms
Output for 7.4.7
Without import: 161.005915 ms With import : 96.840345 ms
Output for 7.4.6
Without import: 164.518427 ms With import : 104.894208 ms
Output for 7.4.5
Without import: 135.877874 ms With import : 160.321551 ms
Output for 7.4.4
Without import: 169.045809 ms With import : 117.989838 ms
Output for 7.4.0
Without import: 110.891928 ms With import : 135.521808 ms
Output for 7.3.33
Without import: 160.299198 ms With import : 116.176735 ms
Output for 7.3.32
Without import: 131.746237 ms With import : 93.492324 ms
Output for 7.3.31
Without import: 131.543467 ms With import : 93.393132 ms
Output for 7.3.30
Without import: 127.415705 ms With import : 94.45709 ms
Output for 7.3.29
Without import: 165.877589 ms With import : 113.234007 ms
Output for 7.3.28
Without import: 261.741639 ms With import : 161.838171 ms
Output for 7.3.26
Without import: 195.237617 ms With import : 140.506154 ms
Output for 7.3.24
Without import: 165.935761 ms With import : 122.151112 ms
Output for 7.3.23
Without import: 173.844865 ms With import : 121.023931 ms
Output for 7.3.21
Without import: 175.122541 ms With import : 125.272684 ms
Output for 7.3.20
Without import: 186.441066 ms With import : 134.748156 ms
Output for 7.3.19
Without import: 248.966347 ms With import : 120.202663 ms
Output for 7.3.18
Without import: 177.208294 ms With import : 121.792202 ms
Output for 7.3.17
Without import: 287.707399 ms With import : 175.062458 ms
Output for 7.3.16
Without import: 201.795902 ms With import : 140.753594 ms
Output for 7.3.9
Without import: 212.605305 ms With import : 176.512951 ms
Output for 7.3.8
Without import: 257.341655 ms With import : 157.142778 ms
Output for 7.3.7
Without import: 180.491461 ms With import : 134.647598 ms
Output for 7.3.6
Without import: 201.031446 ms With import : 126.92791 ms
Output for 7.3.5
Without import: 188.389551 ms With import : 125.211638 ms
Output for 7.3.4
Without import: 190.872476 ms With import : 155.525821 ms
Output for 7.3.3
Without import: 199.26805 ms With import : 117.177674 ms
Output for 7.3.2
Without import: 283.075744 ms With import : 139.117826 ms
Output for 7.3.1
Without import: 220.242078 ms With import : 131.847393 ms
Output for 7.3.0
Without import: 218.340777 ms With import : 146.956758 ms
Output for 7.1.25 - 7.1.32, 7.2.0 - 7.2.33
Fatal error: Uncaught Error: Call to undefined function A\hrtime() in /in/bNVlg:4 Stack trace: #0 {main} thrown in /in/bNVlg on line 4
Process exited with code 255.

preferences:
73.65 ms | 630 KiB | 5 Q