3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $loops = 100000; $start = microtime(true); for ($i = 0; $i < $loops; $i++) { } $stop = microtime(true); echo ($stop - $start)."\n"; $start = microtime(true); for ($i = 0; $i < $loops; ++$i) { } $stop = microtime(true); echo ($stop - $start)."\n"; // Jetzt mit einem Array $someArray = array(100); $start = microtime(true); for ($i = 0; $i < count($someArray); $i++) { } $stop = microtime(true); echo ($stop - $start)."\n"; $start = microtime(true); for ($i = 0, $size = count($someArray); $i < $size; ++$i) { } $stop = microtime(true); echo ($stop - $start)."\n";
Output for 7.1.0
0.0014100074768066 0.0010001659393311 9.5367431640625E-7 1.1920928955078E-6
Output for 7.0.14
0.0033299922943115 0.00084805488586426 9.5367431640625E-7 1.1920928955078E-6
Output for 7.0.10
0.00079607963562012 0.00054192543029785 9.5367431640625E-7 0
Output for 7.0.9
0.0010428428649902 0.00075197219848633 9.5367431640625E-7 9.5367431640625E-7
Output for 7.0.8
0.0008389949798584 0.00069379806518555 9.5367431640625E-7 0
Output for 7.0.7
0.001060962677002 0.00078892707824707 9.5367431640625E-7 0
Output for 7.0.6
0.00076007843017578 0.00066089630126953 0 0
Output for 7.0.5
0.0012321472167969 0.00095582008361816 9.5367431640625E-7 0
Output for 7.0.4
0.0013167858123779 0.0010011196136475 9.5367431640625E-7 0
Output for 7.0.3
0.0014920234680176 0.00066208839416504 9.5367431640625E-7 0
Output for 7.0.2
0.00093293190002441 0.00053000450134277 9.5367431640625E-7 0
Output for 7.0.1
0.0010590553283691 0.00080204010009766 2.1457672119141E-6 9.5367431640625E-7
Output for 7.0.0
0.0011022090911865 0.00083112716674805 1.1920928955078E-6 9.5367431640625E-7
Output for hhvm-3.12.0
0.0045270919799805 0.0051658153533936 1.0967254638672E-5 9.5367431640625E-7
Output for hhvm-3.10.0
0.0056700706481934 0.0065600872039795 4.0531158447266E-6 1.1920928955078E-6
Output for 5.6.28
0.0034310817718506 0.0035719871520996 1.9073486328125E-6 0
Output for 5.6.25
0.0036020278930664 0.0021378993988037 3.0994415283203E-6 1.1920928955078E-6
Output for 5.6.24
0.0038859844207764 0.0025629997253418 1.9073486328125E-6 9.5367431640625E-7
Output for 5.6.23
0.0031278133392334 0.0025451183319092 3.0994415283203E-6 0
Output for 5.6.22
0.0036308765411377 0.0029242038726807 2.1457672119141E-6 1.9073486328125E-6
Output for 5.6.21
0.002964973449707 0.0020880699157715 2.8610229492188E-6 9.5367431640625E-7
Output for 5.6.20
0.0023529529571533 0.0018949508666992 2.8610229492188E-6 1.1920928955078E-6
Output for 5.6.19
0.0030100345611572 0.0024240016937256 3.0994415283203E-6 1.1920928955078E-6
Output for 5.6.18
0.0030190944671631 0.0024809837341309 2.8610229492188E-6 9.5367431640625E-7
Output for 5.6.17
0.0035779476165771 0.002830982208252 4.0531158447266E-6 9.5367431640625E-7
Output for 5.6.16
0.0034589767456055 0.0022718906402588 1.9073486328125E-6 9.5367431640625E-7
Output for 5.6.15
0.003248929977417 0.0027370452880859 2.1457672119141E-6 9.5367431640625E-7
Output for 5.6.14
0.003803014755249 0.0031859874725342 3.0994415283203E-6 9.5367431640625E-7
Output for 5.6.13
0.0024330615997314 0.0018129348754883 4.0531158447266E-6 0
Output for 5.6.12
0.0026340484619141 0.0021929740905762 1.9073486328125E-6 9.5367431640625E-7
Output for 5.6.11
0.0030801296234131 0.0029020309448242 3.0994415283203E-6 2.1457672119141E-6
Output for 5.6.10
0.00357985496521 0.0027561187744141 1.9073486328125E-6 9.5367431640625E-7
Output for 5.6.9
0.0032811164855957 0.0023589134216309 4.0531158447266E-6 1.1920928955078E-6
Output for 5.6.8
0.0040240287780762 0.0033771991729736 3.0994415283203E-6 1.1920928955078E-6
Output for 5.6.7
0.0034370422363281 0.0027549266815186 2.1457672119141E-6 0
Output for 5.6.6
0.002302885055542 0.0018749237060547 1.9073486328125E-6 9.5367431640625E-7
Output for 5.6.5
0.0037469863891602 0.0028409957885742 2.8610229492188E-6 9.5367431640625E-7
Output for 5.6.4
0.0029838085174561 0.0023429393768311 3.814697265625E-6 1.9073486328125E-6
Output for 5.6.3
0.0029768943786621 0.0024828910827637 5.0067901611328E-6 1.9073486328125E-6
Output for 5.6.2
0.0031278133392334 0.0025351047515869 3.0994415283203E-6 1.1920928955078E-6
Output for 5.6.1
0.0032551288604736 0.0026378631591797 1.9073486328125E-6 0
Output for 5.6.0
0.0034229755401611 0.0028908252716064 2.8610229492188E-6 1.1920928955078E-6
Output for 5.5.38
0.0032880306243896 0.0026240348815918 2.1457672119141E-6 9.5367431640625E-7
Output for 5.5.37
0.0026428699493408 0.0020427703857422 1.9073486328125E-6 9.5367431640625E-7
Output for 5.5.36
0.0038919448852539 0.0027379989624023 2.1457672119141E-6 0
Output for 5.5.35
0.0035960674285889 0.0029211044311523 4.0531158447266E-6 9.5367431640625E-7
Output for 5.5.34
0.0021860599517822 0.0017769336700439 2.8610229492188E-6 9.5367431640625E-7
Output for 5.5.33
0.0024781227111816 0.0020110607147217 2.1457672119141E-6 1.1920928955078E-6
Output for 5.5.32
0.0040388107299805 0.0029058456420898 3.0994415283203E-6 1.9073486328125E-6
Output for 5.5.31
0.0035431385040283 0.0026009082794189 2.1457672119141E-6 0
Output for 5.5.30
0.003568172454834 0.002810001373291 2.8610229492188E-6 0
Output for 5.5.29
0.0036289691925049 0.0028009414672852 1.9073486328125E-6 1.1920928955078E-6
Output for 5.5.28
0.0024130344390869 0.0018930435180664 2.1457672119141E-6 9.5367431640625E-7
Output for 5.5.27
0.0035090446472168 0.0018138885498047 2.8610229492188E-6 9.5367431640625E-7
Output for 5.5.26
0.0027940273284912 0.0020148754119873 3.0994415283203E-6 1.1920928955078E-6
Output for 5.5.25
0.003532886505127 0.0034539699554443 2.8610229492188E-6 1.9073486328125E-6
Output for 5.5.24
0.0036098957061768 0.0028960704803467 2.8610229492188E-6 9.5367431640625E-7
Output for 5.5.23
0.0032820701599121 0.002791166305542 4.0531158447266E-6 9.5367431640625E-7
Output for 5.5.22
0.0032689571380615 0.0026259422302246 3.0994415283203E-6 9.5367431640625E-7
Output for 5.5.21
0.0023088455200195 0.0019519329071045 4.0531158447266E-6 9.5367431640625E-7
Output for 5.5.20
0.0028891563415527 0.0023708343505859 4.0531158447266E-6 1.9073486328125E-6
Output for 5.5.19
0.0032219886779785 0.0027890205383301 1.9073486328125E-6 0
Output for 5.5.18
0.003471851348877 0.0026271343231201 3.0994415283203E-6 9.5367431640625E-7
Output for 5.5.16
0.0035719871520996 0.0035331249237061 3.0994415283203E-6 9.5367431640625E-7
Output for 5.5.15
0.0025269985198975 0.002068042755127 1.9073486328125E-6 1.1920928955078E-6
Output for 5.5.14
0.0032949447631836 0.0018630027770996 9.5367431640625E-7 0
Output for 5.5.13
0.0029749870300293 0.0027799606323242 1.9073486328125E-6 1.9073486328125E-6
Output for 5.5.12
0.0028860569000244 0.002331018447876 4.0531158447266E-6 9.5367431640625E-7
Output for 5.5.11
0.0033769607543945 0.0026729106903076 2.8610229492188E-6 9.5367431640625E-7
Output for 5.5.10
0.0027320384979248 0.0022461414337158 2.1457672119141E-6 0
Output for 5.5.9
0.0035960674285889 0.0035641193389893 3.0994415283203E-6 9.5367431640625E-7
Output for 5.5.8
0.0031168460845947 0.0025339126586914 4.0531158447266E-6 9.5367431640625E-7
Output for 5.5.7
0.0030169486999512 0.0024418830871582 2.1457672119141E-6 9.5367431640625E-7
Output for 5.5.6
0.0036079883575439 0.0035810470581055 2.8610229492188E-6 9.5367431640625E-7
Output for 5.5.5
0.0034110546112061 0.0029308795928955 3.0994415283203E-6 9.5367431640625E-7
Output for 5.5.4
0.0035669803619385 0.0028958320617676 2.8610229492188E-6 9.5367431640625E-7
Output for 5.5.3
0.003309965133667 0.0026280879974365 1.9073486328125E-6 9.5367431640625E-7
Output for 5.5.2
0.0037791728973389 0.0030488967895508 1.9073486328125E-6 9.5367431640625E-7
Output for 5.5.1
0.0027229785919189 0.0022859573364258 4.0531158447266E-6 0
Output for 5.5.0
0.0024399757385254 0.0020558834075928 1.9073486328125E-6 9.5367431640625E-7
Output for 5.4.45
0.0030770301818848 0.002593994140625 1.9073486328125E-6 1.9073486328125E-6
Output for 5.4.44
0.0028660297393799 0.0028121471405029 4.0531158447266E-6 9.5367431640625E-7
Output for 5.4.43
0.0029811859130859 0.0026381015777588 3.0994415283203E-6 9.5367431640625E-7
Output for 5.4.42
0.0033950805664062 0.0028750896453857 2.8610229492188E-6 2.1457672119141E-6
Output for 5.4.41
0.0028679370880127 0.0025551319122314 4.0531158447266E-6 9.5367431640625E-7
Output for 5.4.40
0.0035982131958008 0.0031499862670898 3.0994415283203E-6 2.1457672119141E-6
Output for 5.4.39
0.0037000179290771 0.0025930404663086 1.9073486328125E-6 1.1920928955078E-6
Output for 5.4.38
0.0028839111328125 0.0024030208587646 1.3828277587891E-5 1.9073486328125E-6
Output for 5.4.37
0.0022671222686768 0.0018000602722168 2.1457672119141E-6 9.5367431640625E-7
Output for 5.4.36
0.0029580593109131 0.0022730827331543 2.1457672119141E-6 9.5367431640625E-7
Output for 5.4.35
0.0035519599914551 0.0029721260070801 1.9073486328125E-6 0
Output for 5.4.34
0.0035531520843506 0.0030789375305176 4.0531158447266E-6 1.1920928955078E-6
Output for 5.4.32
0.0029268264770508 0.002061128616333 1.9073486328125E-6 9.5367431640625E-7
Output for 5.4.31
0.0039739608764648 0.0035381317138672 3.0994415283203E-6 1.1920928955078E-6
Output for 5.4.30
0.0035800933837891 0.0033040046691895 1.9073486328125E-6 1.1920928955078E-6
Output for 5.4.29
0.0037388801574707 0.0031349658966064 9.5367431640625E-7 9.5367431640625E-7
Output for 5.4.28
0.0041329860687256 0.0034670829772949 1.9073486328125E-6 0
Output for 5.4.27
0.00337815284729 0.0037200450897217 2.1457672119141E-6 1.1920928955078E-6
Output for 5.4.26
0.0040700435638428 0.0038900375366211 4.0531158447266E-6 9.5367431640625E-7
Output for 5.4.25
0.0025398731231689 0.0021331310272217 1.9073486328125E-6 0
Output for 5.4.24
0.0026760101318359 0.0021660327911377 3.0994415283203E-6 9.5367431640625E-7
Output for 5.4.23
0.0047478675842285 0.0037448406219482 5.0067901611328E-6 2.1457672119141E-6
Output for 5.4.22
0.003119945526123 0.0026118755340576 3.0994415283203E-6 2.1457672119141E-6
Output for 5.4.21
0.0037641525268555 0.0031301975250244 1.9073486328125E-6 9.5367431640625E-7
Output for 5.4.20
0.0033299922943115 0.0025579929351807 5.9604644775391E-6 0
Output for 5.4.19
0.00335693359375 0.0029590129852295 2.1457672119141E-6 9.5367431640625E-7
Output for 5.4.18
0.0036568641662598 0.0029218196868896 2.1457672119141E-6 0
Output for 5.4.17
0.0035691261291504 0.0028500556945801 1.9073486328125E-6 0
Output for 5.4.16
0.0037519931793213 0.0027167797088623 5.9604644775391E-6 0
Output for 5.4.15
0.0026249885559082 0.0020780563354492 4.0531158447266E-6 9.5367431640625E-7
Output for 5.4.14
0.0021979808807373 0.0017940998077393 2.1457672119141E-6 0
Output for 5.4.13
0.0026900768280029 0.0021169185638428 3.0994415283203E-6 1.1920928955078E-6
Output for 5.4.12
0.0021350383758545 0.0018060207366943 1.9073486328125E-6 9.5367431640625E-7
Output for 5.4.11
0.0021359920501709 0.0017979145050049 9.5367431640625E-7 9.5367431640625E-7
Output for 5.4.10
0.002795934677124 0.002622127532959 2.8610229492188E-6 9.5367431640625E-7
Output for 5.4.9
0.0021450519561768 0.0018157958984375 2.8610229492188E-6 9.5367431640625E-7
Output for 5.4.8
0.0022969245910645 0.0018749237060547 2.1457672119141E-6 0
Output for 5.4.7
0.0021638870239258 0.0020279884338379 3.0994415283203E-6 9.5367431640625E-7
Output for 5.4.6
0.002161979675293 0.0018179416656494 1.9073486328125E-6 1.1920928955078E-6
Output for 5.4.5
0.002532958984375 0.0025467872619629 4.0531158447266E-6 9.5367431640625E-7
Output for 5.4.4
0.0026710033416748 0.0023181438446045 3.0994415283203E-6 0
Output for 5.4.3
0.0021650791168213 0.0018229484558105 2.1457672119141E-6 0
Output for 5.4.2
0.0021481513977051 0.0018022060394287 1.1920928955078E-6 0
Output for 5.4.1
0.0021381378173828 0.0018579959869385 1.9073486328125E-6 9.5367431640625E-7
Output for 5.4.0
0.0022280216217041 0.0018100738525391 1.9073486328125E-6 9.5367431640625E-7
Output for 5.3.29
0.0030570030212402 0.0026419162750244 1.9073486328125E-6 1.1920928955078E-6
Output for 5.3.28
0.0046229362487793 0.003882884979248 2.8610229492188E-6 9.5367431640625E-7
Output for 5.3.27
0.0044939517974854 0.0038881301879883 3.0994415283203E-6 9.5367431640625E-7
Output for 5.3.26
0.0047800540924072 0.0039238929748535 5.0067901611328E-6 1.9073486328125E-6
Output for 5.3.25
0.0033679008483887 0.0026779174804688 1.0013580322266E-5 9.5367431640625E-7
Output for 5.3.24
0.0027120113372803 0.0023398399353027 1.9073486328125E-6 9.5367431640625E-7
Output for 5.3.23
0.0030789375305176 0.0036849975585938 4.0531158447266E-6 9.5367431640625E-7
Output for 5.3.22
0.0032699108123779 0.0027270317077637 3.0994415283203E-6 2.1457672119141E-6
Output for 5.3.21
0.0027029514312744 0.0023260116577148 1.9073486328125E-6 9.5367431640625E-7
Output for 5.3.20
0.0030570030212402 0.0024080276489258 1.9073486328125E-6 9.5367431640625E-7
Output for 5.3.19
0.002561092376709 0.0021450519561768 2.8610229492188E-6 0
Output for 5.3.18
0.0028698444366455 0.0023038387298584 1.9073486328125E-6 0
Output for 5.3.17
0.0032930374145508 0.002849817276001 9.5367431640625E-7 0
Output for 5.3.16
0.0028178691864014 0.0023229122161865 4.0531158447266E-6 1.9073486328125E-6
Output for 5.3.15
0.0028221607208252 0.0023379325866699 9.5367431640625E-7 0
Output for 5.3.14
0.0028090476989746 0.0023040771484375 1.9073486328125E-6 9.5367431640625E-7
Output for 5.3.13
0.0031530857086182 0.0027790069580078 4.0531158447266E-6 9.5367431640625E-7
Output for 5.3.12
0.0027961730957031 0.002316951751709 9.5367431640625E-7 0
Output for 5.3.11
0.002892017364502 0.0024728775024414 2.1457672119141E-6 0
Output for 5.3.10
0.0029308795928955 0.002439022064209 2.1457672119141E-6 0
Output for 5.3.9
0.0032541751861572 0.0028140544891357 1.9073486328125E-6 9.5367431640625E-7
Output for 5.3.8
0.0029020309448242 0.0024502277374268 2.1457672119141E-6 9.5367431640625E-7
Output for 5.3.7
0.0029559135437012 0.0025238990783691 2.8610229492188E-6 1.1920928955078E-6
Output for 5.3.6
0.0029160976409912 0.0024628639221191 9.5367431640625E-7 9.5367431640625E-7
Output for 5.3.5
0.0031931400299072 0.002593994140625 9.5367431640625E-7 9.5367431640625E-7
Output for 5.3.4
0.0027270317077637 0.0021979808807373 1.9073486328125E-6 9.5367431640625E-7
Output for 5.3.3
0.0048458576202393 0.0040619373321533 1.9073486328125E-6 9.5367431640625E-7
Output for 5.3.2
0.0040421485900879 0.0045540332794189 5.0067901611328E-6 1.9073486328125E-6
Output for 5.3.1
0.0043890476226807 0.0036859512329102 3.0994415283203E-6 9.5367431640625E-7
Output for 5.3.0
0.0041801929473877 0.0034890174865723 2.1457672119141E-6 9.5367431640625E-7
Output for 5.2.17
0.0043389797210693 0.003654956817627 2.8610229492188E-6 9.5367431640625E-7
Output for 5.2.16
0.0044300556182861 0.003460168838501 4.0531158447266E-6 9.5367431640625E-7
Output for 5.2.15
0.0064458847045898 0.0053210258483887 2.1457672119141E-6 0
Output for 5.2.14
0.0065069198608398 0.005605936050415 4.0531158447266E-6 9.5367431640625E-7
Output for 5.2.13
0.0071640014648438 0.005918025970459 2.1457672119141E-6 9.5367431640625E-7
Output for 5.2.12
0.0070610046386719 0.0042960643768311 3.0994415283203E-6 0
Output for 5.2.11
0.0065219402313232 0.0057170391082764 5.0067901611328E-6 1.1920928955078E-6
Output for 5.2.10
0.0072119235992432 0.0059130191802979 1.9073486328125E-6 9.5367431640625E-7
Output for 5.2.9
0.004565954208374 0.0045008659362793 2.8610229492188E-6 9.5367431640625E-7
Output for 5.2.8
0.0067720413208008 0.0059309005737305 3.814697265625E-6 9.5367431640625E-7
Output for 5.2.7
0.0049910545349121 0.004256010055542 3.0994415283203E-6 9.5367431640625E-7
Output for 5.2.6
0.0062611103057861 0.005817174911499 3.0994415283203E-6 9.5367431640625E-7
Output for 5.2.5
0.0062010288238525 0.005626916885376 1.9073486328125E-6 1.1920928955078E-6
Output for 5.2.4
0.0058910846710205 0.0049409866333008 3.0994415283203E-6 9.5367431640625E-7
Output for 5.2.3
0.006727933883667 0.0057790279388428 3.0994415283203E-6 9.5367431640625E-7
Output for 5.2.2
0.0069561004638672 0.0054271221160889 3.0994415283203E-6 9.5367431640625E-7
Output for 5.2.1
0.0065450668334961 0.0052821636199951 5.0067901611328E-06 3.0994415283203E-06
Output for 5.2.0
0.0063698291778564 0.0051989555358887 3.0994415283203E-06 9.5367431640625E-07
Output for 5.1.6
0.0066099166870117 0.0055441856384277 3.0994415283203E-06 1.9073486328125E-06
Output for 5.1.5
0.0070137977600098 0.0063118934631348 3.814697265625E-06 1.9073486328125E-06
Output for 5.1.4
0.0079631805419922 0.0062088966369629 6.1988830566406E-06 1.9073486328125E-06
Output for 5.1.3
0.0083339214324951 0.0070250034332275 3.0994415283203E-06 9.5367431640625E-07
Output for 5.1.2
0.0055661201477051 0.0049929618835449 2.8610229492188E-06 9.5367431640625E-07
Output for 5.1.1
0.0072600841522217 0.0066211223602295 3.0994415283203E-06 2.1457672119141E-06
Output for 5.1.0
0.0049901008605957 0.0049779415130615 2.8610229492188E-06 9.5367431640625E-07
Output for 5.0.5
0.02049994468689 0.016513109207153 3.0994415283203E-06 9.5367431640625E-07
Output for 5.0.4
0.017758846282959 0.015388011932373 4.0531158447266E-06 1.9073486328125E-06
Output for 5.0.3
0.015053033828735 0.013469934463501 4.0531158447266E-06 2.1457672119141E-06
Output for 5.0.2
0.018532991409302 0.015681982040405 4.0531158447266E-06 3.0994415283203E-06
Output for 5.0.1
0.012387037277222 0.011380910873413 5.9604644775391E-06 3.0994415283203E-06
Output for 5.0.0
0.010979890823364 0.011273860931396 4.0531158447266E-06 3.0994415283203E-06
Output for 4.4.9
0.019888 0.016842 4.9999999999981E-06 2.9999999999961E-06
Output for 4.4.8
0.0182 0.015709 2.9999999999961E-06 1.9999999999951E-06
Output for 4.4.7
0.020836 0.020218 5.9999999999991E-06 2.000000000002E-06
Output for 4.4.6
0.017387 0.014721 5.9999999999991E-06 2.9999999999961E-06
Output for 4.4.5
0.019566 0.016381 5.9999999999991E-06 2.000000000002E-06
Output for 4.4.4
0.021189 0.017392 4.000000000004E-06 2.000000000002E-06
Output for 4.4.3
0.019643 0.015972 5.9999999999991E-06 2.9999999999961E-06
Output for 4.4.2
0.018196 0.014203 7.0000000000001E-06 4.9999999999981E-06
Output for 4.4.1
0.01742 0.013954 3.9999999999971E-06 2.000000000002E-06
Output for 4.4.0
0.017729 0.015962 4.9999999999981E-06 2.000000000002E-06
Output for 4.3.11
0.013165 0.012295 4.0000000000005E-06 2.000000000002E-06
Output for 4.3.10
0.012335 0.011734 7.0000000000001E-06 1.9999999999985E-06
Output for 4.3.9
0.016059 0.014293 5.9999999999991E-06 3.000000000003E-06
Output for 4.3.8
0.014892 0.013628 4.0000000000005E-06 1.9999999999985E-06
Output for 4.3.7
0.009766 0.014555 2.9999999999995E-06 1.9999999999985E-06
Output for 4.3.6
0.019808 0.016159 6.000000000006E-06 4.000000000004E-06
Output for 4.3.5
0.019421 0.014872 3.9999999999971E-06 2.9999999999961E-06
Output for 4.3.4
0.017045 0.015104 7.0000000000001E-06 5.000000000005E-06
Output for 4.3.3
0.018061 0.015802 5.000000000005E-06 2.9999999999961E-06
Output for 4.3.2
0.009335 0.008969 2.9999999999995E-06 1.000000000001E-06
Output for 4.3.1
0.014201 0.008887 2.9999999999995E-06 2.9999999999995E-06
Output for 4.3.0
0.018896 0.014762 4.9999999999981E-06 1.9999999999951E-06