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(); var_dump($start); $start = explode(' ', $start); $start = $start[0] + $start[1]; $end = explode(' ', $end); $end = $end[0] + $end[1]; echo $end . ' - ' . $start . ' = ' . ($end - $start);
Output for 7.1.0
string(21) "0.00627500 1378586398" 1378586398.0063 - 1378586398.0063 = 4.3153762817383E-5
Output for 7.0.14
string(21) "0.00385000 1378586398" 1378586398.0039 - 1378586398.0038 = 4.4107437133789E-5
Output for 7.0.6
string(21) "0.96456600 1462253583" 1462253583.9646 - 1462253583.9646 = 4.0054321289062E-5
Output for 7.0.5
string(21) "0.84625600 1459621910" 1459621910.8463 - 1459621910.8463 = 4.1961669921875E-5
Output for 7.0.4
string(21) "0.80488700 1457588671" 1457588671.8049 - 1457588671.8049 = 3.2901763916016E-5
Output for 7.0.3
string(21) "0.61458700 1458281666" 1458281666.6146 - 1458281666.6146 = 3.0994415283203E-5
Output for 7.0.2
string(21) "0.48657600 1458647962" 1458647962.4866 - 1458647962.4866 = 2.9802322387695E-5
Output for 7.0.1
string(21) "0.26458300 1458752701" 1458752701.2646 - 1458752701.2646 = 4.1007995605469E-5
Output for 7.0.0
string(21) "0.08954100 1459017970" 1459017970.0896 - 1459017970.0895 = 3.9100646972656E-5
Output for hhvm-3.12.0
string(21) "0.70685000 1457709426" 1457709426.7069 - 1457709426.7069 = 9.3936920166016E-5
Output for hhvm-3.10.0
string(21) "0.18486600 1459308463" 1459308463.185 - 1459308463.1849 = 0.00012111663818359
Output for 5.6.28
string(21) "0.00452700 1378586398" 1378586398.0046 - 1378586398.0045 = 0.00011992454528809
Output for 5.6.21
string(21) "0.58255000 1462150250" 1462150250.5827 - 1462150250.5826 = 0.00010299682617188
Output for 5.6.20
string(21) "0.66412700 1460217559" 1460217559.6642 - 1460217559.6641 = 0.0001068115234375
Output for 5.6.19
string(21) "0.76402700 1457337268" 1457337268.7641 - 1457337268.764 = 6.3896179199219E-5
Output for 5.6.18
string(21) "0.98856200 1457988911" 1457988911.9886 - 1457988911.9886 = 6.4849853515625E-5
Output for 5.6.17
string(21) "0.03681300 1458383618" 1458383618.0369 - 1458383618.0368 = 0.00011491775512695
Output for 5.6.16
string(21) "0.11659000 1459107066" 1459107066.1167 - 1459107066.1166 = 6.5088272094727E-5
Output for 5.6.15
string(21) "0.50789000 1459196701" 1459196701.508 - 1459196701.5079 = 6.6041946411133E-5
Output for 5.6.14
string(21) "0.46263600 1459551184" 1459551184.4627 - 1459551184.4626 = 6.8902969360352E-5
Output for 5.6.13
string(21) "0.87847200 1460688897" 1460688897.8786 - 1460688897.8785 = 9.3936920166016E-5
Output for 5.6.12
string(21) "0.79496600 1461083344" 1461083344.795 - 1461083344.795 = 6.0081481933594E-5
Output for 5.6.11
string(21) "0.72712900 1461367641" 1461367641.7272 - 1461367641.7271 = 8.1062316894531E-5
Output for 5.6.10
string(21) "0.88837400 1461547186" 1461547186.8885 - 1461547186.8884 = 9.6797943115234E-5
Output for 5.6.9
string(21) "0.88217300 1461737822" 1461737822.8822 - 1461737822.8822 = 6.3896179199219E-5
Output for 5.6.8
string(21) "0.78522000 1461939261" 1461939261.7853 - 1461939261.7852 = 0.00011920928955078
Output for 5.6.7
string(21) "0.55176300 1464161207" 1464161207.5518 - 1464161207.5518 = 6.6041946411133E-5
Output for 5.5.35
string(21) "0.91098900 1463891450" 1463891450.9111 - 1463891450.911 = 6.1988830566406E-5
Output for 5.5.34
string(21) "0.19008800 1460317585" 1460317585.1902 - 1460317585.1901 = 8.6069107055664E-5
Output for 5.5.33
string(21) "0.17053000 1457455129" 1457455129.1706 - 1457455129.1705 = 6.9856643676758E-5
Output for 5.5.32
string(21) "0.99838500 1458169292" 1458169292.9984 - 1458169292.9984 = 6.2942504882812E-5
Output for 5.5.31
string(21) "0.48802700 1458480099" 1458480099.4881 - 1458480099.488 = 7.9870223999023E-5
Output for 5.5.30
string(21) "0.89033100 1459463168" 1459463168.8904 - 1459463168.8903 = 5.8889389038086E-5
Output for 5.5.29
string(21) "0.20612300 1460825994" 1460825994.2062 - 1460825994.2061 = 9.9897384643555E-5
Output for 5.5.28
string(21) "0.27142100 1461180874" 1461180874.2715 - 1461180874.2714 = 0.00010395050048828
Output for 5.5.27
string(21) "0.33874700 1461275941" 1461275941.3388 - 1461275941.3387 = 9.2983245849609E-5
Output for 5.5.26
string(21) "0.58109300 1461642302" 1461642302.5812 - 1461642302.5811 = 6.103515625E-5
Output for 5.5.25
string(21) "0.05150000 1461836878" 1461836878.0516 - 1461836878.0515 = 8.392333984375E-5
Output for 5.5.24
string(21) "0.58900400 1464021864" 1464021864.5891 - 1464021864.589 = 9.2983245849609E-5
Output for 5.4.45
string(21) "0.06351500 1442557004" 1442557004.0636 - 1442557004.0635 = 0.00012898445129395
Output for 5.4.44
string(21) "0.98468700 1440794569" 1440794569.9849 - 1440794569.9847 = 0.00016999244689941
Output for 5.4.43
string(21) "0.43959900 1440794567" 1440794567.4397 - 1440794567.4396 = 9.4890594482422E-5
Output for 5.4.42
string(21) "0.38668600 1440794566" 1440794566.3868 - 1440794566.3867 = 0.00016283988952637
Output for 5.4.41
string(21) "0.57404300 1440794564" 1440794564.5742 - 1440794564.574 = 0.00011587142944336
Output for 5.4.40
string(21) "0.07420800 1440794562" 1440794562.0744 - 1440794562.0742 = 0.00016307830810547
Output for 5.4.39
string(21) "0.68311800 1440794561" 1440794561.6833 - 1440794561.6831 = 0.00015377998352051
Output for 5.4.38
string(21) "0.83502600 1425381886" 1425381886.8351 - 1425381886.835 = 9.4890594482422E-5
Output for 5.4.37
string(21) "0.27838700 1425381880" 1425381880.2785 - 1425381880.2784 = 9.3936920166016E-5
Output for 5.4.36
string(21) "0.92583600 1425381879" 1425381879.9259 - 1425381879.9258 = 9.5844268798828E-5
Output for 5.4.35
string(21) "0.58405100 1425381879" 1425381879.5841 - 1425381879.5841 = 9.3221664428711E-5
Output for 5.4.34
string(21) "0.24006000 1425381879" 1425381879.2402 - 1425381879.2401 = 0.00015997886657715
Output for 5.4.32
string(21) "0.47777800 1410469394" 1410469394.4779 - 1410469394.4778 = 0.00011897087097168
Output for 5.4.31
string(21) "0.86938000 1410469387" 1410469387.8695 - 1410469387.8694 = 9.7036361694336E-5
Output for 5.4.30
string(21) "0.91216200 1410469382" 1410469382.9122 - 1410469382.9122 = 7.7009201049805E-5
Output for 5.4.29
string(21) "0.48673900 1410469382" 1410469382.4868 - 1410469382.4867 = 7.1048736572266E-5
Output for 5.4.28
string(21) "0.03858300 1410469382" 1410469382.0387 - 1410469382.0386 = 6.7949295043945E-5
Output for 5.4.27
string(21) "0.40729000 1410469391" 1410469391.4074 - 1410469391.4073 = 6.7949295043945E-5
Output for 5.4.26
string(21) "0.96424500 1410469390" 1410469390.9643 - 1410469390.9642 = 6.6995620727539E-5
Output for 5.4.25
string(21) "0.07961800 1410469390" 1410469390.0797 - 1410469390.0796 = 7.0095062255859E-5
Output for 5.4.24
string(21) "0.75208600 1410469388" 1410469388.7522 - 1410469388.7521 = 7.1048736572266E-5
Output for 5.4.23
string(21) "0.58816200 1410469381" 1410469381.5882 - 1410469381.5882 = 7.0095062255859E-5
Output for 5.4.22
string(21) "0.81592700 1410469379" 1410469379.816 - 1410469379.8159 = 8.392333984375E-5
Output for 5.4.21
string(21) "0.93420400 1410469378" 1410469378.9343 - 1410469378.9342 = 6.9856643676758E-5
Output for 5.4.20
string(21) "0.04960600 1410469378" 1410469378.0497 - 1410469378.0496 = 6.8902969360352E-5
Output for 5.4.19
string(21) "0.16425400 1378586399" 1378586399.1644 - 1378586399.1643 = 0.0001060962677002
Output for 5.4.18
string(21) "0.22564300 1378586399" 1378586399.2257 - 1378586399.2256 = 0.00010514259338379
Output for 5.4.17
string(21) "0.28559600 1378586399" 1378586399.2857 - 1378586399.2856 = 0.0001070499420166
Output for 5.4.16
string(21) "0.34915600 1378586399" 1378586399.3492 - 1378586399.3492 = 8.702278137207E-5
Output for 5.4.15
string(21) "0.41258700 1378586399" 1378586399.4127 - 1378586399.4126 = 9.1075897216797E-5
Output for 5.4.14
string(21) "0.47776400 1378586399" 1378586399.4779 - 1378586399.4778 = 9.0122222900391E-5
Output for 5.4.13
string(21) "0.54508200 1378586399" 1378586399.5452 - 1378586399.5451 = 9.0837478637695E-5
Output for 5.4.12
string(21) "0.60853300 1378586399" 1378586399.6086 - 1378586399.6085 = 0.00010418891906738
Output for 5.4.11
string(21) "0.69973600 1378586399" 1378586399.6998 - 1378586399.6997 = 8.7976455688477E-5
Output for 5.4.10
string(21) "0.76164200 1378586399" 1378586399.7617 - 1378586399.7616 = 8.7976455688477E-5
Output for 5.4.9
string(21) "0.82556400 1378586399" 1378586399.8257 - 1378586399.8256 = 0.00012111663818359
Output for 5.4.8
string(21) "0.88967400 1378586399" 1378586399.8898 - 1378586399.8897 = 9.0122222900391E-5
Output for 5.4.7
string(21) "0.94968600 1378586399" 1378586399.9498 - 1378586399.9497 = 8.7976455688477E-5
Output for 5.4.6
string(21) "0.01109100 1378586400" 1378586400.0112 - 1378586400.0111 = 8.8930130004883E-5
Output for 5.4.5
string(21) "0.07749500 1378586400" 1378586400.0776 - 1378586400.0775 = 9.8943710327148E-5
Output for 5.4.4
string(21) "0.13706400 1378586400" 1378586400.1372 - 1378586400.1371 = 8.7976455688477E-5
Output for 5.4.3
string(21) "0.19830300 1378586400" 1378586400.1984 - 1378586400.1983 = 0.00010299682617188
Output for 5.4.2
string(21) "0.26436400 1378586400" 1378586400.2645 - 1378586400.2644 = 8.6069107055664E-5
Output for 5.4.1
string(21) "0.32793600 1378586400" 1378586400.3281 - 1378586400.3279 = 0.00012302398681641
Output for 5.4.0
string(21) "0.45113700 1378586400" 1378586400.4512 - 1378586400.4511 = 8.8930130004883E-5
Output for 5.3.29
string(21) "0.39875600 1410469383" 1410469383.3989 - 1410469383.3988 = 9.7990036010742E-5
Output for 5.3.28
string(21) "0.14021000 1410469381" 1410469381.1403 - 1410469381.1402 = 7.7009201049805E-5
Output for 5.3.27
string(21) "0.51791000 1378586400" 1378586400.518 - 1378586400.5179 = 0.00012588500976562
Output for 5.3.26
string(21) "0.58507900 1378586400" 1378586400.5852 - 1378586400.5851 = 0.00010395050048828
Output for 5.3.25
string(21) "0.65378100 1378586400" 1378586400.6539 - 1378586400.6538 = 0.00010514259338379
Output for 5.3.24
string(21) "0.72798800 1378586400" 1378586400.7281 - 1378586400.728 = 0.00012588500976562
Output for 5.3.23
string(21) "0.79591700 1378586400" 1378586400.796 - 1378586400.7959 = 0.00011587142944336
Output for 5.3.22
string(21) "0.86069500 1378586400" 1378586400.8608 - 1378586400.8607 = 0.0001060962677002
Output for 5.3.21
string(21) "0.92580500 1378586400" 1378586400.9259 - 1378586400.9258 = 0.00010180473327637
Output for 5.3.20
string(21) "0.98964200 1378586400" 1378586400.9897 - 1378586400.9896 = 0.00010800361633301
Output for 5.3.19
string(21) "0.05589000 1378586401" 1378586401.056 - 1378586401.0559 = 0.00011992454528809
Output for 5.3.18
string(21) "0.12380500 1378586401" 1378586401.1239 - 1378586401.1238 = 0.00010204315185547
Output for 5.3.17
string(21) "0.19098600 1378586401" 1378586401.1911 - 1378586401.191 = 0.00011706352233887
Output for 5.3.16
string(21) "0.26124600 1378586401" 1378586401.2613 - 1378586401.2612 = 0.00010299682617188
Output for 5.3.15
string(21) "0.32369100 1378586401" 1378586401.3238 - 1378586401.3237 = 0.00012516975402832
Output for 5.3.14
string(21) "0.45073300 1378586401" 1378586401.4508 - 1378586401.4507 = 0.00011396408081055
Output for 5.3.13
string(21) "0.51671000 1378586401" 1378586401.5168 - 1378586401.5167 = 0.00010395050048828
Output for 5.3.12
string(21) "0.58537100 1378586401" 1378586401.5855 - 1378586401.5854 = 0.00010108947753906
Output for 5.3.11
string(21) "0.70993000 1378586401" 1378586401.7101 - 1378586401.7099 = 0.00012397766113281
Output for 5.3.10
string(21) "0.77867100 1378586401" 1378586401.7788 - 1378586401.7787 = 0.00010395050048828
Output for 5.3.9
string(21) "0.84437100 1378586401" 1378586401.8445 - 1378586401.8444 = 0.00010395050048828
Output for 5.3.8
string(21) "0.91205600 1378586401" 1378586401.9122 - 1378586401.9121 = 0.00011301040649414
Output for 5.3.7
string(21) "0.98404100 1378586401" 1378586401.9842 - 1378586401.984 = 0.00016093254089355
Output for 5.3.6
string(21) "0.04998300 1378586402" 1378586402.0502 - 1378586402.05 = 0.0001680850982666
Output for 5.3.5
string(21) "0.11561100 1378586402" 1378586402.1157 - 1378586402.1156 = 9.9897384643555E-5
Output for 5.3.4
string(21) "0.18042400 1378586402" 1378586402.1805 - 1378586402.1804 = 0.00010013580322266
Output for 5.3.3
string(21) "0.24402100 1378586402" 1378586402.2441 - 1378586402.244 = 0.00012707710266113
Output for 5.3.2
string(21) "0.34120000 1378586402" 1378586402.3413 - 1378586402.3412 = 0.0001218318939209
Output for 5.3.1
string(21) "0.40268300 1378586402" 1378586402.4028 - 1378586402.4027 = 0.00010490417480469
Output for 5.3.0
string(21) "0.46447300 1378586402" 1378586402.4646 - 1378586402.4645 = 0.00012707710266113
Output for 5.2.17
string(21) "0.51634400 1378586402" 1378586402.5165 - 1378586402.5163 = 0.00014686584472656
Output for 5.2.16
string(21) "0.56574800 1378586402" 1378586402.5659 - 1378586402.5657 = 0.00016593933105469
Output for 5.2.15
string(21) "0.61603600 1378586402" 1378586402.6162 - 1378586402.616 = 0.00016999244689941
Output for 5.2.14
string(21) "0.66757100 1378586402" 1378586402.6678 - 1378586402.6676 = 0.00019693374633789
Output for 5.2.13
string(21) "0.71875700 1378586402" 1378586402.7189 - 1378586402.7188 = 0.00014805793762207
Output for 5.2.12
string(21) "0.76797200 1378586402" 1378586402.7682 - 1378586402.768 = 0.00025200843811035
Output for 5.2.11
string(21) "0.81842700 1378586402" 1378586402.8186 - 1378586402.8184 = 0.00014591217041016
Output for 5.2.10
string(21) "0.86920600 1378586402" 1378586402.8694 - 1378586402.8692 = 0.00014805793762207
Output for 5.2.9
string(21) "0.91835200 1378586402" 1378586402.9185 - 1378586402.9184 = 0.00014400482177734
Output for 5.2.8
string(21) "0.96997600 1378586402" 1378586402.9701 - 1378586402.97 = 0.00017309188842773
Output for 5.2.7
string(21) "0.02217200 1378586403" 1378586403.0223 - 1378586403.0222 = 0.00014710426330566
Output for 5.2.6
string(21) "0.07307500 1378586403" 1378586403.0732 - 1378586403.0731 = 0.00014591217041016
Output for 5.2.5
string(21) "0.12305800 1378586403" 1378586403.1232 - 1378586403.1231 = 0.00017786026000977
Output for 5.2.4
string(21) "0.17688200 1378586403" 1378586403.1771 - 1378586403.1769 = 0.0001680850982666
Output for 5.2.3
string(21) "0.22582200 1378586403" 1378586403.226 - 1378586403.2258 = 0.00014901161193848
Output for 5.2.2
string(21) "0.27787800 1378586403" 1378586403.278 - 1378586403.2779 = 0.00017094612121582
Output for 5.2.1
string(21) "0.32711100 1378586403" 1378586403.3273 - 1378586403.3271 = 0.00014591217041016
Output for 5.2.0
string(21) "0.37702200 1378586403" 1378586403.3772 - 1378586403.377 = 0.00015592575073242
Output for 5.1.6
string(21) "0.42134000 1378586403" 1378586403.4215 - 1378586403.4213 = 0.00014305114746094
Output for 5.1.5
string(21) "0.46640100 1378586403" 1378586403.4665 - 1378586403.4664 = 0.00014281272888184
Output for 5.1.4
string(21) "0.51123400 1378586403" 1378586403.5114 - 1378586403.5112 = 0.00014495849609375
Output for 5.1.3
string(21) "0.55990200 1378586403" 1378586403.5602 - 1378586403.5599 = 0.00025105476379395
Output for 5.1.2
string(21) "0.60823900 1378586403" 1378586403.6084 - 1378586403.6082 = 0.00014305114746094
Output for 5.1.1
string(21) "0.65587400 1378586403" 1378586403.656 - 1378586403.6559 = 0.00015401840209961
Output for 5.1.0
string(21) "0.73239300 1378586403" 1378586403.7326 - 1378586403.7324 = 0.00016999244689941
Output for 5.0.5
string(21) "0.77356600 1378586403" 1378586403.7738 - 1378586403.7736 = 0.00023603439331055
Output for 5.0.4
string(21) "0.81136400 1378586403" 1378586403.8116 - 1378586403.8114 = 0.00023698806762695
Output for 5.0.3
string(21) "0.86014300 1378586403" 1378586403.8604 - 1378586403.8601 = 0.0002131462097168
Output for 5.0.2
string(21) "0.90002500 1378586403" 1378586403.9003 - 1378586403.9 = 0.00028610229492188
Output for 5.0.1
string(21) "0.93714800 1378586403" 1378586403.9374 - 1378586403.9371 = 0.0002448558807373
Output for 5.0.0
string(21) "0.98501400 1378586403" 1378586403.9853 - 1378586403.985 = 0.0002589225769043
Output for 4.4.9
string(21) "0.01567500 1378586404" 1378586404.0159 - 1378586404.0157 = 0.00022482872009277
Output for 4.4.8
string(21) "0.04490000 1378586404" 1378586404.0452 - 1378586404.0449 = 0.00025415420532227
Output for 4.4.7
string(21) "0.07332800 1378586404" 1378586404.0735 - 1378586404.0733 = 0.00022101402282715
Output for 4.4.6
string(21) "0.10715900 1378586404" 1378586404.1074 - 1378586404.1072 = 0.00026917457580566
Output for 4.4.5
string(21) "0.13725900 1378586404" 1378586404.1375 - 1378586404.1373 = 0.00024199485778809
Output for 4.4.4
string(21) "0.17623300 1378586404" 1378586404.1765 - 1378586404.1762 = 0.00027799606323242
Output for 4.4.3
string(21) "0.20696600 1378586404" 1378586404.2073 - 1378586404.207 = 0.00030899047851562
Output for 4.4.2
string(21) "0.23836900 1378586404" 1378586404.2386 - 1378586404.2384 = 0.00022697448730469
Output for 4.4.1
string(21) "0.27069900 1378586404" 1378586404.2709 - 1378586404.2707 = 0.00023603439331055
Output for 4.4.0
string(21) "0.34328200 1378586404" 1378586404.3435 - 1378586404.3433 = 0.00021910667419434
Output for 4.3.11
string(21) "0.37190100 1378586404" 1378586404.3721 - 1378586404.3719 = 0.00023508071899414
Output for 4.3.10
string(21) "0.40094900 1378586404" 1378586404.4012 - 1378586404.4009 = 0.00023007392883301
Output for 4.3.9
string(21) "0.42885700 1378586404" 1378586404.4291 - 1378586404.4289 = 0.00026988983154297
Output for 4.3.8
string(21) "0.46674400 1378586404" 1378586404.467 - 1378586404.4667 = 0.00026106834411621
Output for 4.3.7
string(21) "0.49393200 1378586404" 1378586404.4942 - 1378586404.4939 = 0.00024008750915527
Output for 4.3.6
string(21) "0.52176700 1378586404" 1378586404.522 - 1378586404.5218 = 0.00023818016052246
Output for 4.3.5
string(21) "0.55167000 1378586404" 1378586404.552 - 1378586404.5517 = 0.00030684471130371
Output for 4.3.4
string(21) "0.59322300 1378586404" 1378586404.5934 - 1378586404.5932 = 0.00021886825561523
Output for 4.3.3
string(21) "0.62218900 1378586404" 1378586404.6224 - 1378586404.6222 = 0.00021004676818848
Output for 4.3.2
string(21) "0.65139900 1378586404" 1378586404.6517 - 1378586404.6514 = 0.00027799606323242
Output for 4.3.1
string(21) "0.67954300 1378586404" 1378586404.6798 - 1378586404.6795 = 0.0002140998840332
Output for 4.3.0
string(21) "0.38001800 1442557002" 1442557002.3803 - 1442557002.38 = 0.00024890899658203