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); $start = microtime(true); for ($i=0;$i<1000;$i++) { doNothing(); } $end = microtime(true); echo sprintf('%F', $end) . ' - ' . sprintf('%F', $start) . ' = ' . sprintf('%F', $end - $start);
Output for 7.1.0
516.003799 - 516.003774 = 0.0000251378586841.003834 - 1378586841.003816 = 0.000018
Output for 7.0.14
516.003864 - 516.003816 = 0.0000481378586841.003941 - 1378586841.003889 = 0.000052
Output for 7.0.12
516.003921 - 516.003877 = 0.0000441378586841.003981 - 1378586841.003945 = 0.000036
Output for 7.0.6
85252335.264608 - 85252335.264570 = 0.0000381463838660.264667 - 1463838660.264634 = 0.000033
Output for 7.0.5
82047116.629292 - 82047116.629247 = 0.0000451460633441.629365 - 1460633441.629325 = 0.000040
Output for 7.0.4
79063555.044513 - 79063555.044478 = 0.0000351457649880.044570 - 1457649880.044543 = 0.000027
Output for 7.0.3
79761706.091703 - 79761706.091649 = 0.0000541458348031.091776 - 1458348031.091734 = 0.000042
Output for 7.0.2
80128532.717207 - 80128532.717168 = 0.0000391458714857.717261 - 1458714857.717232 = 0.000029
Output for 7.0.1
80225663.146587 - 80225663.146559 = 0.0000281458811988.146629 - 1458811988.146609 = 0.000020
Output for 7.0.0
80487593.233771 - 80487593.233742 = 0.0000291459073918.233813 - 1459073918.233793 = 0.000020
Output for hhvm-3.12.0
79333311.852716 - 79333311.852627 = 0.0000891457919636.852839 - 1457919636.852759 = 0.000080
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.28
516.004772 - 516.004649 = 0.0001231378586841.004915 - 1378586841.004804 = 0.000111
Output for 5.6.21
83620233.271134 - 83620233.271036 = 0.0000981462206558.271254 - 1462206558.271165 = 0.000089
Output for 5.6.20
81691049.329256 - 81691049.329158 = 0.0000981460277374.329388 - 1460277374.329287 = 0.000101
Output for 5.6.19
78833843.852738 - 78833843.852676 = 0.0000621457420168.852815 - 1457420168.852759 = 0.000056
Output for 5.6.18
79471437.478509 - 79471437.478444 = 0.0000651458057762.478585 - 1458057762.478529 = 0.000056
Output for 5.6.17
79858942.216106 - 79858942.216029 = 0.0000771458445267.216195 - 1458445267.216127 = 0.000068
Output for 5.6.16
80576997.148832 - 80576997.148725 = 0.0001071459163322.148958 - 1459163322.148867 = 0.000091
Output for 5.6.15
80666298.838326 - 80666298.838261 = 0.0000651459252623.838403 - 1459252623.838345 = 0.000058
Output for 5.6.14
82069317.446477 - 82069317.446401 = 0.0000761460655642.446571 - 1460655642.446502 = 0.000069
Output for 5.6.13
82158344.074884 - 82158344.074785 = 0.0000991460744669.075006 - 1460744669.074918 = 0.000088
Output for 5.6.12
82557775.452186 - 82557775.452091 = 0.0000951461144100.452301 - 1461144100.452218 = 0.000083
Output for 5.6.11
82924926.201795 - 82924926.201718 = 0.0000771461511251.201891 - 1461511251.201821 = 0.000070
Output for 5.6.10
83018874.158512 - 83018874.158404 = 0.0001081461605199.158618 - 1461605199.158544 = 0.000074
Output for 5.6.9
83212935.649846 - 83212935.649696 = 0.0001501461799260.650038 - 1461799260.649897 = 0.000141
Output for 5.6.8
83414334.340244 - 83414334.340180 = 0.0000641462000659.340322 - 1462000659.340266 = 0.000056
Output for 5.5.35
85419094.806355 - 85419094.806257 = 0.0000981464005419.806495 - 1464005419.806386 = 0.000109
Output for 5.5.34
81785450.554438 - 81785450.554336 = 0.0001021460371775.554568 - 1460371775.554469 = 0.000099
Output for 5.5.33
78931619.971680 - 78931619.971579 = 0.0001011457517944.971783 - 1457517944.971709 = 0.000074
Output for 5.5.32
79658758.189897 - 79658758.189831 = 0.0000661458245083.189974 - 1458245083.189919 = 0.000055
Output for 5.5.31
79957017.732524 - 79957017.732425 = 0.0000991458543342.732649 - 1458543342.732556 = 0.000093
Output for 5.5.30
80932118.489512 - 80932118.489421 = 0.0000911459518443.489634 - 1459518443.489539 = 0.000095
Output for 5.5.29
82295872.129439 - 82295872.129353 = 0.0000861460882197.129543 - 1460882197.129466 = 0.000077
Output for 5.5.28
82654582.398483 - 82654582.398424 = 0.0000591461240907.398558 - 1461240907.398504 = 0.000054
Output for 5.5.27
82746592.283570 - 82746592.283483 = 0.0000871461332917.283676 - 1461332917.283594 = 0.000082
Output for 5.5.26
83115073.539809 - 83115073.539723 = 0.0000861461701398.539915 - 1461701398.539837 = 0.000078
Output for 5.5.25
83314864.474022 - 83314864.473927 = 0.0000951461901189.474149 - 1461901189.474053 = 0.000096
Output for 5.5.24
85515458.566386 - 85515458.566296 = 0.0000901464101783.566510 - 1464101783.566414 = 0.000096
Output for 5.4.45
77337426.436055 - 77337426.435959 = 0.0000961455923751.436169 - 1455923751.436086 = 0.000083
Output for 5.4.44
77337427.080809 - 77337427.080708 = 0.0001011455923752.080926 - 1455923752.080839 = 0.000087
Output for 5.4.43
77337428.044620 - 77337428.044525 = 0.0000951455923753.044722 - 1455923753.044646 = 0.000076
Output for 5.4.42
77337428.187333 - 77337428.187269 = 0.0000641455923753.187407 - 1455923753.187353 = 0.000054
Output for 5.4.41
77337429.126367 - 77337429.126270 = 0.0000971455923754.126477 - 1455923754.126391 = 0.000086
Output for 5.4.40
77337429.777340 - 77337429.777279 = 0.0000611455923754.777411 - 1455923754.777358 = 0.000053
Output for 5.4.39
77337430.300530 - 77337430.300462 = 0.0000681455923755.300611 - 1455923755.300553 = 0.000058
Output for 5.4.38
77337430.689937 - 77337430.689836 = 0.0001011455923755.690053 - 1455923755.689965 = 0.000088
Output for 5.4.37
77337431.439842 - 77337431.439740 = 0.0001021455923756.439960 - 1455923756.439871 = 0.000089
Output for 5.4.36
77337432.035824 - 77337432.035737 = 0.0000871455923757.035927 - 1455923757.035854 = 0.000073
Output for 5.4.35
77337432.592247 - 77337432.592151 = 0.0000961455923757.592361 - 1455923757.592277 = 0.000084
Output for 5.4.34
77337433.074285 - 77337433.074177 = 0.0001081455923758.074418 - 1455923758.074318 = 0.000100
Output for 5.4.32
77337433.969530 - 77337433.969434 = 0.0000961455923758.969644 - 1455923758.969561 = 0.000083
Output for 5.4.31
77337434.277999 - 77337434.277928 = 0.0000711455923759.278096 - 1455923759.278022 = 0.000074
Output for 5.4.30
77337434.795403 - 77337434.795309 = 0.0000941455923759.795529 - 1455923759.795434 = 0.000095
Output for 5.4.29
77337434.978074 - 77337434.977972 = 0.0001021455923759.978195 - 1455923759.978106 = 0.000089
Output for 5.4.28
77337435.323361 - 77337435.323277 = 0.0000841455923760.323444 - 1455923760.323385 = 0.000059
Output for 5.4.27
77337435.654120 - 77337435.654017 = 0.0001031455923760.654240 - 1455923760.654151 = 0.000089
Output for 5.4.26
77337435.977874 - 77337435.977797 = 0.0000771455923760.977959 - 1455923760.977896 = 0.000063
Output for 5.4.25
77337436.516986 - 77337436.516922 = 0.0000641455923761.517061 - 1455923761.517008 = 0.000053
Output for 5.4.24
77337436.803641 - 77337436.803579 = 0.0000621455923761.803714 - 1455923761.803661 = 0.000053
Output for 5.4.23
77337436.941122 - 77337436.941047 = 0.0000751455923761.941196 - 1455923761.941143 = 0.000053
Output for 5.4.22
77337437.515645 - 77337437.515582 = 0.0000631455923762.515717 - 1455923762.515664 = 0.000053
Output for 5.4.21
77337437.713055 - 77337437.712992 = 0.0000631455923762.713127 - 1455923762.713074 = 0.000053
Output for 5.4.20
77337437.997247 - 77337437.997181 = 0.0000661455923762.997324 - 1455923762.997267 = 0.000057
Output for 5.4.19
77337438.407007 - 77337438.406948 = 0.0000591455923763.407078 - 1455923763.407026 = 0.000052
Output for 5.4.18
77337438.691441 - 77337438.691379 = 0.0000621455923763.691511 - 1455923763.691459 = 0.000052
Output for 5.4.17
77337439.100961 - 77337439.100902 = 0.0000591455923764.101031 - 1455923764.100979 = 0.000052
Output for 5.4.16
77337439.371729 - 77337439.371667 = 0.0000621455923764.371800 - 1455923764.371748 = 0.000052
Output for 5.4.15
77337439.772509 - 77337439.772448 = 0.0000611455923764.772595 - 1455923764.772528 = 0.000067
Output for 5.4.14
77337439.958138 - 77337439.958070 = 0.0000681455923764.958212 - 1455923764.958159 = 0.000053
Output for 5.4.13
77337440.225493 - 77337440.225432 = 0.0000611455923765.225564 - 1455923765.225512 = 0.000052
Output for 5.4.12
77337440.493162 - 77337440.493102 = 0.0000601455923765.493231 - 1455923765.493180 = 0.000051
Output for 5.4.11
77337440.898501 - 77337440.898440 = 0.0000611455923765.898572 - 1455923765.898519 = 0.000053
Output for 5.4.10
77337441.196209 - 77337441.196149 = 0.0000601455923766.196281 - 1455923766.196229 = 0.000052
Output for 5.4.9
77337441.327305 - 77337441.327245 = 0.0000601455923766.327375 - 1455923766.327324 = 0.000051
Output for 5.4.8
77337441.726161 - 77337441.726101 = 0.0000601455923766.726230 - 1455923766.726178 = 0.000052
Output for 5.4.7
77337441.994980 - 77337441.994920 = 0.0000601455923766.995049 - 1455923766.994997 = 0.000052
Output for 5.4.6
77337442.130474 - 77337442.130414 = 0.0000601455923767.130543 - 1455923767.130492 = 0.000051
Output for 5.4.5
77337442.597330 - 77337442.597253 = 0.0000771455923767.597400 - 1455923767.597348 = 0.000052
Output for 5.4.4
77337442.865321 - 77337442.865260 = 0.0000611455923767.865391 - 1455923767.865339 = 0.000052
Output for 5.4.3
77337443.056272 - 77337443.056211 = 0.0000611455923768.056343 - 1455923768.056290 = 0.000053
Output for 5.4.2
77337443.578838 - 77337443.578750 = 0.0000881455923768.578949 - 1455923768.578862 = 0.000087
Output for 5.4.1
77337443.878933 - 77337443.878859 = 0.0000741455923768.879019 - 1455923768.878957 = 0.000062
Output for 5.4.0
77337444.058027 - 77337444.057960 = 0.0000671455923769.058116 - 1455923769.058050 = 0.000066
Output for 5.3.29
77337434.131977 - 77337434.131885 = 0.0000921455923759.132098 - 1455923759.132002 = 0.000096
Output for 5.3.28
77337437.237698 - 77337437.237628 = 0.0000701455923762.237802 - 1455923762.237731 = 0.000071
Output for 5.3.27
77337438.967730 - 77337438.967656 = 0.0000741455923763.967811 - 1455923763.967750 = 0.000061
Output for 5.3.26
77337439.504650 - 77337439.504581 = 0.0000691455923764.504730 - 1455923764.504668 = 0.000062
Output for 5.3.25
77337439.642429 - 77337439.642360 = 0.0000691455923764.642511 - 1455923764.642449 = 0.000062
Output for 5.3.24
77337440.092617 - 77337440.092547 = 0.0000701455923765.092700 - 1455923765.092637 = 0.000063
Output for 5.3.23
77337440.364451 - 77337440.364369 = 0.0000821455923765.364534 - 1455923765.364471 = 0.000063
Output for 5.3.22
77337440.627193 - 77337440.627121 = 0.0000721455923765.627274 - 1455923765.627211 = 0.000063
Output for 5.3.21
77337440.761446 - 77337440.761377 = 0.0000691455923765.761533 - 1455923765.761466 = 0.000067
Output for 5.3.20
77337441.057190 - 77337441.057118 = 0.0000721455923766.057301 - 1455923766.057210 = 0.000091
Output for 5.3.19
77337441.461490 - 77337441.461420 = 0.0000701455923766.461585 - 1455923766.461510 = 0.000075
Output for 5.3.18
77337441.595591 - 77337441.595515 = 0.0000761455923766.595675 - 1455923766.595612 = 0.000063
Output for 5.3.17
77337441.860042 - 77337441.859973 = 0.0000691455923766.860124 - 1455923766.860062 = 0.000062
Output for 5.3.16
77337442.277555 - 77337442.277486 = 0.0000691455923767.277636 - 1455923767.277574 = 0.000062
Output for 5.3.15
77337442.410208 - 77337442.410138 = 0.0000701455923767.410292 - 1455923767.410228 = 0.000064
Output for 5.3.14
77337442.731656 - 77337442.731583 = 0.0000731455923767.731758 - 1455923767.731682 = 0.000076
Output for 5.3.13
77337443.238308 - 77337443.238192 = 0.0001161455923768.238440 - 1455923768.238335 = 0.000105
Output for 5.3.12
77337443.419533 - 77337443.419419 = 0.0001141455923768.419667 - 1455923768.419563 = 0.000104
Output for 5.3.11
77337443.731374 - 77337443.731290 = 0.0000841455923768.731473 - 1455923768.731399 = 0.000074
Output for 5.3.10
77337444.230221 - 77337444.230134 = 0.0000871455923769.230327 - 1455923769.230247 = 0.000080
Output for 5.3.9
77337444.412303 - 77337444.412186 = 0.0001171455923769.412444 - 1455923769.412336 = 0.000108
Output for 5.3.8
77337444.585747 - 77337444.585640 = 0.0001071455923769.585874 - 1455923769.585778 = 0.000096
Output for 5.3.7
77337444.766111 - 77337444.765992 = 0.0001191455923769.766249 - 1455923769.766143 = 0.000106
Output for 5.3.6
77337444.916832 - 77337444.916703 = 0.0001291455923769.916992 - 1455923769.916866 = 0.000126
Output for 5.3.5
77337445.097512 - 77337445.097393 = 0.0001191455923770.097652 - 1455923770.097545 = 0.000107
Output for 5.3.4
77337445.613869 - 77337445.613746 = 0.0001231455923770.614037 - 1455923770.613905 = 0.000132
Output for 5.3.3
77337445.970814 - 77337445.970696 = 0.0001181455923770.970980 - 1455923770.970848 = 0.000132
Output for 5.3.2
77337446.352811 - 77337446.352695 = 0.0001161455923771.352952 - 1455923771.352844 = 0.000108
Output for 5.3.1
77337446.832002 - 77337446.831914 = 0.0000881455923771.832123 - 1455923771.832026 = 0.000097
Output for 5.3.0
77337447.227995 - 77337447.227874 = 0.0001211455923772.228161 - 1455923772.228026 = 0.000135
Output for 5.2.17
77337445.272678 - 77337445.272482 = 0.0001961455923770.272896 - 1455923770.272715 = 0.000181
Output for 5.2.16
77337445.435478 - 77337445.435276 = 0.0002021455923770.435696 - 1455923770.435511 = 0.000185
Output for 5.2.15
77337445.783353 - 77337445.783158 = 0.0001951455923770.783565 - 1455923770.783385 = 0.000180
Output for 5.2.14
77337446.181283 - 77337446.181061 = 0.0002221455923771.181500 - 1455923771.181314 = 0.000186
Output for 5.2.13
77337446.518896 - 77337446.518703 = 0.0001931455923771.519124 - 1455923771.518929 = 0.000195
Output for 5.2.12
77337446.683364 - 77337446.683172 = 0.0001921455923771.683608 - 1455923771.683396 = 0.000212
Output for 5.2.11
77337446.992997 - 77337446.992823 = 0.0001741455923771.993191 - 1455923771.993029 = 0.000162
Output for 5.2.10
77337447.394873 - 77337447.394679 = 0.0001941455923772.395090 - 1455923772.394910 = 0.000180
Output for 5.2.9
77337447.555112 - 77337447.554903 = 0.0002091455923772.555345 - 1455923772.555146 = 0.000199
Output for 5.2.8
77337447.725318 - 77337447.725121 = 0.0001971455923772.725550 - 1455923772.725350 = 0.000200
Output for 5.2.7
77337447.872386 - 77337447.872238 = 0.0001481455923772.872565 - 1455923772.872412 = 0.000153
Output for 5.2.6
77337448.228686 - 77337448.228503 = 0.0001831455923773.228890 - 1455923773.228717 = 0.000173
Output for 5.2.5
77337448.474614 - 77337448.474508 = 0.0001061455923773.474732 - 1455923773.474633 = 0.000099
Output for 5.2.4
77337448.606749 - 77337448.606642 = 0.0001071455923773.606880 - 1455923773.606770 = 0.000110
Output for 5.2.3
77337448.810482 - 77337448.810307 = 0.0001751455923773.810673 - 1455923773.810512 = 0.000161
Output for 5.2.2
77337448.942369 - 77337448.942250 = 0.0001191455923773.942511 - 1455923773.942390 = 0.000121
Output for 5.2.1
77337449.538305 - 77337449.538117 = 0.0001881455923774.538508 - 1455923774.538333 = 0.000175
Output for 5.2.0
77337449.706064 - 77337449.705865 = 0.0001991455923774.706282 - 1455923774.706096 = 0.000186
Output for 5.1.6
77337449.851038 - 77337449.850858 = 0.0001801455923774.851261 - 1455923774.851084 = 0.000177
Output for 5.1.5
77337450.159807 - 77337450.159642 = 0.0001651455923775.160007 - 1455923775.159837 = 0.000170
Output for 5.1.4
77337450.468451 - 77337450.468252 = 0.0001991455923775.468691 - 1455923775.468487 = 0.000204
Output for 5.1.3
77337450.626455 - 77337450.626264 = 0.0001911455923775.626669 - 1455923775.626491 = 0.000178
Output for 5.1.2
77337450.758169 - 77337450.758053 = 0.0001161455923775.758297 - 1455923775.758193 = 0.000104
Output for 5.1.1
77337451.032087 - 77337451.031893 = 0.0001941455923776.032295 - 1455923776.032121 = 0.000174
Output for 5.1.0
77337451.177620 - 77337451.177466 = 0.0001541455923776.177799 - 1455923776.177649 = 0.000150
Output for 5.0.5
77337451.442759 - 77337451.442478 = 0.0002811455923776.443060 - 1455923776.442790 = 0.000270
Output for 5.0.4
77337451.803930 - 77337451.803602 = 0.0003281455923776.804282 - 1455923776.803964 = 0.000318
Output for 5.0.3
77337452.128376 - 77337452.128088 = 0.0002881455923777.128685 - 1455923777.128409 = 0.000276
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.2
- = - =
Output for 4.4.9
77337447.990746 - 77337447.990485 = 0.0002610.990989 - 0.990781 = 0.000208
Output for 4.4.8
77337448.346897 - 77337448.346717 = 0.0001800.347088 - 0.346919 = 0.000169
Output for 4.4.7
77337449.077635 - 77337449.076840 = 0.0007950.078153 - 0.077687 = 0.000466
Output for 4.4.6
77337449.254254 - 77337449.254012 = 0.0002420.254547 - 0.254279 = 0.000268
Output for 4.4.5
77337449.373168 - 77337449.372947 = 0.0002210.373406 - 0.373192 = 0.000214
Output for 4.4.4
77337450.008164 - 77337450.007905 = 0.0002590.008438 - 0.008190 = 0.000248
Output for 4.4.3
77337450.289359 - 77337450.289110 = 0.0002490.289622 - 0.289385 = 0.000237
Output for 4.4.2
77337450.874070 - 77337450.873906 = 0.0001640.874246 - 0.874089 = 0.000157
Output for 4.4.1
77337451.307332 - 77337451.307014 = 0.0003180.307666 - 0.307365 = 0.000301
Output for 4.4.0
77337451.612135 - 77337451.611818 = 0.0003170.612474 - 0.612170 = 0.000304
Output for 4.3.11
77337451.950077 - 77337451.949747 = 0.0003300.950431 - 0.950113 = 0.000318
Output for 4.3.10
77337452.263076 - 77337452.262752 = 0.0003240.263445 - 0.263112 = 0.000333