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++ < 100000) 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++ < 100000) 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.14692401885986 seconds for commas 0.11173415184021 seconds for dot
Output for 7.0.14
0.13863086700439 seconds for commas 0.10240602493286 seconds for dot
Output for 7.0.6
0.11414790153503 seconds for commas 0.1102499961853 seconds for dot
Output for 7.0.5
0.10266709327698 seconds for commas 0.10897397994995 seconds for dot
Output for 7.0.4
0.11542510986328 seconds for commas 0.097130060195923 seconds for dot
Output for 7.0.3
0.12259387969971 seconds for commas 0.1197509765625 seconds for dot
Output for 7.0.2
0.118647813797 seconds for commas 0.11997699737549 seconds for dot
Output for 7.0.1
0.11503100395203 seconds for commas 0.11757898330688 seconds for dot
Output for 7.0.0
0.12616205215454 seconds for commas 0.10892605781555 seconds for dot
Output for 5.6.28
0.16523599624634 seconds for commas 0.12005591392517 seconds for dot
Output for 5.6.21
0.12192893028259 seconds for commas 0.1399130821228 seconds for dot
Output for 5.6.20
0.12460899353027 seconds for commas 0.13133883476257 seconds for dot
Output for 5.6.19
0.11756801605225 seconds for commas 0.12406396865845 seconds for dot
Output for 5.6.18
0.12624311447144 seconds for commas 0.15099596977234 seconds for dot
Output for 5.6.17
0.10907006263733 seconds for commas 0.13817310333252 seconds for dot
Output for 5.6.16
0.13056612014771 seconds for commas 0.15022706985474 seconds for dot
Output for 5.6.15
0.16747713088989 seconds for commas 0.13188004493713 seconds for dot
Output for 5.6.14
0.10979509353638 seconds for commas 0.12771511077881 seconds for dot
Output for 5.6.13
0.13761496543884 seconds for commas 0.13591718673706 seconds for dot
Output for 5.6.12
0.11279106140137 seconds for commas 0.13163304328918 seconds for dot
Output for 5.6.11
0.12231397628784 seconds for commas 0.12954688072205 seconds for dot
Output for 5.6.10
0.11473894119263 seconds for commas 0.12869596481323 seconds for dot
Output for 5.6.9
0.10849404335022 seconds for commas 0.1276741027832 seconds for dot
Output for 5.6.8
0.11829900741577 seconds for commas 0.13658094406128 seconds for dot
Output for 5.5.35
0.14192700386047 seconds for commas 0.13992190361023 seconds for dot
Output for 5.5.34
0.12633299827576 seconds for commas 0.13519191741943 seconds for dot
Output for 5.5.33
0.1259458065033 seconds for commas 0.12446689605713 seconds for dot
Output for 5.5.32
0.1372230052948 seconds for commas 0.13380002975464 seconds for dot
Output for 5.5.31
0.12716293334961 seconds for commas 0.14741110801697 seconds for dot
Output for 5.5.30
0.13170909881592 seconds for commas 0.13578701019287 seconds for dot
Output for 5.5.29
0.13297390937805 seconds for commas 0.14319896697998 seconds for dot
Output for 5.5.28
0.14566993713379 seconds for commas 0.1376781463623 seconds for dot
Output for 5.5.27
0.13460302352905 seconds for commas 0.13720679283142 seconds for dot
Output for 5.5.26
0.13750195503235 seconds for commas 0.15108895301819 seconds for dot
Output for 5.5.25
0.13051295280457 seconds for commas 0.13764190673828 seconds for dot
Output for 5.5.24
0.12716293334961 seconds for commas 0.13284087181091 seconds for dot
Output for 5.4.45
0.17516303062439 seconds for commas 0.18973207473755 seconds for dot
Output for 5.4.44
0.11955904960632 seconds for commas 0.128005027771 seconds for dot
Output for 5.4.43
0.13728785514832 seconds for commas 0.12457299232483 seconds for dot
Output for 5.4.42
0.11441612243652 seconds for commas 0.12290692329407 seconds for dot
Output for 5.4.41
0.11414003372192 seconds for commas 0.12098097801208 seconds for dot
Output for 5.4.40
0.13595700263977 seconds for commas 0.12857508659363 seconds for dot
Output for 5.4.39
0.11532187461853 seconds for commas 0.12376499176025 seconds for dot
Output for 5.4.38
0.13176584243774 seconds for commas 0.66668605804443 seconds for dot
Output for 5.4.37
0.17452001571655 seconds for commas 0.19409489631653 seconds for dot
Output for 5.4.36
0.13874197006226 seconds for commas 0.1292200088501 seconds for dot
Output for 5.4.35
0.11966395378113 seconds for commas 0.12112498283386 seconds for dot
Output for 5.4.34
0.11218595504761 seconds for commas 0.11978602409363 seconds for dot
Output for 5.4.32
0.12687110900879 seconds for commas 0.12340998649597 seconds for dot
Output for 5.4.31
0.11357092857361 seconds for commas 0.13234090805054 seconds for dot
Output for 5.4.30
0.13557505607605 seconds for commas 0.12632298469543 seconds for dot
Output for 5.4.29
0.14103102684021 seconds for commas 0.12491106987 seconds for dot
Output for 5.4.28
0.13364195823669 seconds for commas 0.11765599250793 seconds for dot
Output for 5.4.27
0.13229608535767 seconds for commas 0.13586187362671 seconds for dot
Output for 5.4.26
0.134516954422 seconds for commas 0.12593603134155 seconds for dot
Output for 5.4.25
0.1127610206604 seconds for commas 0.12313795089722 seconds for dot
Output for 5.4.24
0.14134907722473 seconds for commas 0.14369297027588 seconds for dot
Output for 5.4.23
0.13039302825928 seconds for commas 0.12215399742126 seconds for dot
Output for 5.4.22
0.13610982894897 seconds for commas 0.12600207328796 seconds for dot
Output for 5.4.21
0.1239697933197 seconds for commas 0.12262606620789 seconds for dot
Output for 5.4.20
0.13130497932434 seconds for commas 0.1206591129303 seconds for dot
Output for 5.4.19
0.1130108833313 seconds for commas 0.12316799163818 seconds for dot
Output for 5.4.18
0.13004183769226 seconds for commas 0.12459802627563 seconds for dot
Output for 5.4.17
0.12232708930969 seconds for commas 0.12514996528625 seconds for dot
Output for 5.4.16
0.12374901771545 seconds for commas 0.12745499610901 seconds for dot
Output for 5.4.15
0.13161516189575 seconds for commas 0.12199592590332 seconds for dot
Output for 5.4.14
0.12823390960693 seconds for commas 0.13196992874146 seconds for dot
Output for 5.4.13
0.1386570930481 seconds for commas 0.12281084060669 seconds for dot
Output for 5.4.12
0.1172399520874 seconds for commas 0.12036299705505 seconds for dot
Output for 5.4.11
0.11258387565613 seconds for commas 0.12568187713623 seconds for dot
Output for 5.4.10
0.12123608589172 seconds for commas 0.11907291412354 seconds for dot
Output for 5.4.9
0.17007780075073 seconds for commas 0.17898893356323 seconds for dot
Output for 5.4.8
0.11307096481323 seconds for commas 0.11940908432007 seconds for dot
Output for 5.4.7
0.11038303375244 seconds for commas 0.11829209327698 seconds for dot
Output for 5.4.6
0.11003017425537 seconds for commas 0.11787796020508 seconds for dot
Output for 5.4.5
0.10787892341614 seconds for commas 0.11789298057556 seconds for dot
Output for 5.4.4
0.11104989051819 seconds for commas 0.11618781089783 seconds for dot
Output for 5.4.3
0.13836002349854 seconds for commas 0.12160396575928 seconds for dot
Output for 5.4.2
0.12792277336121 seconds for commas 0.13068509101868 seconds for dot
Output for 5.4.1
0.13679504394531 seconds for commas 0.11964106559753 seconds for dot
Output for 5.4.0
0.14800095558167 seconds for commas 0.1391909122467 seconds for dot
Output for 5.3.29
0.112468957901 seconds for commas 0.12773203849792 seconds for dot
Output for 5.3.28
0.12862300872803 seconds for commas 0.12764000892639 seconds for dot
Output for 5.3.27
0.12279486656189 seconds for commas 0.12829780578613 seconds for dot
Output for 5.3.26
0.12305998802185 seconds for commas 0.12652587890625 seconds for dot
Output for 5.3.25
0.11870384216309 seconds for commas 0.12578201293945 seconds for dot
Output for 5.3.24
0.12470078468323 seconds for commas 0.12901592254639 seconds for dot
Output for 5.3.23
0.14485788345337 seconds for commas 0.15887594223022 seconds for dot
Output for 5.3.22
0.11572289466858 seconds for commas 0.12427306175232 seconds for dot
Output for 5.3.21
0.12087202072144 seconds for commas 0.13885688781738 seconds for dot
Output for 5.3.20
0.13234400749207 seconds for commas 0.14254307746887 seconds for dot
Output for 5.3.19
0.1133508682251 seconds for commas 0.12566304206848 seconds for dot
Output for 5.3.18
0.12621998786926 seconds for commas 0.13278698921204 seconds for dot
Output for 5.3.17
0.12111282348633 seconds for commas 0.12609195709229 seconds for dot
Output for 5.3.16
0.11122798919678 seconds for commas 0.12666487693787 seconds for dot
Output for 5.3.15
0.15421986579895 seconds for commas 0.14007997512817 seconds for dot
Output for 5.3.14
0.11218500137329 seconds for commas 0.12213397026062 seconds for dot
Output for 5.3.13
0.11789417266846 seconds for commas 0.12683796882629 seconds for dot
Output for 5.3.12
0.12586617469788 seconds for commas 0.1350269317627 seconds for dot
Output for 5.3.11
0.13277101516724 seconds for commas 0.13592386245728 seconds for dot
Output for 5.3.10
0.12529110908508 seconds for commas 0.12809991836548 seconds for dot
Output for 5.3.9
0.16053295135498 seconds for commas 0.16717505455017 seconds for dot
Output for 5.3.8
0.13511800765991 seconds for commas 0.12827205657959 seconds for dot
Output for 5.3.7
0.134122133255 seconds for commas 0.1387619972229 seconds for dot
Output for 5.3.6
0.1432638168335 seconds for commas 0.13433289527893 seconds for dot
Output for 5.3.5
0.13481712341309 seconds for commas 0.12582802772522 seconds for dot
Output for 5.3.4
0.14300799369812 seconds for commas 0.14084887504578 seconds for dot
Output for 5.3.3
0.12715101242065 seconds for commas 0.13120102882385 seconds for dot
Output for 5.3.2
0.12323403358459 seconds for commas 0.13100290298462 seconds for dot
Output for 5.3.1
0.14583802223206 seconds for commas 0.16568183898926 seconds for dot
Output for 5.3.0
0.13908815383911 seconds for commas 0.13067889213562 seconds for dot
Output for 5.2.17
0.15189814567566 seconds for commas 0.12973999977112 seconds for dot
Output for 5.2.16
0.14527416229248 seconds for commas 0.13924503326416 seconds for dot
Output for 5.2.15
0.14553499221802 seconds for commas 0.13437700271606 seconds for dot
Output for 5.2.14
0.1488299369812 seconds for commas 0.13365197181702 seconds for dot
Output for 5.2.13
0.14873313903809 seconds for commas 0.13152480125427 seconds for dot
Output for 5.2.12
0.14897704124451 seconds for commas 0.13685202598572 seconds for dot
Output for 5.2.11
0.17997097969055 seconds for commas 0.17762804031372 seconds for dot
Output for 5.2.10
0.14239096641541 seconds for commas 0.13299894332886 seconds for dot
Output for 5.2.9
0.14287686347961 seconds for commas 0.13250780105591 seconds for dot
Output for 5.2.8
0.11635088920593 seconds for commas 0.13010096549988 seconds for dot
Output for 5.2.7
0.11733794212341 seconds for commas 0.13511991500854 seconds for dot
Output for 5.2.6
0.12802290916443 seconds for commas 0.13287305831909 seconds for dot
Output for 5.2.5
0.18365502357483 seconds for commas 0.17315697669983 seconds for dot
Output for 5.2.4
0.14704990386963 seconds for commas 0.13611197471619 seconds for dot
Output for 5.2.3
0.12274694442749 seconds for commas 0.13374209403992 seconds for dot
Output for 5.2.2
0.14181995391846 seconds for commas 0.13351511955261 seconds for dot
Output for 5.2.1
0.14761090278625 seconds for commas 0.14619302749634 seconds for dot
Output for 5.2.0
0.1535918712616 seconds for commas 0.17434811592102 seconds for dot
Output for 5.1.6
0.1435329914093 seconds for commas 0.1318519115448 seconds for dot
Output for 5.1.5
0.14137506484985 seconds for commas 0.13016319274902 seconds for dot
Output for 5.1.4
0.1321849822998 seconds for commas 0.12760901451111 seconds for dot
Output for 5.1.3
0.13450598716736 seconds for commas 0.12752890586853 seconds for dot
Output for 5.1.2
0.18019390106201 seconds for commas 0.1700758934021 seconds for dot
Output for 5.1.1
0.14729809761047 seconds for commas 0.12950205802917 seconds for dot
Output for 5.1.0
0.11425399780273 seconds for commas 0.1238579750061 seconds for dot
Output for 5.0.5
0.17655301094055 seconds for commas 0.14986205101013 seconds for dot
Output for 5.0.4
0.14829397201538 seconds for commas 0.14765310287476 seconds for dot
Output for 5.0.3
0.16475200653076 seconds for commas 0.14455318450928 seconds for dot
Output for 5.0.2
0.16670393943787 seconds for commas 0.14318799972534 seconds for dot
Output for 5.0.1
0.1523699760437 seconds for commas 0.14055395126343 seconds for dot
Output for 5.0.0
0.15442204475403 seconds for commas 0.15292596817017 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/fYR48 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/fYR48 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/fYR48 on line 2
Process exited with code 255.