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 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.016179084777832 seconds for commas 0.015610933303833 seconds for dot
Output for 7.0.14
0.016316890716553 seconds for commas 0.015153884887695 seconds for dot
Output for 7.0.7
0.010124921798706 seconds for commas 0.011326789855957 seconds for dot
Output for 7.0.6
0.013525009155273 seconds for commas 0.014970064163208 seconds for dot
Output for 7.0.5
0.015895128250122 seconds for commas 0.017446994781494 seconds for dot
Output for 7.0.4
0.015042781829834 seconds for commas 0.01680588722229 seconds for dot
Output for 7.0.3
0.01156210899353 seconds for commas 0.013534784317017 seconds for dot
Output for 7.0.2
0.013872146606445 seconds for commas 0.015807867050171 seconds for dot
Output for 7.0.1
0.014057159423828 seconds for commas 0.016128063201904 seconds for dot
Output for 7.0.0
0.012492895126343 seconds for commas 0.014394044876099 seconds for dot
Output for 5.6.28
0.019075870513916 seconds for commas 0.019154071807861 seconds for dot
Output for 5.6.22
0.016404867172241 seconds for commas 0.01831316947937 seconds for dot
Output for 5.6.21
0.016837120056152 seconds for commas 0.015547037124634 seconds for dot
Output for 5.6.20
0.011477947235107 seconds for commas 0.013530969619751 seconds for dot
Output for 5.6.19
0.017906904220581 seconds for commas 0.020941972732544 seconds for dot
Output for 5.6.18
0.012369871139526 seconds for commas 0.013427019119263 seconds for dot
Output for 5.6.17
0.014772891998291 seconds for commas 0.017821073532104 seconds for dot
Output for 5.6.16
0.013437032699585 seconds for commas 0.015051126480103 seconds for dot
Output for 5.6.15
0.01815390586853 seconds for commas 0.020121097564697 seconds for dot
Output for 5.6.14
0.015657186508179 seconds for commas 0.013797044754028 seconds for dot
Output for 5.6.13
0.019062995910645 seconds for commas 0.021082162857056 seconds for dot
Output for 5.6.12
0.015398979187012 seconds for commas 0.018343210220337 seconds for dot
Output for 5.6.11
0.018326044082642 seconds for commas 0.018976211547852 seconds for dot
Output for 5.6.10
0.017279148101807 seconds for commas 0.017974138259888 seconds for dot
Output for 5.6.9
0.014142990112305 seconds for commas 0.015785932540894 seconds for dot
Output for 5.6.8
0.020569801330566 seconds for commas 0.020392894744873 seconds for dot
Output for 5.6.7
0.01622486114502 seconds for commas 0.018073081970215 seconds for dot
Output for 5.6.6
0.01869797706604 seconds for commas 0.02026891708374 seconds for dot
Output for 5.6.5
0.01338791847229 seconds for commas 0.016298055648804 seconds for dot
Output for 5.6.4
0.01911997795105 seconds for commas 0.020159006118774 seconds for dot
Output for 5.6.3
0.018054962158203 seconds for commas 0.019183158874512 seconds for dot
Output for 5.6.2
0.015558004379272 seconds for commas 0.017554998397827 seconds for dot
Output for 5.6.1
0.018794059753418 seconds for commas 0.019689083099365 seconds for dot
Output for 5.6.0
0.01000189781189 seconds for commas 0.011425971984863 seconds for dot
Output for 5.5.36
0.017642021179199 seconds for commas 0.019561052322388 seconds for dot
Output for 5.5.35
0.017567157745361 seconds for commas 0.018593072891235 seconds for dot
Output for 5.5.34
0.0160231590271 seconds for commas 0.017749071121216 seconds for dot
Output for 5.5.33
0.017278909683228 seconds for commas 0.0152268409729 seconds for dot
Output for 5.5.32
0.020679950714111 seconds for commas 0.021966934204102 seconds for dot
Output for 5.5.31
0.012013912200928 seconds for commas 0.013513088226318 seconds for dot
Output for 5.5.30
0.013653993606567 seconds for commas 0.015251874923706 seconds for dot
Output for 5.5.29
0.015213012695312 seconds for commas 0.015798091888428 seconds for dot
Output for 5.5.28
0.015455961227417 seconds for commas 0.018347978591919 seconds for dot
Output for 5.5.27
0.018562793731689 seconds for commas 0.020071983337402 seconds for dot
Output for 5.5.26
0.017979145050049 seconds for commas 0.016623973846436 seconds for dot
Output for 5.5.25
0.020287990570068 seconds for commas 0.021354913711548 seconds for dot
Output for 5.5.24
0.019613027572632 seconds for commas 0.021443843841553 seconds for dot
Output for 5.5.23
0.017381906509399 seconds for commas 0.015257835388184 seconds for dot
Output for 5.5.22
0.019671201705933 seconds for commas 0.020970106124878 seconds for dot
Output for 5.5.21
0.019580125808716 seconds for commas 0.020933866500854 seconds for dot
Output for 5.5.20
0.018035888671875 seconds for commas 0.018826961517334 seconds for dot
Output for 5.5.19
0.017863988876343 seconds for commas 0.019647121429443 seconds for dot
Output for 5.5.18
0.016777992248535 seconds for commas 0.018187999725342 seconds for dot
Output for 5.5.16
0.014687061309814 seconds for commas 0.017400026321411 seconds for dot
Output for 5.5.15
0.011852979660034 seconds for commas 0.013648986816406 seconds for dot
Output for 5.5.14
0.011384010314941 seconds for commas 0.013091087341309 seconds for dot
Output for 5.5.13
0.015730857849121 seconds for commas 0.018428087234497 seconds for dot
Output for 5.5.12
0.01567006111145 seconds for commas 0.017313003540039 seconds for dot
Output for 5.5.11
0.017770051956177 seconds for commas 0.019334077835083 seconds for dot
Output for 5.5.10
0.019477128982544 seconds for commas 0.020427942276001 seconds for dot
Output for 5.5.9
0.012222051620483 seconds for commas 0.014340877532959 seconds for dot
Output for 5.5.8
0.012732028961182 seconds for commas 0.013602018356323 seconds for dot
Output for 5.5.7
0.011553049087524 seconds for commas 0.013817071914673 seconds for dot
Output for 5.5.6
0.012156009674072 seconds for commas 0.013976097106934 seconds for dot
Output for 5.5.5
0.012217998504639 seconds for commas 0.018799066543579 seconds for dot
Output for 5.5.4
0.011547803878784 seconds for commas 0.013410091400146 seconds for dot
Output for 5.5.3
0.011502027511597 seconds for commas 0.013339042663574 seconds for dot
Output for 5.5.2
0.013906002044678 seconds for commas 0.01630711555481 seconds for dot
Output for 5.5.1
0.011765003204346 seconds for commas 0.013443946838379 seconds for dot
Output for 5.5.0
0.011879920959473 seconds for commas 0.013751029968262 seconds for dot
Output for 5.4.45
0.020632028579712 seconds for commas 0.022439956665039 seconds for dot
Output for 5.4.44
0.022104024887085 seconds for commas 0.02140212059021 seconds for dot
Output for 5.4.43
0.018805027008057 seconds for commas 0.019166946411133 seconds for dot
Output for 5.4.42
0.019232988357544 seconds for commas 0.021819114685059 seconds for dot
Output for 5.4.41
0.016122102737427 seconds for commas 0.017754077911377 seconds for dot
Output for 5.4.40
0.017653942108154 seconds for commas 0.016849994659424 seconds for dot
Output for 5.4.39
0.020332098007202 seconds for commas 0.02125096321106 seconds for dot
Output for 5.4.38
0.020157814025879 seconds for commas 0.021214962005615 seconds for dot
Output for 5.4.37
0.01980996131897 seconds for commas 0.020079851150513 seconds for dot
Output for 5.4.36
0.018887996673584 seconds for commas 0.020321846008301 seconds for dot
Output for 5.4.35
0.018679857254028 seconds for commas 0.019608020782471 seconds for dot
Output for 5.4.34
0.015576124191284 seconds for commas 0.017804145812988 seconds for dot
Output for 5.4.32
0.012911796569824 seconds for commas 0.014566898345947 seconds for dot
Output for 5.4.31
0.011462926864624 seconds for commas 0.013540029525757 seconds for dot
Output for 5.4.30
0.012451171875 seconds for commas 0.014063119888306 seconds for dot
Output for 5.4.29
0.011033058166504 seconds for commas 0.013329029083252 seconds for dot
Output for 5.4.28
0.014526844024658 seconds for commas 0.016865015029907 seconds for dot
Output for 5.4.27
0.011390924453735 seconds for commas 0.013195991516113 seconds for dot
Output for 5.4.26
0.020633935928345 seconds for commas 0.021919012069702 seconds for dot
Output for 5.4.25
0.017041921615601 seconds for commas 0.018621206283569 seconds for dot
Output for 5.4.24
0.011477947235107 seconds for commas 0.013731002807617 seconds for dot
Output for 5.4.23
0.011911153793335 seconds for commas 0.013329982757568 seconds for dot
Output for 5.4.22
0.01140308380127 seconds for commas 0.014395952224731 seconds for dot
Output for 5.4.21
0.011934995651245 seconds for commas 0.013054132461548 seconds for dot
Output for 5.4.20
0.011255979537964 seconds for commas 0.013097047805786 seconds for dot
Output for 5.4.19
0.011595010757446 seconds for commas 0.013787031173706 seconds for dot
Output for 5.4.18
0.011827945709229 seconds for commas 0.013629198074341 seconds for dot
Output for 5.4.17
0.012979984283447 seconds for commas 0.013302087783813 seconds for dot
Output for 5.4.16
0.01456093788147 seconds for commas 0.013808012008667 seconds for dot
Output for 5.4.15
0.01924204826355 seconds for commas 0.020437002182007 seconds for dot
Output for 5.4.14
0.011511087417603 seconds for commas 0.013202905654907 seconds for dot
Output for 5.4.13
0.011704921722412 seconds for commas 0.013737916946411 seconds for dot
Output for 5.4.12
0.01173210144043 seconds for commas 0.013750076293945 seconds for dot
Output for 5.4.11
0.014467000961304 seconds for commas 0.016903877258301 seconds for dot
Output for 5.4.10
0.018647909164429 seconds for commas 0.020194053649902 seconds for dot
Output for 5.4.9
0.020186185836792 seconds for commas 0.018094062805176 seconds for dot
Output for 5.4.8
0.014915943145752 seconds for commas 0.016770839691162 seconds for dot
Output for 5.4.7
0.019279003143311 seconds for commas 0.02043080329895 seconds for dot
Output for 5.4.6
0.014484882354736 seconds for commas 0.015942096710205 seconds for dot
Output for 5.4.5
0.019428968429565 seconds for commas 0.021513938903809 seconds for dot
Output for 5.4.4
0.01500415802002 seconds for commas 0.01646900177002 seconds for dot
Output for 5.4.3
0.015950918197632 seconds for commas 0.016727209091187 seconds for dot
Output for 5.4.2
0.016068935394287 seconds for commas 0.017585039138794 seconds for dot
Output for 5.4.1
0.016834020614624 seconds for commas 0.017950057983398 seconds for dot
Output for 5.4.0
0.012809991836548 seconds for commas 0.014516115188599 seconds for dot
Output for 5.3.29
0.011116027832031 seconds for commas 0.011152982711792 seconds for dot
Output for 5.3.28
0.013729095458984 seconds for commas 0.013627052307129 seconds for dot
Output for 5.3.27
0.013979911804199 seconds for commas 0.013643980026245 seconds for dot
Output for 5.3.26
0.014100074768066 seconds for commas 0.014424085617065 seconds for dot
Output for 5.3.25
0.013722896575928 seconds for commas 0.013611078262329 seconds for dot
Output for 5.3.24
0.013746976852417 seconds for commas 0.013684988021851 seconds for dot
Output for 5.3.23
0.014041900634766 seconds for commas 0.013853788375854 seconds for dot
Output for 5.3.22
0.022423028945923 seconds for commas 0.021215915679932 seconds for dot
Output for 5.3.21
0.017247915267944 seconds for commas 0.017459869384766 seconds for dot
Output for 5.3.20
0.020134925842285 seconds for commas 0.016539812088013 seconds for dot
Output for 5.3.19
0.023897886276245 seconds for commas 0.01985502243042 seconds for dot
Output for 5.3.18
0.0206298828125 seconds for commas 0.018681049346924 seconds for dot
Output for 5.3.17
0.021936893463135 seconds for commas 0.020512104034424 seconds for dot
Output for 5.3.16
0.017222881317139 seconds for commas 0.016560077667236 seconds for dot
Output for 5.3.15
0.014758825302124 seconds for commas 0.014355897903442 seconds for dot
Output for 5.3.14
0.018620014190674 seconds for commas 0.017727136611938 seconds for dot
Output for 5.3.13
0.022683143615723 seconds for commas 0.020756006240845 seconds for dot
Output for 5.3.12
0.024210929870605 seconds for commas 0.022459983825684 seconds for dot
Output for 5.3.11
0.013720989227295 seconds for commas 0.014230966567993 seconds for dot
Output for 5.3.10
0.018343210220337 seconds for commas 0.01776385307312 seconds for dot
Output for 5.3.9
0.023993968963623 seconds for commas 0.021914005279541 seconds for dot
Output for 5.3.8
0.01751184463501 seconds for commas 0.016381978988647 seconds for dot
Output for 5.3.7
0.026668071746826 seconds for commas 0.022912979125977 seconds for dot
Output for 5.3.6
0.022727012634277 seconds for commas 0.02082896232605 seconds for dot
Output for 5.3.5
0.024237155914307 seconds for commas 0.022226810455322 seconds for dot
Output for 5.3.4
0.024528980255127 seconds for commas 0.021897792816162 seconds for dot
Output for 5.3.3
0.022797107696533 seconds for commas 0.020908832550049 seconds for dot
Output for 5.3.2
0.022363901138306 seconds for commas 0.020067930221558 seconds for dot
Output for 5.3.1
0.019925832748413 seconds for commas 0.019144773483276 seconds for dot
Output for 5.3.0
0.023107051849365 seconds for commas 0.021042108535767 seconds for dot
Output for 5.2.17
0.025084018707275 seconds for commas 0.022813081741333 seconds for dot
Output for 5.2.16
0.028927087783813 seconds for commas 0.036895036697388 seconds for dot
Output for 5.2.15
0.015320777893066 seconds for commas 0.014822959899902 seconds for dot
Output for 5.2.14
0.022042036056519 seconds for commas 0.020258903503418 seconds for dot
Output for 5.2.13
0.014482975006104 seconds for commas 0.014817953109741 seconds for dot
Output for 5.2.12
0.024336099624634 seconds for commas 0.022567987442017 seconds for dot
Output for 5.2.11
0.02603816986084 seconds for commas 0.023177862167358 seconds for dot
Output for 5.2.10
0.015312194824219 seconds for commas 0.015461206436157 seconds for dot
Output for 5.2.9
0.01655387878418 seconds for commas 0.016185998916626 seconds for dot
Output for 5.2.8
0.020650148391724 seconds for commas 0.019243001937866 seconds for dot
Output for 5.2.7
0.022954940795898 seconds for commas 0.021440029144287 seconds for dot
Output for 5.2.6
0.020563840866089 seconds for commas 0.016781091690063 seconds for dot
Output for 5.2.5
0.027268886566162 seconds for commas 0.024558067321777 seconds for dot
Output for 5.2.4
0.023339986801147 seconds for commas 0.022072792053223 seconds for dot
Output for 5.2.3
0.017024993896484 seconds for commas 0.01632285118103 seconds for dot
Output for 5.2.2
0.0227210521698 seconds for commas 0.02033805847168 seconds for dot
Output for 5.2.1
0.023339986801147 seconds for commas 0.019852876663208 seconds for dot
Output for 5.2.0
0.017665863037109 seconds for commas 0.016912937164307 seconds for dot
Output for 5.1.6
0.025104999542236 seconds for commas 0.020139217376709 seconds for dot
Output for 5.1.5
0.017774820327759 seconds for commas 0.017692089080811 seconds for dot
Output for 5.1.4
0.022598028182983 seconds for commas 0.021158933639526 seconds for dot
Output for 5.1.3
0.026174068450928 seconds for commas 0.024284839630127 seconds for dot
Output for 5.1.2
0.022373199462891 seconds for commas 0.020264148712158 seconds for dot
Output for 5.1.1
0.02449893951416 seconds for commas 0.022875070571899 seconds for dot
Output for 5.1.0
0.014649868011475 seconds for commas 0.01478099822998 seconds for dot
Output for 5.0.5
0.028120994567871 seconds for commas 0.02540397644043 seconds for dot
Output for 5.0.4
0.029654026031494 seconds for commas 0.023232936859131 seconds for dot
Output for 5.0.3
0.021692991256714 seconds for commas 0.020463943481445 seconds for dot
Output for 5.0.2
0.029064893722534 seconds for commas 0.025545835494995 seconds for dot
Output for 5.0.1
0.027402877807617 seconds for commas 0.022287130355835 seconds for dot
Output for 5.0.0
0.025550127029419 seconds for commas 0.021937131881714 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/t8tfU 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/t8tfU 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/t8tfU on line 2
Process exited with code 255.