3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class TextTest { public function entities($str) { return htmlentities($str); } } $answerset = array('answers'=>array(50=>array('answerlong'=>'some super long crazy long string that really shouldn\'t be so long, but it is anyway!some super long crazy long string that really shouldn\'t be so long, but it is anyway!some super long crazy long string that really shouldn\'t be so long, but it is anyway!some super long crazy long string that really shouldn\'t be so long, but it is anyway!some super long crazy long string that really shouldn\'t be so long, but it is anyway!some super long crazy long string that really shouldn\'t be so long, but it is anyway!some super long crazy long string that really shouldn\'t be so long, but it is anyway!some super long crazy long string that really shouldn\'t be so long, but it is anyway!some super long crazy long string that really shouldn\'t be so long, but it is anyway!some super long crazy long string that really shouldn\'t be so long, but it is anyway!some super long crazy long string that really shouldn\'t be so long, but it is anyway!some super long crazy long string that really shouldn\'t be so long, but it is anyway!some super long crazy long string that really shouldn\'t be so long, but it is anyway!some super long crazy long string that really shouldn\'t be so long, but it is anyway!some super long crazy long string that really shouldn\'t be so long, but it is anyway!some super long crazy long string that really shouldn\'t be so long, but it is anyway!some super long crazy long string that really shouldn\'t be so long, but it is anyway!some super long crazy long string that really shouldn\'t be so long, but it is anyway!some super long crazy long string that really shouldn\'t be so long, but it is anyway!some super long crazy long string that really shouldn\'t be so long, but it is anyway!some super long crazy long string that really shouldn\'t be so long, but it is anyway!some super long crazy long string that really shouldn\'t be so long, but it is anyway!'))); $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 commas"; 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 dot";
Output for 7.1.0
0.017693996429443 seconds for commas 0.016691923141479 seconds for dot
Output for 7.0.14
0.016960144042969 seconds for commas 0.015601873397827 seconds for dot
Output for 7.0.7
0.014640092849731 seconds for commas 0.016563892364502 seconds for dot
Output for 7.0.6
0.017123937606812 seconds for commas 0.017060995101929 seconds for dot
Output for 7.0.5
0.013648986816406 seconds for commas 0.0156409740448 seconds for dot
Output for 7.0.4
0.0102379322052 seconds for commas 0.011934041976929 seconds for dot
Output for 7.0.3
0.013923168182373 seconds for commas 0.015961170196533 seconds for dot
Output for 7.0.2
0.015071868896484 seconds for commas 0.017379999160767 seconds for dot
Output for 7.0.1
0.013479948043823 seconds for commas 0.015336990356445 seconds for dot
Output for 7.0.0
0.014951944351196 seconds for commas 0.017153024673462 seconds for dot
Output for hhvm-3.12.0
Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 0.021022081375122 seconds for commas 0.019367933273315 seconds for dot
Output for hhvm-3.10.0
Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 Notice: Undefined variable: answerSet in /in/L86ZA on line 12 0.021158933639526 seconds for commas 0.021013021469116 seconds for dot
Output for 5.6.28
0.022234916687012 seconds for commas 0.021676063537598 seconds for dot
Output for 5.6.22
0.013447046279907 seconds for commas 0.014785051345825 seconds for dot
Output for 5.6.21
0.015760898590088 seconds for commas 0.01879096031189 seconds for dot
Output for 5.6.20
0.017945051193237 seconds for commas 0.020547866821289 seconds for dot
Output for 5.6.19
0.018347978591919 seconds for commas 0.021199941635132 seconds for dot
Output for 5.6.18
0.016813039779663 seconds for commas 0.019622087478638 seconds for dot
Output for 5.6.17
0.015203952789307 seconds for commas 0.017758131027222 seconds for dot
Output for 5.6.16
0.019082069396973 seconds for commas 0.021358013153076 seconds for dot
Output for 5.6.15
0.016597032546997 seconds for commas 0.018656969070435 seconds for dot
Output for 5.6.14
0.013332843780518 seconds for commas 0.015436887741089 seconds for dot
Output for 5.6.13
0.018049955368042 seconds for commas 0.020085096359253 seconds for dot
Output for 5.6.12
0.014891147613525 seconds for commas 0.017585039138794 seconds for dot
Output for 5.6.11
0.013625144958496 seconds for commas 0.01642107963562 seconds for dot
Output for 5.6.10
0.012497186660767 seconds for commas 0.014750003814697 seconds for dot
Output for 5.6.9
0.013438940048218 seconds for commas 0.015696048736572 seconds for dot
Output for 5.6.8
0.012144088745117 seconds for commas 0.014291048049927 seconds for dot
Output for 5.6.7
0.012501955032349 seconds for commas 0.014580965042114 seconds for dot
Output for 5.6.6
0.0123291015625 seconds for commas 0.015471935272217 seconds for dot
Output for 5.6.5
0.016670942306519 seconds for commas 0.018287181854248 seconds for dot
Output for 5.6.4
0.011411905288696 seconds for commas 0.013618946075439 seconds for dot
Output for 5.6.3
0.01133918762207 seconds for commas 0.013798952102661 seconds for dot
Output for 5.6.2
0.01144003868103 seconds for commas 0.013717889785767 seconds for dot
Output for 5.6.1
0.014387130737305 seconds for commas 0.016564846038818 seconds for dot
Output for 5.6.0
0.01123309135437 seconds for commas 0.013581991195679 seconds for dot
Output for 5.5.36
0.018762111663818 seconds for commas 0.020431041717529 seconds for dot
Output for 5.5.35
0.011731863021851 seconds for commas 0.013880968093872 seconds for dot
Output for 5.5.34
0.011698961257935 seconds for commas 0.01442289352417 seconds for dot
Output for 5.5.33
0.015599012374878 seconds for commas 0.01786994934082 seconds for dot
Output for 5.5.32
0.018365144729614 seconds for commas 0.01917290687561 seconds for dot
Output for 5.5.31
0.019141912460327 seconds for commas 0.020083904266357 seconds for dot
Output for 5.5.30
0.017074108123779 seconds for commas 0.01897406578064 seconds for dot
Output for 5.5.29
0.012440919876099 seconds for commas 0.013878107070923 seconds for dot
Output for 5.5.28
0.016897916793823 seconds for commas 0.017847061157227 seconds for dot
Output for 5.5.27
0.011689901351929 seconds for commas 0.013308048248291 seconds for dot
Output for 5.5.26
0.011191844940186 seconds for commas 0.01311206817627 seconds for dot
Output for 5.5.25
0.012048006057739 seconds for commas 0.014976978302002 seconds for dot
Output for 5.5.24
0.012748956680298 seconds for commas 0.015020132064819 seconds for dot
Output for 5.5.23
0.013181924819946 seconds for commas 0.013520002365112 seconds for dot
Output for 5.5.22
0.019094228744507 seconds for commas 0.020071029663086 seconds for dot
Output for 5.5.21
0.018123865127563 seconds for commas 0.019017934799194 seconds for dot
Output for 5.5.20
0.015873908996582 seconds for commas 0.013864040374756 seconds for dot
Output for 5.5.19
0.011258125305176 seconds for commas 0.013089895248413 seconds for dot
Output for 5.5.18
0.014920949935913 seconds for commas 0.014062166213989 seconds for dot
Output for 5.5.16
0.011276960372925 seconds for commas 0.013203859329224 seconds for dot
Output for 5.5.15
0.014111042022705 seconds for commas 0.014697074890137 seconds for dot
Output for 5.5.14
0.017261028289795 seconds for commas 0.014188051223755 seconds for dot
Output for 5.5.13
0.011439800262451 seconds for commas 0.013322114944458 seconds for dot
Output for 5.5.12
0.015263080596924 seconds for commas 0.016181945800781 seconds for dot
Output for 5.5.11
0.01147985458374 seconds for commas 0.013554096221924 seconds for dot
Output for 5.5.10
0.012080907821655 seconds for commas 0.014040946960449 seconds for dot
Output for 5.5.9
0.014800071716309 seconds for commas 0.016443967819214 seconds for dot
Output for 5.5.8
0.01123309135437 seconds for commas 0.013108015060425 seconds for dot
Output for 5.5.7
0.011184215545654 seconds for commas 0.013469934463501 seconds for dot
Output for 5.5.6
0.012040853500366 seconds for commas 0.013819932937622 seconds for dot
Output for 5.5.5
0.015834093093872 seconds for commas 0.0174880027771 seconds for dot
Output for 5.5.4
0.017956972122192 seconds for commas 0.016572952270508 seconds for dot
Output for 5.5.3
0.018509864807129 seconds for commas 0.017719984054565 seconds for dot
Output for 5.5.2
0.012530088424683 seconds for commas 0.01363205909729 seconds for dot
Output for 5.5.1
0.016263008117676 seconds for commas 0.016938924789429 seconds for dot
Output for 5.5.0
0.018320083618164 seconds for commas 0.019742965698242 seconds for dot
Output for 5.4.45
0.019913196563721 seconds for commas 0.020948886871338 seconds for dot
Output for 5.4.44
0.012737035751343 seconds for commas 0.014219999313354 seconds for dot
Output for 5.4.43
0.012852907180786 seconds for commas 0.013658046722412 seconds for dot
Output for 5.4.42
0.012139081954956 seconds for commas 0.013735055923462 seconds for dot
Output for 5.4.41
0.011114120483398 seconds for commas 0.013008832931519 seconds for dot
Output for 5.4.40
0.011319160461426 seconds for commas 0.013092041015625 seconds for dot
Output for 5.4.39
0.011988162994385 seconds for commas 0.013038873672485 seconds for dot
Output for 5.4.38
0.012047052383423 seconds for commas 0.013511896133423 seconds for dot
Output for 5.4.37
0.012046098709106 seconds for commas 0.01347804069519 seconds for dot
Output for 5.4.36
0.011759996414185 seconds for commas 0.013449907302856 seconds for dot
Output for 5.4.35
0.011131048202515 seconds for commas 0.013160943984985 seconds for dot
Output for 5.4.34
0.012504100799561 seconds for commas 0.014666080474854 seconds for dot
Output for 5.4.32
0.01120400428772 seconds for commas 0.013066053390503 seconds for dot
Output for 5.4.31
0.011116027832031 seconds for commas 0.013000965118408 seconds for dot
Output for 5.4.30
0.011799097061157 seconds for commas 0.013543128967285 seconds for dot
Output for 5.4.29
0.014094829559326 seconds for commas 0.015578985214233 seconds for dot
Output for 5.4.28
0.011917114257812 seconds for commas 0.014076948165894 seconds for dot
Output for 5.4.27
0.012675046920776 seconds for commas 0.015458822250366 seconds for dot
Output for 5.4.26
0.011370897293091 seconds for commas 0.01315712928772 seconds for dot
Output for 5.4.25
0.011920928955078 seconds for commas 0.013826131820679 seconds for dot
Output for 5.4.24
0.011031866073608 seconds for commas 0.012952089309692 seconds for dot
Output for 5.4.23
0.011558055877686 seconds for commas 0.015011072158813 seconds for dot
Output for 5.4.22
0.013056993484497 seconds for commas 0.014545917510986 seconds for dot
Output for 5.4.21
0.019222974777222 seconds for commas 0.020174980163574 seconds for dot
Output for 5.4.20
0.011528015136719 seconds for commas 0.012953042984009 seconds for dot
Output for 5.4.19
0.017001867294312 seconds for commas 0.017378091812134 seconds for dot
Output for 5.4.18
0.019237041473389 seconds for commas 0.018499851226807 seconds for dot
Output for 5.4.17
0.018654108047485 seconds for commas 0.017479181289673 seconds for dot
Output for 5.4.16
0.016198873519897 seconds for commas 0.015539884567261 seconds for dot
Output for 5.4.15
0.019031047821045 seconds for commas 0.020128011703491 seconds for dot
Output for 5.4.14
0.015557050704956 seconds for commas 0.017043828964233 seconds for dot
Output for 5.4.13
0.016479969024658 seconds for commas 0.014873027801514 seconds for dot
Output for 5.4.12
0.014753818511963 seconds for commas 0.015944957733154 seconds for dot
Output for 5.4.11
0.017358064651489 seconds for commas 0.019146919250488 seconds for dot
Output for 5.4.10
0.019230127334595 seconds for commas 0.020956039428711 seconds for dot
Output for 5.4.9
0.02011513710022 seconds for commas 0.021718978881836 seconds for dot
Output for 5.4.8
0.019527912139893 seconds for commas 0.021054029464722 seconds for dot
Output for 5.4.7
0.018407821655273 seconds for commas 0.017403125762939 seconds for dot
Output for 5.4.6
0.018074035644531 seconds for commas 0.019544124603271 seconds for dot
Output for 5.4.5
0.012341022491455 seconds for commas 0.013947010040283 seconds for dot
Output for 5.4.4
0.014124155044556 seconds for commas 0.015893936157227 seconds for dot
Output for 5.4.3
0.013358116149902 seconds for commas 0.013139963150024 seconds for dot
Output for 5.4.2
0.018985033035278 seconds for commas 0.020536184310913 seconds for dot
Output for 5.4.1
0.019078016281128 seconds for commas 0.020628929138184 seconds for dot
Output for 5.4.0
0.019268989562988 seconds for commas 0.020697116851807 seconds for dot
Output for 5.3.29
0.014140844345093 seconds for commas 0.014199018478394 seconds for dot
Output for 5.3.28
0.013814926147461 seconds for commas 0.013684988021851 seconds for dot
Output for 5.3.27
0.013435840606689 seconds for commas 0.013321876525879 seconds for dot
Output for 5.3.26
0.023972034454346 seconds for commas 0.021888017654419 seconds for dot
Output for 5.3.25
0.022838830947876 seconds for commas 0.01886510848999 seconds for dot
Output for 5.3.24
0.020687103271484 seconds for commas 0.016921043395996 seconds for dot
Output for 5.3.23
0.018739938735962 seconds for commas 0.0174720287323 seconds for dot
Output for 5.3.22
0.023102045059204 seconds for commas 0.021897792816162 seconds for dot
Output for 5.3.21
0.022720813751221 seconds for commas 0.018082141876221 seconds for dot
Output for 5.3.20
0.031368970870972 seconds for commas 0.022258043289185 seconds for dot
Output for 5.3.19
0.021749973297119 seconds for commas 0.018111944198608 seconds for dot
Output for 5.3.18
0.015315055847168 seconds for commas 0.014493942260742 seconds for dot
Output for 5.3.17
0.022830963134766 seconds for commas 0.021164894104004 seconds for dot
Output for 5.3.16
0.021196126937866 seconds for commas 0.019738912582397 seconds for dot
Output for 5.3.15
0.022463083267212 seconds for commas 0.020618915557861 seconds for dot
Output for 5.3.14
0.022758007049561 seconds for commas 0.018930912017822 seconds for dot
Output for 5.3.13
0.020463943481445 seconds for commas 0.017385959625244 seconds for dot
Output for 5.3.12
0.014143943786621 seconds for commas 0.013671875 seconds for dot
Output for 5.3.11
0.017941951751709 seconds for commas 0.016926050186157 seconds for dot
Output for 5.3.10
0.017930030822754 seconds for commas 0.014118194580078 seconds for dot
Output for 5.3.9
0.01360821723938 seconds for commas 0.013558149337769 seconds for dot
Output for 5.3.8
0.022964000701904 seconds for commas 0.020954132080078 seconds for dot
Output for 5.3.7
0.022487878799438 seconds for commas 0.019971132278442 seconds for dot
Output for 5.3.6
0.022408962249756 seconds for commas 0.020747900009155 seconds for dot
Output for 5.3.5
0.016322135925293 seconds for commas 0.015475988388062 seconds for dot
Output for 5.3.4
0.021833896636963 seconds for commas 0.018921852111816 seconds for dot
Output for 5.3.3
0.022737979888916 seconds for commas 0.018285989761353 seconds for dot
Output for 5.3.2
0.022781133651733 seconds for commas 0.020786046981812 seconds for dot
Output for 5.3.1
0.020358085632324 seconds for commas 0.017132043838501 seconds for dot
Output for 5.3.0
0.023041009902954 seconds for commas 0.020760059356689 seconds for dot
Output for 5.2.17
0.025743961334229 seconds for commas 0.023226976394653 seconds for dot
Output for 5.2.16
0.02461576461792 seconds for commas 0.022330045700073 seconds for dot
Output for 5.2.15
0.025098085403442 seconds for commas 0.022697925567627 seconds for dot
Output for 5.2.14
0.022448062896729 seconds for commas 0.020178079605103 seconds for dot
Output for 5.2.13
0.02567195892334 seconds for commas 0.023219108581543 seconds for dot
Output for 5.2.12
0.025929927825928 seconds for commas 0.023344039916992 seconds for dot
Output for 5.2.11
0.028226137161255 seconds for commas 0.025250911712646 seconds for dot
Output for 5.2.10
0.020452976226807 seconds for commas 0.019730091094971 seconds for dot
Output for 5.2.9
0.027499914169312 seconds for commas 0.0241379737854 seconds for dot
Output for 5.2.8
0.023595094680786 seconds for commas 0.021337985992432 seconds for dot
Output for 5.2.7
0.026256084442139 seconds for commas 0.023377895355225 seconds for dot
Output for 5.2.6
0.022197008132935 seconds for commas 0.01845908164978 seconds for dot
Output for 5.2.5
0.02714204788208 seconds for commas 0.023230075836182 seconds for dot
Output for 5.2.4
0.015095949172974 seconds for commas 0.015995979309082 seconds for dot
Output for 5.2.3
0.024479150772095 seconds for commas 0.022281885147095 seconds for dot
Output for 5.2.2
0.021275043487549 seconds for commas 0.020882844924927 seconds for dot
Output for 5.2.1
0.019815921783447 seconds for commas 0.022128820419312 seconds for dot
Output for 5.2.0
0.022012948989868 seconds for commas 0.023592948913574 seconds for dot
Output for 5.1.6
0.022281169891357 seconds for commas 0.023317098617554 seconds for dot
Output for 5.1.5
0.020190000534058 seconds for commas 0.022761106491089 seconds for dot
Output for 5.1.4
0.022346973419189 seconds for commas 0.024075984954834 seconds for dot
Output for 5.1.3
0.023186922073364 seconds for commas 0.025036811828613 seconds for dot
Output for 5.1.2
0.020961046218872 seconds for commas 0.023254871368408 seconds for dot
Output for 5.1.1
0.017396926879883 seconds for commas 0.02010703086853 seconds for dot
Output for 5.1.0
0.013727188110352 seconds for commas 0.015115976333618 seconds for dot
Output for 5.0.5
0.025989055633545 seconds for commas 0.026764869689941 seconds for dot
Output for 5.0.4
0.016640901565552 seconds for commas 0.017999172210693 seconds for dot
Output for 5.0.3
0.019402980804443 seconds for commas 0.021579027175903 seconds for dot
Output for 5.0.2
0.026525974273682 seconds for commas 0.027812004089355 seconds for dot
Output for 5.0.1
0.027574062347412 seconds for commas 0.028925895690918 seconds for dot
Output for 5.0.0
0.027203798294067 seconds for commas 0.02790379524231 seconds for dot
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/L86ZA 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/L86ZA 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/L86ZA on line 2
Process exited with code 255.