3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function doNothing() {} $start = microtime(); for ($i=0;$i<1000;$i++) { doNothing(); } $end = microtime(); $start = explode(' ', $start); $start = $start[0] + ($start[1] - 1378586325); $end = explode(' ', $end); $end = $end[0] + ($end[1] - 1378586325); echo sprintf('%F', $end) . ' - ' . sprintf('%F', $start) . ' = ' . sprintf('%F', $end - $start) . PHP_EOL; $start = microtime(true); for ($i=0;$i<1000;$i++) { doNothing(); } $end = microtime(true); echo sprintf('%F', $end) . ' - ' . sprintf('%F', $start) . ' = ' . sprintf('%F', $end - $start) . PHP_EOL;
Output for 7.1.0
531.005416 - 531.005380 = 0.000036 1378586856.005466 - 1378586856.005438 = 0.000028
Output for 7.0.14
531.003951 - 531.003907 = 0.000044 1378586856.004014 - 1378586856.003979 = 0.000035
Output for 7.0.6
83646939.687459 - 83646939.687417 = 0.000042 1462233264.687527 - 1462233264.687488 = 0.000039
Output for 7.0.5
81016376.870061 - 81016376.870035 = 0.000026 1459602701.870101 - 1459602701.870081 = 0.000020
Output for 7.0.4
78980284.959942 - 78980284.959917 = 0.000025 1457566609.959979 - 1457566609.959959 = 0.000020
Output for 7.0.3
79672276.239242 - 79672276.239214 = 0.000028 1458258601.239283 - 1458258601.239262 = 0.000021
Output for 7.0.2
79969602.651130 - 79969602.651090 = 0.000040 1458555927.651188 - 1458555927.651157 = 0.000031
Output for 7.0.1
80143088.662682 - 80143088.662639 = 0.000043 1458729413.662733 - 1458729413.662706 = 0.000027
Output for 7.0.0
80411450.969441 - 80411450.969399 = 0.000042 1458997775.969499 - 1458997775.969468 = 0.000031
Output for hhvm-3.12.0
79082659.544005 - 79082659.543912 = 0.000093 1457668984.544125 - 1457668984.544044 = 0.000081
Output for hhvm-3.10.0
80684264.768074 - 80684264.767960 = 0.000114 1459270589.768216 - 1459270589.768115 = 0.000101
Output for 5.6.21
83542760.777514 - 83542760.777453 = 0.000061 1462129085.777588 - 1462129085.777533 = 0.000055
Output for 5.6.20
81604083.846507 - 81604083.846411 = 0.000096 1460190408.846629 - 1460190408.846535 = 0.000094
Output for 5.6.19
78714179.323752 - 78714179.323667 = 0.000085 1457300504.323851 - 1457300504.323779 = 0.000072
Output for 5.6.18
79360638.176462 - 79360638.176396 = 0.000066 1457946963.176545 - 1457946963.176482 = 0.000063
Output for 5.6.17
79774822.730563 - 79774822.730500 = 0.000063 1458361147.730636 - 1458361147.730582 = 0.000054
Output for 5.6.16
80500475.543752 - 80500475.543649 = 0.000103 1459086800.543870 - 1459086800.543778 = 0.000092
Output for 5.6.15
80590136.267820 - 80590136.267719 = 0.000101 1459176461.267955 - 1459176461.267847 = 0.000108
Output for 5.6.14
80945328.378122 - 80945328.378038 = 0.000084 1459531653.378237 - 1459531653.378149 = 0.000088
Output for 5.6.13
82082184.723821 - 82082184.723728 = 0.000093 1460668509.723941 - 1460668509.723848 = 0.000093
Output for 5.6.12
82475043.888726 - 82475043.888626 = 0.000100 1461061368.888847 - 1461061368.888758 = 0.000089
Output for 5.6.11
82760411.763146 - 82760411.763050 = 0.000096 1461346736.763261 - 1461346736.763176 = 0.000085
Output for 5.6.10
82939203.566692 - 82939203.566592 = 0.000100 1461525528.566809 - 1461525528.566721 = 0.000088
Output for 5.6.9
83130510.311423 - 83130510.311332 = 0.000091 1461716835.311531 - 1461716835.311450 = 0.000081
Output for 5.6.8
83330500.300126 - 83330500.300029 = 0.000097 1461916825.300261 - 1461916825.300156 = 0.000105
Output for 5.6.7
85528970.692421 - 85528970.692322 = 0.000099 1464115295.692539 - 1464115295.692449 = 0.000090
Output for 5.5.35
85282556.513301 - 85282556.513219 = 0.000082 1463868881.513403 - 1463868881.513329 = 0.000074
Output for 5.5.34
81711796.342494 - 81711796.342380 = 0.000114 1460298121.342618 - 1460298121.342524 = 0.000094
Output for 5.5.33
78846828.269067 - 78846828.268998 = 0.000069 1457433153.269149 - 1457433153.269088 = 0.000061
Output for 5.5.32
79558380.327036 - 79558380.326940 = 0.000096 1458144705.327164 - 1458144705.327069 = 0.000095
Output for 5.5.31
79871617.478695 - 79871617.478604 = 0.000091 1458457942.478812 - 1458457942.478724 = 0.000088
Output for 5.5.30
80856670.884299 - 80856670.884238 = 0.000061 1459442995.884376 - 1459442995.884323 = 0.000053
Output for 5.5.29
82219339.967018 - 82219339.966959 = 0.000059 1460805664.967090 - 1460805664.967037 = 0.000053
Output for 5.5.28
82573037.258956 - 82573037.258895 = 0.000061 1461159362.259030 - 1461159362.258976 = 0.000054
Output for 5.5.27
82668732.952826 - 82668732.952729 = 0.000097 1461255057.952963 - 1461255057.952860 = 0.000103
Output for 5.5.26
83033839.131009 - 83033839.130950 = 0.000059 1461620164.131081 - 1461620164.131028 = 0.000053
Output for 5.5.25
83228703.112835 - 83228703.112740 = 0.000095 1461815028.112951 - 1461815028.112865 = 0.000086
Output for 5.5.24
83428686.543324 - 83428686.543212 = 0.000112 1462015011.543428 - 1462015011.543358 = 0.000070
Output for 5.4.45
66008772.431103 - 66008772.431019 = 0.000084 1444595097.431237 - 1444595097.431131 = 0.000106
Output for 5.4.44
66008772.855327 - 66008772.855266 = 0.000061 1444595097.855399 - 1444595097.855346 = 0.000053
Output for 5.4.43
66008773.238340 - 66008773.238280 = 0.000060 1444595098.238426 - 1444595098.238360 = 0.000066
Output for 5.4.42
66008773.735673 - 66008773.735612 = 0.000061 1444595098.735745 - 1444595098.735693 = 0.000052
Output for 5.4.41
66008774.059537 - 66008774.059473 = 0.000064 1444595099.059610 - 1444595099.059557 = 0.000053
Output for 5.4.40
66008774.418243 - 66008774.418181 = 0.000062 1444595099.418315 - 1444595099.418262 = 0.000053
Output for 5.4.39
66008774.798682 - 66008774.798621 = 0.000061 1444595099.798767 - 1444595099.798701 = 0.000066
Output for 5.4.38
66008775.170863 - 66008775.170801 = 0.000062 1444595100.170947 - 1444595100.170884 = 0.000063
Output for 5.4.37
66008775.596216 - 66008775.596155 = 0.000061 1444595100.596289 - 1444595100.596236 = 0.000053
Output for 5.4.36
66008775.968376 - 66008775.968314 = 0.000062 1444595100.968449 - 1444595100.968396 = 0.000053
Output for 5.4.35
66008776.277676 - 66008776.277588 = 0.000088 1444595101.277804 - 1444595101.277710 = 0.000094
Output for 5.4.34
66008776.548224 - 66008776.548160 = 0.000064 1444595101.548299 - 1444595101.548246 = 0.000053
Output for 5.4.32
66008776.832794 - 66008776.832729 = 0.000065 1444595101.832870 - 1444595101.832817 = 0.000053
Output for 5.4.31
66008777.170642 - 66008777.170578 = 0.000064 1444595102.170734 - 1444595102.170667 = 0.000067
Output for 5.4.30
66008777.585798 - 66008777.585735 = 0.000063 1444595102.585882 - 1444595102.585828 = 0.000054
Output for 5.4.29
66008777.958810 - 66008777.958701 = 0.000109 1444595102.958940 - 1444595102.958844 = 0.000096
Output for 5.4.28
66008778.296634 - 66008778.296572 = 0.000062 1444595103.296709 - 1444595103.296657 = 0.000052
Output for 5.4.27
66008778.660131 - 66008778.660069 = 0.000062 1444595103.660207 - 1444595103.660154 = 0.000053
Output for 5.4.26
66008779.065019 - 66008779.064956 = 0.000063 1444595104.065094 - 1444595104.065042 = 0.000052
Output for 5.4.25
66008779.402882 - 66008779.402819 = 0.000063 1444595104.402957 - 1444595104.402904 = 0.000053
Output for 5.4.24
66008779.734472 - 66008779.734406 = 0.000066 1444595104.734549 - 1444595104.734494 = 0.000055
Output for 5.4.23
66008780.090582 - 66008780.090520 = 0.000062 1444595105.090659 - 1444595105.090605 = 0.000054
Output for 5.4.22
66008780.397607 - 66008780.397545 = 0.000062 1444595105.397683 - 1444595105.397632 = 0.000051
Output for 5.4.21
66008780.705468 - 66008780.705408 = 0.000060 1444595105.705543 - 1444595105.705492 = 0.000051
Output for 5.4.20
66008780.997756 - 66008780.997692 = 0.000064 1444595105.997840 - 1444595105.997779 = 0.000061
Output for 5.4.19
66008781.322030 - 66008781.321969 = 0.000061 1444595106.322106 - 1444595106.322054 = 0.000052
Output for 5.4.18
66008781.647106 - 66008781.647040 = 0.000066 1444595106.647197 - 1444595106.647133 = 0.000064
Output for 5.4.17
66008782.001516 - 66008782.001454 = 0.000062 1444595107.001595 - 1444595107.001543 = 0.000052
Output for 5.4.16
66008782.350826 - 66008782.350765 = 0.000061 1444595107.350902 - 1444595107.350850 = 0.000052
Output for 5.4.15
66008782.661702 - 66008782.661639 = 0.000063 1444595107.661776 - 1444595107.661724 = 0.000052
Output for 5.4.14
66008782.967984 - 66008782.967924 = 0.000060 1444595107.968062 - 1444595107.968005 = 0.000057
Output for 5.4.13
66008783.261145 - 66008783.261083 = 0.000062 1444595108.261217 - 1444595108.261164 = 0.000053
Output for 5.4.12
66008783.591673 - 66008783.591611 = 0.000062 1444595108.591763 - 1444595108.591696 = 0.000067
Output for 5.4.11
66008783.881412 - 66008783.881337 = 0.000075 1444595108.881488 - 1444595108.881435 = 0.000053
Output for 5.4.10
66008784.202424 - 66008784.202362 = 0.000062 1444595109.202503 - 1444595109.202449 = 0.000054
Output for 5.4.9
66008784.600833 - 66008784.600772 = 0.000061 1444595109.600919 - 1444595109.600856 = 0.000063
Output for 5.4.8
66008784.982828 - 66008784.982765 = 0.000063 1444595109.982905 - 1444595109.982852 = 0.000053
Output for 5.4.7
66008785.356979 - 66008785.356908 = 0.000071 1444595110.357064 - 1444595110.357007 = 0.000057
Output for 5.4.6
66008785.742928 - 66008785.742868 = 0.000060 1444595110.743002 - 1444595110.742949 = 0.000053
Output for 5.4.5
66008786.096716 - 66008786.096653 = 0.000063 1444595111.096789 - 1444595111.096735 = 0.000054
Output for 5.4.4
66008786.468169 - 66008786.468108 = 0.000061 1444595111.468258 - 1444595111.468189 = 0.000069
Output for 5.4.3
66008786.849117 - 66008786.849056 = 0.000061 1444595111.849193 - 1444595111.849137 = 0.000056
Output for 5.4.2
66008787.200263 - 66008787.200202 = 0.000061 1444595112.200337 - 1444595112.200283 = 0.000054
Output for 5.4.1
66008787.577932 - 66008787.577871 = 0.000061 1444595112.578007 - 1444595112.577952 = 0.000055
Output for 5.4.0
66008787.907115 - 66008787.907052 = 0.000063 1444595112.907205 - 1444595112.907135 = 0.000070
Output for 5.3.29
66008788.296960 - 66008788.296875 = 0.000085 1444595113.297069 - 1444595113.296980 = 0.000089
Output for 5.3.28
66008788.732781 - 66008788.732711 = 0.000070 1444595113.732862 - 1444595113.732800 = 0.000062
Output for 5.3.27
66008789.117394 - 66008789.117323 = 0.000071 1444595114.117478 - 1444595114.117415 = 0.000063
Output for 5.3.26
66008789.503096 - 66008789.503026 = 0.000070 1444595114.503180 - 1444595114.503117 = 0.000063
Output for 5.3.25
66008789.883243 - 66008789.883173 = 0.000070 1444595114.883327 - 1444595114.883264 = 0.000063
Output for 5.3.24
66008790.260317 - 66008790.260247 = 0.000070 1444595115.260400 - 1444595115.260337 = 0.000063
Output for 5.3.23
66008790.708266 - 66008790.708195 = 0.000071 1444595115.708349 - 1444595115.708286 = 0.000063
Output for 5.3.22
66008791.059387 - 66008791.059315 = 0.000072 1444595116.059471 - 1444595116.059408 = 0.000063
Output for 5.3.21
66008791.415132 - 66008791.415062 = 0.000070 1444595116.415216 - 1444595116.415152 = 0.000064
Output for 5.3.20
66008791.772178 - 66008791.772108 = 0.000070 1444595116.772262 - 1444595116.772199 = 0.000063
Output for 5.3.19
66008792.127275 - 66008792.127203 = 0.000072 1444595117.127361 - 1444595117.127296 = 0.000065
Output for 5.3.18
66008792.530639 - 66008792.530567 = 0.000072 1444595117.530724 - 1444595117.530660 = 0.000064
Output for 5.3.17
66008792.978947 - 66008792.978876 = 0.000071 1444595117.979032 - 1444595117.978969 = 0.000063
Output for 5.3.16
66008793.366674 - 66008793.366603 = 0.000071 1444595118.366765 - 1444595118.366695 = 0.000070
Output for 5.3.15
66008793.762416 - 66008793.762344 = 0.000072 1444595118.762504 - 1444595118.762440 = 0.000064
Output for 5.3.14
66008794.146454 - 66008794.146379 = 0.000075 1444595119.146556 - 1444595119.146476 = 0.000080
Output for 5.3.13
66008794.566487 - 66008794.566369 = 0.000118 1444595119.566641 - 1444595119.566521 = 0.000120
Output for 5.3.12
66008794.985051 - 66008794.984978 = 0.000073 1444595119.985156 - 1444595119.985077 = 0.000079
Output for 5.3.11
66008795.411226 - 66008795.411091 = 0.000135 1444595120.411328 - 1444595120.411260 = 0.000068
Output for 5.3.10
66008795.799636 - 66008795.799562 = 0.000074 1444595120.799723 - 1444595120.799659 = 0.000064
Output for 5.3.9
66008796.159164 - 66008796.159093 = 0.000071 1444595121.159249 - 1444595121.159187 = 0.000062
Output for 5.3.8
66008796.536878 - 66008796.536804 = 0.000074 1444595121.536965 - 1444595121.536901 = 0.000064
Output for 5.3.7
66008796.859899 - 66008796.859825 = 0.000074 1444595121.859986 - 1444595121.859922 = 0.000064
Output for 5.3.6
66008797.226010 - 66008797.225937 = 0.000073 1444595122.226104 - 1444595122.226031 = 0.000073
Output for 5.3.5
66008797.596211 - 66008797.596140 = 0.000071 1444595122.596297 - 1444595122.596233 = 0.000064
Output for 5.3.4
66008797.986090 - 66008797.986018 = 0.000072 1444595122.986175 - 1444595122.986111 = 0.000064
Output for 5.3.3
66008798.414255 - 66008798.414184 = 0.000071 1444595123.414399 - 1444595123.414276 = 0.000123
Output for 5.3.2
66008798.822180 - 66008798.822108 = 0.000072 1444595123.822268 - 1444595123.822203 = 0.000065
Output for 5.3.1
66008799.182778 - 66008799.182707 = 0.000071 1444595124.182872 - 1444595124.182798 = 0.000074
Output for 5.3.0
66008799.534537 - 66008799.534467 = 0.000070 1444595124.534619 - 1444595124.534557 = 0.000062
Output for 5.2.17
66008799.841756 - 66008799.841647 = 0.000109 1444595124.841879 - 1444595124.841779 = 0.000100
Output for 5.2.16
66008800.169990 - 66008800.169882 = 0.000108 1444595125.170136 - 1444595125.170018 = 0.000118
Output for 5.2.15
66008800.482217 - 66008800.482109 = 0.000108 1444595125.482336 - 1444595125.482239 = 0.000097
Output for 5.2.14
66008800.788536 - 66008800.788425 = 0.000111 1444595125.788656 - 1444595125.788556 = 0.000100
Output for 5.2.13
66008801.123048 - 66008801.122941 = 0.000107 1444595126.123176 - 1444595126.123069 = 0.000107
Output for 5.2.12
66008801.446045 - 66008801.445941 = 0.000104 1444595126.446161 - 1444595126.446066 = 0.000095
Output for 5.2.11
66008801.751322 - 66008801.751215 = 0.000107 1444595126.751466 - 1444595126.751344 = 0.000122
Output for 5.2.10
66008802.083068 - 66008802.082962 = 0.000106 1444595127.083198 - 1444595127.083089 = 0.000109
Output for 5.2.9
66008802.413162 - 66008802.413055 = 0.000107 1444595127.413282 - 1444595127.413182 = 0.000100
Output for 5.2.8
66008802.805342 - 66008802.805234 = 0.000108 1444595127.805462 - 1444595127.805362 = 0.000100
Output for 5.2.7
66008803.144730 - 66008803.144532 = 0.000198 1444595128.144969 - 1444595128.144762 = 0.000207
Output for 5.2.6
66008803.477103 - 66008803.476997 = 0.000106 1444595128.477221 - 1444595128.477124 = 0.000097
Output for 5.2.5
66008803.810500 - 66008803.810390 = 0.000110 1444595128.810621 - 1444595128.810520 = 0.000101
Output for 5.2.4
66008804.065074 - 66008804.064885 = 0.000189 1444595129.065303 - 1444595129.065101 = 0.000202
Output for 5.2.3
66008804.341575 - 66008804.341468 = 0.000107 1444595129.341694 - 1444595129.341594 = 0.000100
Output for 5.2.2
66008804.629287 - 66008804.629175 = 0.000112 1444595129.629414 - 1444595129.629304 = 0.000110
Output for 5.2.1
66008804.917024 - 66008804.916922 = 0.000102 1444595129.917136 - 1444595129.917040 = 0.000096
Output for 5.2.0
66008805.205451 - 66008805.205339 = 0.000112 1444595130.205597 - 1444595130.205469 = 0.000128
Output for 5.1.6
66008805.507784 - 66008805.507680 = 0.000104 1444595130.507899 - 1444595130.507803 = 0.000096
Output for 5.1.5
66008805.789285 - 66008805.789180 = 0.000105 1444595130.789412 - 1444595130.789303 = 0.000109
Output for 5.1.4
66008806.063832 - 66008806.063727 = 0.000105 1444595131.063969 - 1444595131.063853 = 0.000116
Output for 5.1.3
66008806.342691 - 66008806.342552 = 0.000139 1444595131.342811 - 1444595131.342714 = 0.000097
Output for 5.1.2
66008806.666497 - 66008806.666394 = 0.000103 1444595131.666612 - 1444595131.666518 = 0.000094
Output for 5.1.1
66008806.950512 - 66008806.950411 = 0.000101 1444595131.950639 - 1444595131.950532 = 0.000107
Output for 5.1.0
66008807.206597 - 66008807.206497 = 0.000100 1444595132.206713 - 1444595132.206617 = 0.000096
Output for 5.0.5
66008807.405306 - 66008807.405115 = 0.000191 1444595132.405509 - 1444595132.405327 = 0.000182
Output for 5.0.4
66008807.594746 - 66008807.594505 = 0.000241 1444595132.594996 - 1444595132.594780 = 0.000216
Output for 5.0.3
66008807.789329 - 66008807.789164 = 0.000165 1444595132.789508 - 1444595132.789348 = 0.000160
Output for 5.0.2
- = - =
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/g1822 on line 13 - = PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/g1822 on line 19 - = PHP_EOL
Output for 4.4.9
66008808.428848 - 66008808.428682 = 0.000166 0.429050 - 0.428867 = 0.000183
Output for 4.4.8
66008808.618400 - 66008808.618181 = 0.000219 0.618650 - 0.618421 = 0.000229
Output for 4.4.7
66008808.777810 - 66008808.777646 = 0.000164 0.778000 - 0.777828 = 0.000172
Output for 4.4.6
66008808.960369 - 66008808.960153 = 0.000216 0.960599 - 0.960391 = 0.000208
Output for 4.4.5
66008809.123348 - 66008809.122986 = 0.000362 0.123586 - 0.123373 = 0.000213
Output for 4.4.4
66008809.298892 - 66008809.298723 = 0.000169 0.299068 - 0.298910 = 0.000158
Output for 4.4.3
66008809.482629 - 66008809.482331 = 0.000298 0.482968 - 0.482658 = 0.000310
Output for 4.4.2
66008809.661031 - 66008809.660844 = 0.000187 0.661232 - 0.661055 = 0.000177
Output for 4.4.1
66008809.862690 - 66008809.862514 = 0.000176 0.862880 - 0.862711 = 0.000169
Output for 4.4.0
66008810.044048 - 66008810.043883 = 0.000165 0.044231 - 0.044071 = 0.000160
Output for 4.3.11
66008810.230486 - 66008810.230285 = 0.000201 0.230703 - 0.230512 = 0.000191
Output for 4.3.10
66008810.422246 - 66008810.422031 = 0.000215 0.422472 - 0.422271 = 0.000201