3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class TextTest { public function entities($str) { return substr($str,0); } } $answerset = array('answers'=>array(50=>array('answerlong'=>'somestring'))); $text = new TextTest(); ob_start(); $time = microtime(1); $i = 0; while($i++ < 10000) echo'<td>'.$text->entities($answerSet['answers'][$questionId]['answerLong']).'</td>'; ob_end_clean(); echo (microtime(1)-$time)." seconds for dot"; echo "\n"; ob_start(); $time = microtime(1); $i = 0; while($i++ < 10000) echo'<td>',$text->entities($answerSet['answers'][$questionId]['answerLong']),'</td>'; ob_end_clean(); echo (microtime(1)-$time)." seconds for commas";
Output for 7.1.0
0.016667127609253 seconds for dot 0.015822172164917 seconds for commas
Output for 7.0.14
0.016355037689209 seconds for dot 0.015499830245972 seconds for commas
Output for 7.0.10
0.014909029006958 seconds for dot 0.014331102371216 seconds for commas
Output for 7.0.9
0.013970136642456 seconds for dot 0.015929937362671 seconds for commas
Output for 7.0.8
0.013695955276489 seconds for dot 0.015732049942017 seconds for commas
Output for 7.0.7
0.013725996017456 seconds for dot 0.015701055526733 seconds for commas
Output for 7.0.6
0.014539957046509 seconds for dot 0.014410018920898 seconds for commas
Output for 7.0.5
0.013857841491699 seconds for dot 0.016119956970215 seconds for commas
Output for 7.0.4
0.013967990875244 seconds for dot 0.016515970230103 seconds for commas
Output for 7.0.3
0.012063980102539 seconds for dot 0.014403104782104 seconds for commas
Output for 7.0.2
0.012343883514404 seconds for dot 0.01331090927124 seconds for commas
Output for 7.0.1
0.013912916183472 seconds for dot 0.015772819519043 seconds for commas
Output for 7.0.0
0.0099501609802246 seconds for dot 0.011961936950684 seconds for commas
Output for 5.6.28
0.0206298828125 seconds for dot 0.018754005432129 seconds for commas
Output for 5.6.25
0.015866994857788 seconds for dot 0.015537023544312 seconds for commas
Output for 5.6.24
0.018014907836914 seconds for dot 0.019850015640259 seconds for commas
Output for 5.6.23
0.013919830322266 seconds for dot 0.016257047653198 seconds for commas
Output for 5.6.22
0.015244007110596 seconds for dot 0.016685009002686 seconds for commas
Output for 5.6.21
0.01678991317749 seconds for dot 0.014717102050781 seconds for commas
Output for 5.6.20
0.017132043838501 seconds for dot 0.018872022628784 seconds for commas
Output for 5.6.19
0.014894962310791 seconds for dot 0.016284227371216 seconds for commas
Output for 5.6.18
0.016512155532837 seconds for dot 0.014357089996338 seconds for commas
Output for 5.6.17
0.017385959625244 seconds for dot 0.018497943878174 seconds for commas
Output for 5.6.16
0.013495922088623 seconds for dot 0.015895128250122 seconds for commas
Output for 5.6.15
0.015206098556519 seconds for dot 0.013834953308105 seconds for commas
Output for 5.6.14
0.012453079223633 seconds for dot 0.013682126998901 seconds for commas
Output for 5.6.13
0.017483949661255 seconds for dot 0.018296957015991 seconds for commas
Output for 5.6.12
0.016466856002808 seconds for dot 0.01934289932251 seconds for commas
Output for 5.6.11
0.018273115158081 seconds for dot 0.020752906799316 seconds for commas
Output for 5.6.10
0.017821073532104 seconds for dot 0.01938796043396 seconds for commas
Output for 5.6.9
0.011191844940186 seconds for dot 0.013351917266846 seconds for commas
Output for 5.6.8
0.013331890106201 seconds for dot 0.015474081039429 seconds for commas
Output for 5.6.7
0.015805006027222 seconds for dot 0.016261100769043 seconds for commas
Output for 5.6.6
0.015956163406372 seconds for dot 0.017613172531128 seconds for commas
Output for 5.6.5
0.018496990203857 seconds for dot 0.018144845962524 seconds for commas
Output for 5.6.4
0.015547037124634 seconds for dot 0.017426013946533 seconds for commas
Output for 5.6.3
0.016268968582153 seconds for dot 0.016211986541748 seconds for commas
Output for 5.6.2
0.017876148223877 seconds for dot 0.01977801322937 seconds for commas
Output for 5.6.1
0.016422986984253 seconds for dot 0.018959999084473 seconds for commas
Output for 5.6.0
0.014801979064941 seconds for dot 0.017348051071167 seconds for commas
Output for 5.5.38
0.014273166656494 seconds for dot 0.014831066131592 seconds for commas
Output for 5.5.37
0.018024921417236 seconds for dot 0.019546031951904 seconds for commas
Output for 5.5.36
0.01393723487854 seconds for dot 0.014976024627686 seconds for commas
Output for 5.5.35
0.018740892410278 seconds for dot 0.020594120025635 seconds for commas
Output for 5.5.34
0.018918991088867 seconds for dot 0.020587205886841 seconds for commas
Output for 5.5.33
0.019474029541016 seconds for dot 0.02030611038208 seconds for commas
Output for 5.5.32
0.013669967651367 seconds for dot 0.016011953353882 seconds for commas
Output for 5.5.31
0.017505884170532 seconds for dot 0.017392873764038 seconds for commas
Output for 5.5.30
0.019222021102905 seconds for dot 0.020732164382935 seconds for commas
Output for 5.5.29
0.018277168273926 seconds for dot 0.019891023635864 seconds for commas
Output for 5.5.28
0.018141031265259 seconds for dot 0.018213987350464 seconds for commas
Output for 5.5.27
0.014349937438965 seconds for dot 0.01606297492981 seconds for commas
Output for 5.5.26
0.017593145370483 seconds for dot 0.01961612701416 seconds for commas
Output for 5.5.25
0.017024040222168 seconds for dot 0.016170024871826 seconds for commas
Output for 5.5.24
0.018659114837646 seconds for dot 0.019881010055542 seconds for commas
Output for 5.5.23
0.018773078918457 seconds for dot 0.020320892333984 seconds for commas
Output for 5.5.22
0.01342511177063 seconds for dot 0.01480507850647 seconds for commas
Output for 5.5.21
0.019262075424194 seconds for dot 0.02082896232605 seconds for commas
Output for 5.5.20
0.016014099121094 seconds for dot 0.01609992980957 seconds for commas
Output for 5.5.19
0.017797946929932 seconds for dot 0.015967130661011 seconds for commas
Output for 5.5.18
0.018604040145874 seconds for dot 0.020198106765747 seconds for commas
Output for 5.5.16
0.018308162689209 seconds for dot 0.020218849182129 seconds for commas
Output for 5.5.15
0.013885021209717 seconds for dot 0.015444993972778 seconds for commas
Output for 5.5.14
0.013995885848999 seconds for dot 0.015151023864746 seconds for commas
Output for 5.5.13
0.017972946166992 seconds for dot 0.019818067550659 seconds for commas
Output for 5.5.12
0.015578985214233 seconds for dot 0.01508617401123 seconds for commas
Output for 5.5.11
0.011466026306152 seconds for dot 0.013895988464355 seconds for commas
Output for 5.5.10
0.016416072845459 seconds for dot 0.018244028091431 seconds for commas
Output for 5.5.9
0.014800071716309 seconds for dot 0.016893863677979 seconds for commas
Output for 5.5.8
0.01131796836853 seconds for dot 0.013422966003418 seconds for commas
Output for 5.5.7
0.011432886123657 seconds for dot 0.013386964797974 seconds for commas
Output for 5.5.6
0.01176905632019 seconds for dot 0.013751029968262 seconds for commas
Output for 5.5.5
0.011416912078857 seconds for dot 0.013383865356445 seconds for commas
Output for 5.5.4
0.012042999267578 seconds for dot 0.013609170913696 seconds for commas
Output for 5.5.3
0.011829137802124 seconds for dot 0.0137779712677 seconds for commas
Output for 5.5.2
0.013028860092163 seconds for dot 0.014266014099121 seconds for commas
Output for 5.5.1
0.011531114578247 seconds for dot 0.013807058334351 seconds for commas
Output for 5.5.0
0.012677907943726 seconds for dot 0.014672994613647 seconds for commas
Output for 5.4.45
0.018474102020264 seconds for dot 0.017260789871216 seconds for commas
Output for 5.4.44
0.012588977813721 seconds for dot 0.014015197753906 seconds for commas
Output for 5.4.43
0.017815113067627 seconds for dot 0.019696950912476 seconds for commas
Output for 5.4.42
0.018004894256592 seconds for dot 0.019629955291748 seconds for commas
Output for 5.4.41
0.015540838241577 seconds for dot 0.017211198806763 seconds for commas
Output for 5.4.40
0.012886047363281 seconds for dot 0.014873027801514 seconds for commas
Output for 5.4.39
0.015132904052734 seconds for dot 0.016003847122192 seconds for commas
Output for 5.4.38
0.015501022338867 seconds for dot 0.015221118927002 seconds for commas
Output for 5.4.37
0.016833066940308 seconds for dot 0.016650199890137 seconds for commas
Output for 5.4.36
0.019317150115967 seconds for dot 0.020937919616699 seconds for commas
Output for 5.4.35
0.012079000473022 seconds for dot 0.014132976531982 seconds for commas
Output for 5.4.34
0.015637874603271 seconds for dot 0.017140865325928 seconds for commas
Output for 5.4.32
0.018043041229248 seconds for dot 0.019095897674561 seconds for commas
Output for 5.4.31
0.015978813171387 seconds for dot 0.015244960784912 seconds for commas
Output for 5.4.30
0.017174005508423 seconds for dot 0.019012928009033 seconds for commas
Output for 5.4.29
0.016110897064209 seconds for dot 0.015135049819946 seconds for commas
Output for 5.4.28
0.018020868301392 seconds for dot 0.020325183868408 seconds for commas
Output for 5.4.27
0.012990951538086 seconds for dot 0.014450073242188 seconds for commas
Output for 5.4.26
0.011943101882935 seconds for dot 0.014307975769043 seconds for commas
Output for 5.4.25
0.011131048202515 seconds for dot 0.013389825820923 seconds for commas
Output for 5.4.24
0.011626005172729 seconds for dot 0.013230085372925 seconds for commas
Output for 5.4.23
0.01130199432373 seconds for dot 0.013260841369629 seconds for commas
Output for 5.4.22
0.011788845062256 seconds for dot 0.013471841812134 seconds for commas
Output for 5.4.21
0.017374038696289 seconds for dot 0.019343852996826 seconds for commas
Output for 5.4.20
0.011215925216675 seconds for dot 0.013117074966431 seconds for commas
Output for 5.4.19
0.014911890029907 seconds for dot 0.014667987823486 seconds for commas
Output for 5.4.18
0.011761903762817 seconds for dot 0.013639211654663 seconds for commas
Output for 5.4.17
0.013192892074585 seconds for dot 0.013885974884033 seconds for commas
Output for 5.4.16
0.011223077774048 seconds for dot 0.013338804244995 seconds for commas
Output for 5.4.15
0.011318206787109 seconds for dot 0.013774156570435 seconds for commas
Output for 5.4.14
0.017604112625122 seconds for dot 0.019423007965088 seconds for commas
Output for 5.4.13
0.011554956436157 seconds for dot 0.013612031936646 seconds for commas
Output for 5.4.12
0.019963979721069 seconds for dot 0.01845908164978 seconds for commas
Output for 5.4.11
0.012133121490479 seconds for dot 0.014019966125488 seconds for commas
Output for 5.4.10
0.011487007141113 seconds for dot 0.013638019561768 seconds for commas
Output for 5.4.9
0.011659860610962 seconds for dot 0.014638900756836 seconds for commas
Output for 5.4.8
0.01270604133606 seconds for dot 0.014014005661011 seconds for commas
Output for 5.4.7
0.01445484161377 seconds for dot 0.013232946395874 seconds for commas
Output for 5.4.6
0.014111995697021 seconds for dot 0.01598596572876 seconds for commas
Output for 5.4.5
0.011819124221802 seconds for dot 0.013669013977051 seconds for commas
Output for 5.4.4
0.012813091278076 seconds for dot 0.014024972915649 seconds for commas
Output for 5.4.3
0.014502048492432 seconds for dot 0.016193866729736 seconds for commas
Output for 5.4.2
0.020079851150513 seconds for dot 0.019528150558472 seconds for commas
Output for 5.4.1
0.017834901809692 seconds for dot 0.018625020980835 seconds for commas
Output for 5.4.0
0.016143083572388 seconds for dot 0.018287181854248 seconds for commas
Output for 5.3.29
0.022731065750122 seconds for dot 0.020289897918701 seconds for commas
Output for 5.3.28
0.013780832290649 seconds for dot 0.013429164886475 seconds for commas
Output for 5.3.27
0.014312028884888 seconds for dot 0.013787984848022 seconds for commas
Output for 5.3.26
0.014025211334229 seconds for dot 0.013592004776001 seconds for commas
Output for 5.3.25
0.014851093292236 seconds for dot 0.013943910598755 seconds for commas
Output for 5.3.24
0.014258861541748 seconds for dot 0.013339042663574 seconds for commas
Output for 5.3.23
0.018753051757812 seconds for dot 0.017315864562988 seconds for commas
Output for 5.3.22
0.017413139343262 seconds for dot 0.015757083892822 seconds for commas
Output for 5.3.21
0.013958930969238 seconds for dot 0.013442039489746 seconds for commas
Output for 5.3.20
0.015805959701538 seconds for dot 0.016193866729736 seconds for commas
Output for 5.3.19
0.016184091567993 seconds for dot 0.016824007034302 seconds for commas
Output for 5.3.18
0.013168096542358 seconds for dot 0.012737989425659 seconds for commas
Output for 5.3.17
0.013890981674194 seconds for dot 0.013264179229736 seconds for commas
Output for 5.3.16
0.015094041824341 seconds for dot 0.014508008956909 seconds for commas
Output for 5.3.15
0.020298957824707 seconds for dot 0.017386198043823 seconds for commas
Output for 5.3.14
0.016368865966797 seconds for dot 0.015297174453735 seconds for commas
Output for 5.3.13
0.021086931228638 seconds for dot 0.015834093093872 seconds for commas
Output for 5.3.12
0.023131132125854 seconds for dot 0.016782999038696 seconds for commas
Output for 5.3.11
0.020211935043335 seconds for dot 0.017022132873535 seconds for commas
Output for 5.3.10
0.022346019744873 seconds for dot 0.017016172409058 seconds for commas
Output for 5.3.9
0.014405012130737 seconds for dot 0.013790130615234 seconds for commas
Output for 5.3.8
0.022619962692261 seconds for dot 0.020267009735107 seconds for commas
Output for 5.3.7
0.01987099647522 seconds for dot 0.017392873764038 seconds for commas
Output for 5.3.6
0.023568153381348 seconds for dot 0.019509077072144 seconds for commas
Output for 5.3.5
0.020371913909912 seconds for dot 0.017811059951782 seconds for commas
Output for 5.3.4
0.020413875579834 seconds for dot 0.017978191375732 seconds for commas
Output for 5.3.3
0.020318984985352 seconds for dot 0.018637895584106 seconds for commas
Output for 5.3.2
0.022752046585083 seconds for dot 0.018932104110718 seconds for commas
Output for 5.3.1
0.020569086074829 seconds for dot 0.017583131790161 seconds for commas
Output for 5.3.0
0.020859956741333 seconds for dot 0.017059803009033 seconds for commas
Output for 5.2.17
0.024368047714233 seconds for dot 0.018723011016846 seconds for commas
Output for 5.2.16
0.021836996078491 seconds for dot 0.016096115112305 seconds for commas
Output for 5.2.15
0.022217988967896 seconds for dot 0.019901037216187 seconds for commas
Output for 5.2.14
0.017950057983398 seconds for dot 0.015225887298584 seconds for commas
Output for 5.2.13
0.022901058197021 seconds for dot 0.019269943237305 seconds for commas
Output for 5.2.12
0.022053003311157 seconds for dot 0.019567012786865 seconds for commas
Output for 5.2.11
0.018663167953491 seconds for dot 0.016247034072876 seconds for commas
Output for 5.2.10
0.026283025741577 seconds for dot 0.02108097076416 seconds for commas
Output for 5.2.9
0.023766994476318 seconds for dot 0.018723964691162 seconds for commas
Output for 5.2.8
0.026156187057495 seconds for dot 0.021605014801025 seconds for commas
Output for 5.2.7
0.023867845535278 seconds for dot 0.020201206207275 seconds for commas
Output for 5.2.6
0.020834922790527 seconds for dot 0.0208580493927 seconds for commas
Output for 5.2.5
0.026176929473877 seconds for dot 0.022816181182861 seconds for commas
Output for 5.2.4
0.023903846740723 seconds for dot 0.019781112670898 seconds for commas
Output for 5.2.3
0.01992392539978 seconds for dot 0.01963210105896 seconds for commas
Output for 5.2.2
0.025942087173462 seconds for dot 0.019232988357544 seconds for commas
Output for 5.2.1
0.02173900604248 seconds for dot 0.017274141311646 seconds for commas
Output for 5.2.0
0.01886510848999 seconds for dot 0.015476226806641 seconds for commas
Output for 5.1.6
0.025638103485107 seconds for dot 0.020925998687744 seconds for commas
Output for 5.1.5
0.017091035842896 seconds for dot 0.016711950302124 seconds for commas
Output for 5.1.4
0.024574995040894 seconds for dot 0.020165205001831 seconds for commas
Output for 5.1.3
0.019951820373535 seconds for dot 0.015842914581299 seconds for commas
Output for 5.1.2
0.024214029312134 seconds for dot 0.019348859786987 seconds for commas
Output for 5.1.1
0.024080991744995 seconds for dot 0.02094292640686 seconds for commas
Output for 5.1.0
0.020389080047607 seconds for dot 0.019330024719238 seconds for commas
Output for 5.0.5
0.028937101364136 seconds for dot 0.023941040039062 seconds for commas
Output for 5.0.4
0.032119989395142 seconds for dot 0.027195930480957 seconds for commas
Output for 5.0.3
0.025130987167358 seconds for dot 0.022506952285767 seconds for commas
Output for 5.0.2
0.028743982315063 seconds for dot 0.0246901512146 seconds for commas
Output for 5.0.1
0.030339956283569 seconds for dot 0.023416996002197 seconds for commas
Output for 5.0.0
0.022691011428833 seconds for dot 0.019867897033691 seconds for commas
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/snroN on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/snroN on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/snroN on line 2
Process exited with code 255.