3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $NUM = 10000000; $singleQuotedStringCode = "<?php '" . str_repeat('x', $NUM) . "';"; $doubleQuotedStringCode = '<?php "' . str_repeat('x', $NUM) . '";'; $startTime = microtime(true); token_get_all($singleQuotedStringCode); $endTime = microtime(true); echo 'Single quotes: ', $endTime - $startTime, ' seconds', "\n"; $startTime = microtime(true); token_get_all($doubleQuotedStringCode); $endTime = microtime(true); echo 'Double quotes: ', $endTime - $startTime, ' seconds', "\n";
based on umX8Q
Output for 7.1.0
Single quotes: 0.042442798614502 seconds Double quotes: 0.041116952896118 seconds
Output for 7.0.14
Single quotes: 0.041173934936523 seconds Double quotes: 0.039989948272705 seconds
Output for 7.0.6
Single quotes: 0.032648086547852 seconds Double quotes: 0.032059192657471 seconds
Output for 7.0.5
Single quotes: 0.027544975280762 seconds Double quotes: 0.030245065689087 seconds
Output for 7.0.4
Single quotes: 0.028987169265747 seconds Double quotes: 0.031868934631348 seconds
Output for 7.0.3
Single quotes: 0.052012920379639 seconds Double quotes: 0.05643892288208 seconds
Output for 7.0.2
Single quotes: 0.050792932510376 seconds Double quotes: 0.052420854568481 seconds
Output for 7.0.1
Single quotes: 0.028776884078979 seconds Double quotes: 0.030842065811157 seconds
Output for 7.0.0
Single quotes: 0.032799959182739 seconds Double quotes: 0.03328800201416 seconds
Output for hhvm-3.12.0
Single quotes: 1.0611510276794 seconds Double quotes: 1.0502791404724 seconds
Output for hhvm-3.10.0
Single quotes: 1.0575530529022 seconds Double quotes: 1.0403499603271 seconds
Output for 5.6.28
Single quotes: 0.042140960693359 seconds Double quotes: 0.048120021820068 seconds
Output for 5.6.21
Single quotes: 0.031201124191284 seconds Double quotes: 0.046741962432861 seconds
Output for 5.6.20
Single quotes: 0.029568910598755 seconds Double quotes: 0.044216156005859 seconds
Output for 5.6.19
Single quotes: 0.025762796401978 seconds Double quotes: 0.031997919082642 seconds
Output for 5.6.18
Single quotes: 0.41889190673828 seconds Double quotes: 0.64840006828308 seconds
Output for 5.6.17
Single quotes: 0.041729927062988 seconds Double quotes: 0.068464994430542 seconds
Output for 5.6.16
Single quotes: 0.029793977737427 seconds Double quotes: 0.045184135437012 seconds
Output for 5.6.15
Single quotes: 0.031054019927979 seconds Double quotes: 0.046405076980591 seconds
Output for 5.6.14
Single quotes: 0.02667498588562 seconds Double quotes: 0.043077945709229 seconds
Output for 5.6.13
Single quotes: 0.023609161376953 seconds Double quotes: 0.040524005889893 seconds
Output for 5.6.12
Single quotes: 0.025841951370239 seconds Double quotes: 0.042757987976074 seconds
Output for 5.6.11
Single quotes: 0.032938003540039 seconds Double quotes: 0.048727989196777 seconds
Output for 5.6.10
Single quotes: 0.030658960342407 seconds Double quotes: 0.045083045959473 seconds
Output for 5.6.9
Single quotes: 0.03198504447937 seconds Double quotes: 0.048665046691895 seconds
Output for 5.6.8
Single quotes: 0.033854007720947 seconds Double quotes: 0.048755884170532 seconds
Output for 5.5.35
Single quotes: 0.028876066207886 seconds Double quotes: 0.040722131729126 seconds
Output for 5.5.34
Single quotes: 0.030632019042969 seconds Double quotes: 0.043765068054199 seconds
Output for 5.5.33
Single quotes: 0.032033920288086 seconds Double quotes: 0.044373035430908 seconds
Output for 5.5.32
Single quotes: 0.051154136657715 seconds Double quotes: 0.077394962310791 seconds
Output for 5.5.31
Single quotes: 0.041261911392212 seconds Double quotes: 0.062949895858765 seconds
Output for 5.5.30
Single quotes: 0.033936977386475 seconds Double quotes: 0.046625852584839 seconds
Output for 5.5.29
Single quotes: 0.031432151794434 seconds Double quotes: 0.044627904891968 seconds
Output for 5.5.28
Single quotes: 0.03380012512207 seconds Double quotes: 0.046769142150879 seconds
Output for 5.5.27
Single quotes: 0.029551982879639 seconds Double quotes: 0.042881965637207 seconds
Output for 5.5.26
Single quotes: 0.034876108169556 seconds Double quotes: 0.046931028366089 seconds
Output for 5.5.25
Single quotes: 0.029650926589966 seconds Double quotes: 0.042754173278809 seconds
Output for 5.5.24
Single quotes: 0.043901920318604 seconds Double quotes: 0.064612865447998 seconds
Output for 5.4.45
Single quotes: 0.13883090019226 seconds Double quotes: 0.067015886306763 seconds
Output for 5.4.44
Single quotes: 0.12455296516418 seconds Double quotes: 0.083409070968628 seconds
Output for 5.4.43
Single quotes: 0.13387489318848 seconds Double quotes: 0.076929092407227 seconds
Output for 5.4.42
Single quotes: 0.11173796653748 seconds Double quotes: 0.080238819122314 seconds
Output for 5.4.41
Single quotes: 0.15505886077881 seconds Double quotes: 0.12574815750122 seconds
Output for 5.4.40
Single quotes: 0.25574398040771 seconds Double quotes: 0.37864303588867 seconds
Output for 5.4.39
Single quotes: 0.073760032653809 seconds Double quotes: 0.17663311958313 seconds
Output for 5.4.38
Single quotes: 0.11939787864685 seconds Double quotes: 0.17274188995361 seconds
Output for 5.4.37
Single quotes: 0.1215660572052 seconds Double quotes: 0.16915392875671 seconds
Output for 5.4.36
Single quotes: 0.11081695556641 seconds Double quotes: 0.1470148563385 seconds
Output for 5.4.35
Single quotes: 0.11348390579224 seconds Double quotes: 0.14252400398254 seconds
Output for 5.4.34
Single quotes: 0.082442998886108 seconds Double quotes: 0.13213396072388 seconds
Output for 5.4.32
Single quotes: 0.033109188079834 seconds Double quotes: 0.04819393157959 seconds
Output for 5.4.31
Single quotes: 0.035604953765869 seconds Double quotes: 0.04351806640625 seconds
Output for 5.4.30
Single quotes: 0.033127069473267 seconds Double quotes: 0.049842834472656 seconds
Output for 5.4.29
Single quotes: 0.033331871032715 seconds Double quotes: 0.043468952178955 seconds
Output for 5.4.28
Single quotes: 0.030789136886597 seconds Double quotes: 0.043721199035645 seconds
Output for 5.4.27
Single quotes: 0.030374050140381 seconds Double quotes: 0.04320216178894 seconds
Output for 5.4.26
Single quotes: 0.030893087387085 seconds Double quotes: 0.043859004974365 seconds
Output for 5.4.25
Single quotes: 0.031124830245972 seconds Double quotes: 0.048942804336548 seconds
Output for 5.4.24
Single quotes: 0.03082799911499 seconds Double quotes: 0.048839092254639 seconds
Output for 5.4.23
Single quotes: 0.039028882980347 seconds Double quotes: 0.0573410987854 seconds
Output for 5.4.22
Single quotes: 0.030263900756836 seconds Double quotes: 0.043349981307983 seconds
Output for 5.4.21
Single quotes: 0.030152797698975 seconds Double quotes: 0.04288387298584 seconds
Output for 5.4.20
Single quotes: 0.031147956848145 seconds Double quotes: 0.044054985046387 seconds
Output for 5.4.19
Single quotes: 0.03508996963501 seconds Double quotes: 0.047664880752563 seconds
Output for 5.4.18
Single quotes: 0.030983209609985 seconds Double quotes: 0.044563055038452 seconds
Output for 5.4.17
Single quotes: 0.031136035919189 seconds Double quotes: 0.04395604133606 seconds
Output for 5.4.16
Single quotes: 0.031598091125488 seconds Double quotes: 0.043900012969971 seconds
Output for 5.4.15
Single quotes: 0.030636787414551 seconds Double quotes: 0.043941020965576 seconds
Output for 5.4.14
Single quotes: 0.029030084609985 seconds Double quotes: 0.037795066833496 seconds
Output for 5.4.13
Single quotes: 0.031351089477539 seconds Double quotes: 0.043626070022583 seconds
Output for 5.4.12
Single quotes: 0.032757997512817 seconds Double quotes: 0.039536952972412 seconds
Output for 5.4.11
Single quotes: 0.037207126617432 seconds Double quotes: 0.037446975708008 seconds
Output for 5.4.10
Single quotes: 0.035048961639404 seconds Double quotes: 0.0641770362854 seconds
Output for 5.4.9
Single quotes: 0.029661893844604 seconds Double quotes: 0.037505149841309 seconds
Output for 5.4.8
Single quotes: 0.029541969299316 seconds Double quotes: 0.036734104156494 seconds
Output for 5.4.7
Single quotes: 0.049429178237915 seconds Double quotes: 0.036870956420898 seconds
Output for 5.4.6
Single quotes: 0.032052040100098 seconds Double quotes: 0.037698030471802 seconds
Output for 5.4.5
Single quotes: 0.033348083496094 seconds Double quotes: 0.039129972457886 seconds
Output for 5.4.4
Single quotes: 0.029735088348389 seconds Double quotes: 0.034349918365479 seconds
Output for 5.4.3
Single quotes: 0.03082799911499 seconds Double quotes: 0.052170991897583 seconds
Output for 5.4.2
Single quotes: 0.03022313117981 seconds Double quotes: 0.037109136581421 seconds
Output for 5.4.1
Single quotes: 0.030335187911987 seconds Double quotes: 0.03767991065979 seconds
Output for 5.4.0
Single quotes: 0.030482053756714 seconds Double quotes: 0.037599086761475 seconds
Output for 5.3.29
Single quotes: 0.030708074569702 seconds Double quotes: 0.043730974197388 seconds
Output for 5.3.28
Single quotes: 0.031435012817383 seconds Double quotes: 0.043529033660889 seconds
Output for 5.3.27
Single quotes: 0.030505895614624 seconds Double quotes: 0.043198823928833 seconds
Output for 5.3.26
Single quotes: 0.033427953720093 seconds Double quotes: 0.043913841247559 seconds
Output for 5.3.25
Single quotes: 0.030679941177368 seconds Double quotes: 0.043256998062134 seconds
Output for 5.3.24
Single quotes: 0.030501127243042 seconds Double quotes: 0.043061017990112 seconds
Output for 5.3.23
Single quotes: 0.030604124069214 seconds Double quotes: 0.043594837188721 seconds
Output for 5.3.22
Single quotes: 0.031078100204468 seconds Double quotes: 0.037868022918701 seconds
Output for 5.3.21
Single quotes: 0.030440092086792 seconds Double quotes: 0.037676811218262 seconds
Output for 5.3.20
Single quotes: 0.030418157577515 seconds Double quotes: 0.037769079208374 seconds
Output for 5.3.19
Single quotes: 0.030631065368652 seconds Double quotes: 0.03816294670105 seconds
Output for 5.3.18
Single quotes: 0.031066179275513 seconds Double quotes: 0.037951946258545 seconds
Output for 5.3.17
Single quotes: 0.030570983886719 seconds Double quotes: 0.037978887557983 seconds
Output for 5.3.16
Single quotes: 0.031444072723389 seconds Double quotes: 0.038249969482422 seconds
Output for 5.3.15
Single quotes: 0.030030012130737 seconds Double quotes: 0.037726163864136 seconds
Output for 5.3.14
Single quotes: 0.030753135681152 seconds Double quotes: 0.038147926330566 seconds
Output for 5.3.13
Single quotes: 0.030738115310669 seconds Double quotes: 0.037448883056641 seconds
Output for 5.3.12
Single quotes: 0.030164003372192 seconds Double quotes: 0.037808179855347 seconds
Output for 5.3.11
Single quotes: 0.031022071838379 seconds Double quotes: 0.037869215011597 seconds
Output for 5.3.10
Single quotes: 0.03071403503418 seconds Double quotes: 0.038586854934692 seconds
Output for 5.3.9
Single quotes: 0.02960991859436 seconds Double quotes: 0.032541036605835 seconds
Output for 5.3.8
Single quotes: 0.030339002609253 seconds Double quotes: 0.037662982940674 seconds
Output for 5.3.7
Single quotes: 0.03034520149231 seconds Double quotes: 0.038305997848511 seconds
Output for 5.3.6
Single quotes: 0.03038501739502 seconds Double quotes: 0.040194034576416 seconds
Output for 5.3.5
Single quotes: 0.030941009521484 seconds Double quotes: 0.037955045700073 seconds
Output for 5.3.4
Single quotes: 0.031446933746338 seconds Double quotes: 0.038065910339355 seconds
Output for 5.3.3
Single quotes: 0.031123161315918 seconds Double quotes: 0.03742504119873 seconds
Output for 5.3.2
Single quotes: 0.029780864715576 seconds Double quotes: 0.036844968795776 seconds
Output for 5.3.1
Single quotes: 0.030303955078125 seconds Double quotes: 0.037744045257568 seconds
Output for 5.3.0
Single quotes: 0.030019044876099 seconds Double quotes: 0.037147045135498 seconds
Output for 5.2.17
Single quotes: 0.079263925552368 seconds Double quotes: 0.075896978378296 seconds
Output for 5.2.16
Single quotes: 0.080001831054688 seconds Double quotes: 0.085042953491211 seconds
Output for 5.2.15
Single quotes: 0.079830884933472 seconds Double quotes: 0.08198094367981 seconds
Output for 5.2.14
Single quotes: 0.080379962921143 seconds Double quotes: 0.083824872970581 seconds
Output for 5.2.13
Single quotes: 0.080902099609375 seconds Double quotes: 0.082050085067749 seconds
Output for 5.2.12
Single quotes: 0.08020806312561 seconds Double quotes: 0.081863164901733 seconds
Output for 5.2.11
Single quotes: 0.080645084381104 seconds Double quotes: 0.086872100830078 seconds
Output for 5.2.10
Single quotes: 0.081207036972046 seconds Double quotes: 0.087116956710815 seconds
Output for 5.2.9
Single quotes: 0.089331865310669 seconds Double quotes: 0.083158016204834 seconds
Output for 5.2.8
Single quotes: 0.081014156341553 seconds Double quotes: 0.081701993942261 seconds
Output for 5.2.7
Single quotes: 0.080698013305664 seconds Double quotes: 0.082243204116821 seconds
Output for 5.2.6
Single quotes: 0.080087900161743 seconds Double quotes: 0.086087942123413 seconds
Output for 5.2.5
Single quotes: 0.081365823745728 seconds Double quotes: 0.08303689956665 seconds
Output for 5.2.4
Single quotes: 0.082005023956299 seconds Double quotes: 0.089751005172729 seconds
Output for 5.2.3
Single quotes: 0.080610990524292 seconds Double quotes: 0.083931922912598 seconds
Output for 5.2.2
Single quotes: 0.096723079681396 seconds Double quotes: 0.10301804542542 seconds
Output for 5.2.1
Single quotes: 0.11256408691406 seconds Double quotes: 0.099914789199829 seconds
Output for 5.2.0
Single quotes: 0.083989143371582 seconds Double quotes: 0.084654092788696 seconds
Output for 5.1.6
Single quotes: 0.086834192276001 seconds Double quotes: 0.087010145187378 seconds
Output for 5.1.5
Single quotes: 0.084163188934326 seconds Double quotes: 0.085057973861694 seconds
Output for 5.1.4
Single quotes: 0.082978010177612 seconds Double quotes: 0.084136009216309 seconds
Output for 5.1.3
Single quotes: 0.0833740234375 seconds Double quotes: 0.084373950958252 seconds
Output for 5.1.2
Single quotes: 0.083396911621094 seconds Double quotes: 0.08502197265625 seconds
Output for 5.1.1
Single quotes: 0.091932773590088 seconds Double quotes: 0.084699869155884 seconds
Output for 5.1.0
Single quotes: 0.082543849945068 seconds Double quotes: 0.084405899047852 seconds
Output for 5.0.5
Single quotes: 0.095606088638306 seconds Double quotes: 0.10084199905396 seconds
Output for 5.0.4
Single quotes: 0.095885992050171 seconds Double quotes: 0.096909999847412 seconds
Output for 5.0.3
Single quotes: 0.10707402229309 seconds Double quotes: 0.099583864212036 seconds
Output for 5.0.2
Single quotes: 0.095332860946655 seconds Double quotes: 0.096360921859741 seconds
Output for 5.0.1
Single quotes: 0.095416069030762 seconds Double quotes: 0.096676111221313 seconds
Output for 5.0.0
Single quotes: 0.096522808074951 seconds Double quotes: 0.09735107421875 seconds
Output for 4.4.9
Single quotes: 0.086064 seconds Double quotes: -0.912034 seconds
Output for 4.4.8
Single quotes: 0.084184 seconds Double quotes: 0.087433 seconds
Output for 4.4.7
Single quotes: 0.084014 seconds Double quotes: 0.087224 seconds
Output for 4.4.6
Single quotes: 0.083927 seconds Double quotes: 0.086733 seconds
Output for 4.4.5
Single quotes: 0.083982 seconds Double quotes: 0.089019 seconds
Output for 4.4.4
Single quotes: -0.915196 seconds Double quotes: 0.086777 seconds
Output for 4.4.3
Single quotes: 0.083388 seconds Double quotes: 0.086842 seconds
Output for 4.4.2
Single quotes: 0.085518 seconds Double quotes: 0.092599 seconds
Output for 4.4.1
Single quotes: 0.083693 seconds Double quotes: 0.084508 seconds
Output for 4.4.0
Single quotes: 0.084458 seconds Double quotes: -0.915549 seconds
Output for 4.3.11
Single quotes: 0.082512 seconds Double quotes: 0.084591 seconds
Output for 4.3.10
Single quotes: 0.083684 seconds Double quotes: 0.087973 seconds
Output for 4.3.9
Single quotes: 0.136101 seconds Double quotes: 0.110104 seconds
Output for 4.3.8
Single quotes: 0.086935 seconds Double quotes: 0.086583 seconds
Output for 4.3.7
Single quotes: 0.083039 seconds Double quotes: 0.086005 seconds
Output for 4.3.6
Single quotes: 0.083569 seconds Double quotes: 0.084234 seconds
Output for 4.3.5
Single quotes: 0.084349 seconds Double quotes: 0.089975 seconds
Output for 4.3.4
Single quotes: 0.084525 seconds Double quotes: 0.083454 seconds
Output for 4.3.3
Single quotes: 0.083938 seconds Double quotes: -0.915776 seconds
Output for 4.3.2
Single quotes: 0.083243 seconds Double quotes: 0.090422 seconds
Output for 4.3.1
Single quotes: 0.095393 seconds Double quotes: 0.097522 seconds
Output for 4.3.0
Single quotes: 0.124363 seconds Double quotes: 0.169444 seconds