3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo '<pre>'; const 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";
Output for 7.1.0
<pre>Single quotes: 0.026597023010254 seconds Double quotes: 0.028559923171997 seconds
Output for 7.0.14
<pre>Single quotes: 0.042124032974243 seconds Double quotes: 0.040702819824219 seconds
Output for 7.0.7
<pre>Single quotes: 0.026805877685547 seconds Double quotes: 0.027276992797852 seconds
Output for 7.0.6
<pre>Single quotes: 0.025398015975952 seconds Double quotes: 0.026163816452026 seconds
Output for 7.0.5
<pre>Single quotes: 0.026658058166504 seconds Double quotes: 0.02696704864502 seconds
Output for 7.0.4
<pre>Single quotes: 0.026538848876953 seconds Double quotes: 0.02718710899353 seconds
Output for 7.0.3
<pre>Single quotes: 0.029092073440552 seconds Double quotes: 0.030043125152588 seconds
Output for 7.0.2
<pre>Single quotes: 0.0329430103302 seconds Double quotes: 0.035223007202148 seconds
Output for 7.0.1
<pre>Single quotes: 0.022548913955688 seconds Double quotes: 0.026131868362427 seconds
Output for 7.0.0
<pre>Single quotes: 0.027179002761841 seconds Double quotes: 0.029150009155273 seconds
Output for 5.6.28
<pre>Single quotes: 0.040552139282227 seconds Double quotes: 0.048497200012207 seconds
Output for 5.6.22
<pre>Single quotes: 0.033928871154785 seconds Double quotes: 0.046817064285278 seconds
Output for 5.6.21
<pre>Single quotes: 0.028039932250977 seconds Double quotes: 0.040132999420166 seconds
Output for 5.6.20
<pre>Single quotes: 0.028474092483521 seconds Double quotes: 0.044811010360718 seconds
Output for 5.6.19
<pre>Single quotes: 0.027589082717896 seconds Double quotes: 0.044316053390503 seconds
Output for 5.6.18
<pre>Single quotes: 0.030780076980591 seconds Double quotes: 0.047940015792847 seconds
Output for 5.6.17
<pre>Single quotes: 0.027715921401978 seconds Double quotes: 0.044188022613525 seconds
Output for 5.6.16
<pre>Single quotes: 0.029800176620483 seconds Double quotes: 0.047982931137085 seconds
Output for 5.6.15
<pre>Single quotes: 0.030158996582031 seconds Double quotes: 0.040781021118164 seconds
Output for 5.6.14
<pre>Single quotes: 0.031784057617188 seconds Double quotes: 0.048612833023071 seconds
Output for 5.6.13
<pre>Single quotes: 0.022078990936279 seconds Double quotes: 0.037330865859985 seconds
Output for 5.6.12
<pre>Single quotes: 0.024220943450928 seconds Double quotes: 0.040804862976074 seconds
Output for 5.6.11
<pre>Single quotes: 0.020884990692139 seconds Double quotes: 0.036819934844971 seconds
Output for 5.6.10
<pre>Single quotes: 0.021373987197876 seconds Double quotes: 0.037775039672852 seconds
Output for 5.6.9
<pre>Single quotes: 0.025363922119141 seconds Double quotes: 0.041177034378052 seconds
Output for 5.6.8
<pre>Single quotes: 0.022880077362061 seconds Double quotes: 0.037992000579834 seconds
Output for 5.6.7
<pre>Single quotes: 0.02999210357666 seconds Double quotes: 0.041083097457886 seconds
Output for 5.6.6
<pre>Single quotes: 0.030504941940308 seconds Double quotes: 0.037235021591187 seconds
Output for 5.6.5
<pre>Single quotes: 0.020004987716675 seconds Double quotes: 0.035881996154785 seconds
Output for 5.6.4
<pre>Single quotes: 0.026501893997192 seconds Double quotes: 0.041331052780151 seconds
Output for 5.6.3
<pre>Single quotes: 0.020107984542847 seconds Double quotes: 0.036029100418091 seconds
Output for 5.6.2
<pre>Single quotes: 0.017786979675293 seconds Double quotes: 0.031171083450317 seconds
Output for 5.6.1
<pre>Single quotes: 0.020225048065186 seconds Double quotes: 0.036020040512085 seconds
Output for 5.6.0
<pre>Single quotes: 0.022207975387573 seconds Double quotes: 0.037409067153931 seconds
Output for 5.5.36
<pre>Single quotes: 0.033460855484009 seconds Double quotes: 0.047583103179932 seconds
Output for 5.5.35
<pre>Single quotes: 0.033115148544312 seconds Double quotes: 0.042696952819824 seconds
Output for 5.5.34
<pre>Single quotes: 0.032552003860474 seconds Double quotes: 0.041992902755737 seconds
Output for 5.5.33
<pre>Single quotes: 0.035614967346191 seconds Double quotes: 0.04187798500061 seconds
Output for 5.5.32
<pre>Single quotes: 0.034210920333862 seconds Double quotes: 0.048696994781494 seconds
Output for 5.5.31
<pre>Single quotes: 0.024832963943481 seconds Double quotes: 0.037986993789673 seconds
Output for 5.5.30
<pre>Single quotes: 0.028011083602905 seconds Double quotes: 0.041071891784668 seconds
Output for 5.5.29
<pre>Single quotes: 0.033169031143188 seconds Double quotes: 0.045161008834839 seconds
Output for 5.5.28
<pre>Single quotes: 0.022140979766846 seconds Double quotes: 0.035991907119751 seconds
Output for 5.5.27
<pre>Single quotes: 0.024461030960083 seconds Double quotes: 0.037688016891479 seconds
Output for 5.5.26
<pre>Single quotes: 0.027504920959473 seconds Double quotes: 0.039293050765991 seconds
Output for 5.5.25
<pre>Single quotes: 0.032964944839478 seconds Double quotes: 0.046319961547852 seconds
Output for 5.5.24
<pre>Single quotes: 0.035530090332031 seconds Double quotes: 0.050140857696533 seconds
Output for 5.5.23
<pre>Single quotes: 0.034390926361084 seconds Double quotes: 0.048761129379272 seconds
Output for 5.5.22
<pre>Single quotes: 0.023271799087524 seconds Double quotes: 0.036463975906372 seconds
Output for 5.5.21
<pre>Single quotes: 0.022011041641235 seconds Double quotes: 0.036004066467285 seconds
Output for 5.5.20
<pre>Single quotes: 0.027801036834717 seconds Double quotes: 0.042351007461548 seconds
Output for 5.5.19
<pre>Single quotes: 0.023122072219849 seconds Double quotes: 0.036930084228516 seconds
Output for 5.5.18
<pre>Single quotes: 0.021546125411987 seconds Double quotes: 0.031660079956055 seconds
Output for 5.5.16
<pre>Single quotes: 0.019686937332153 seconds Double quotes: 0.031078100204468 seconds
Output for 5.5.15
<pre>Single quotes: 0.019248008728027 seconds Double quotes: 0.031503915786743 seconds
Output for 5.5.14
<pre>Single quotes: 0.021982908248901 seconds Double quotes: 0.036298990249634 seconds
Output for 5.5.13
<pre>Single quotes: 0.019002914428711 seconds Double quotes: 0.030815839767456 seconds
Output for 5.5.12
<pre>Single quotes: 0.029409885406494 seconds Double quotes: 0.040019035339355 seconds
Output for 5.5.11
<pre>Single quotes: 0.031190156936646 seconds Double quotes: 0.043201923370361 seconds
Output for 5.5.10
<pre>Single quotes: 0.024200916290283 seconds Double quotes: 0.037470102310181 seconds
Output for 5.5.9
<pre>Single quotes: 0.027858018875122 seconds Double quotes: 0.041669845581055 seconds
Output for 5.5.8
<pre>Single quotes: 0.031333923339844 seconds Double quotes: 0.041068077087402 seconds
Output for 5.5.7
<pre>Single quotes: 0.032565116882324 seconds Double quotes: 0.045675039291382 seconds
Output for 5.5.6
<pre>Single quotes: 0.028031826019287 seconds Double quotes: 0.040830850601196 seconds
Output for 5.5.5
<pre>Single quotes: 0.02493691444397 seconds Double quotes: 0.032840967178345 seconds
Output for 5.5.4
<pre>Single quotes: 0.035174131393433 seconds Double quotes: 0.046015024185181 seconds
Output for 5.5.3
<pre>Single quotes: 0.032926082611084 seconds Double quotes: 0.040579080581665 seconds
Output for 5.5.2
<pre>Single quotes: 0.034886837005615 seconds Double quotes: 0.049489974975586 seconds
Output for 5.5.1
<pre>Single quotes: 0.034433841705322 seconds Double quotes: 0.048686027526855 seconds
Output for 5.5.0
<pre>Single quotes: 0.024461030960083 seconds Double quotes: 0.038274049758911 seconds
Output for 5.4.45
<pre>Single quotes: 0.027385950088501 seconds Double quotes: 0.042266845703125 seconds
Output for 5.4.44
<pre>Single quotes: 0.019835948944092 seconds Double quotes: 0.035881996154785 seconds
Output for 5.4.43
<pre>Single quotes: 0.022005796432495 seconds Double quotes: 0.036345958709717 seconds
Output for 5.4.42
<pre>Single quotes: 0.021233081817627 seconds Double quotes: 0.037493944168091 seconds
Output for 5.4.41
<pre>Single quotes: 0.022571086883545 seconds Double quotes: 0.037315130233765 seconds
Output for 5.4.40
<pre>Single quotes: 0.032015085220337 seconds Double quotes: 0.050102949142456 seconds
Output for 5.4.39
<pre>Single quotes: 0.031370162963867 seconds Double quotes: 0.048732042312622 seconds
Output for 5.4.38
<pre>Single quotes: 0.023538112640381 seconds Double quotes: 0.040580987930298 seconds
Output for 5.4.37
<pre>Single quotes: 0.020153045654297 seconds Double quotes: 0.037152051925659 seconds
Output for 5.4.36
<pre>Single quotes: 0.023435831069946 seconds Double quotes: 0.032845973968506 seconds
Output for 5.4.35
<pre>Single quotes: 0.021127939224243 seconds Double quotes: 0.035743951797485 seconds
Output for 5.4.34
<pre>Single quotes: 0.019550085067749 seconds Double quotes: 0.033560037612915 seconds
Output for 5.4.32
<pre>Single quotes: 0.020328044891357 seconds Double quotes: 0.035827875137329 seconds
Output for 5.4.31
<pre>Single quotes: 0.022287130355835 seconds Double quotes: 0.037101030349731 seconds
Output for 5.4.30
<pre>Single quotes: 0.018306016921997 seconds Double quotes: 0.033116817474365 seconds
Output for 5.4.29
<pre>Single quotes: 0.027259111404419 seconds Double quotes: 0.037188053131104 seconds
Output for 5.4.28
<pre>Single quotes: 0.028170108795166 seconds Double quotes: 0.04599404335022 seconds
Output for 5.4.27
<pre>Single quotes: 0.029276132583618 seconds Double quotes: 0.044305086135864 seconds
Output for 5.4.26
<pre>Single quotes: 0.027108907699585 seconds Double quotes: 0.040231943130493 seconds
Output for 5.4.25
<pre>Single quotes: 0.032377958297729 seconds Double quotes: 0.047935009002686 seconds
Output for 5.4.24
<pre>Single quotes: 0.032721996307373 seconds Double quotes: 0.049716949462891 seconds
Output for 5.4.23
<pre>Single quotes: 0.023813009262085 seconds Double quotes: 0.037421941757202 seconds
Output for 5.4.22
<pre>Single quotes: 0.027486085891724 seconds Double quotes: 0.044121026992798 seconds
Output for 5.4.21
<pre>Single quotes: 0.031484842300415 seconds Double quotes: 0.04047703742981 seconds
Output for 5.4.20
<pre>Single quotes: 0.027101993560791 seconds Double quotes: 0.040853977203369 seconds
Output for 5.4.19
<pre>Single quotes: 0.029129028320312 seconds Double quotes: 0.038084983825684 seconds
Output for 5.4.18
<pre>Single quotes: 0.031397104263306 seconds Double quotes: 0.046320915222168 seconds
Output for 5.4.17
<pre>Single quotes: 0.031589031219482 seconds Double quotes: 0.050490140914917 seconds
Output for 5.4.16
<pre>Single quotes: 0.022763013839722 seconds Double quotes: 0.038469076156616 seconds
Output for 5.4.15
<pre>Single quotes: 0.02099609375 seconds Double quotes: 0.037178993225098 seconds
Output for 5.4.14
<pre>Single quotes: 0.023272037506104 seconds Double quotes: 0.037348031997681 seconds
Output for 5.4.13
<pre>Single quotes: 0.024307012557983 seconds Double quotes: 0.03733491897583 seconds
Output for 5.4.12
<pre>Single quotes: 0.032742977142334 seconds Double quotes: 0.040926933288574 seconds
Output for 5.4.11
<pre>Single quotes: 0.033069849014282 seconds Double quotes: 0.050523996353149 seconds
Output for 5.4.10
<pre>Single quotes: 0.034790992736816 seconds Double quotes: 0.049606084823608 seconds
Output for 5.4.9
<pre>Single quotes: 0.034711122512817 seconds Double quotes: 0.050957202911377 seconds
Output for 5.4.8
<pre>Single quotes: 0.034017086029053 seconds Double quotes: 0.049316167831421 seconds
Output for 5.4.7
<pre>Single quotes: 0.026087999343872 seconds Double quotes: 0.040235996246338 seconds
Output for 5.4.6
<pre>Single quotes: 0.021902084350586 seconds Double quotes: 0.037510871887207 seconds
Output for 5.4.5
<pre>Single quotes: 0.03330397605896 seconds Double quotes: 0.049053907394409 seconds
Output for 5.4.4
<pre>Single quotes: 0.028068065643311 seconds Double quotes: 0.046125888824463 seconds
Output for 5.4.3
<pre>Single quotes: 0.030963897705078 seconds Double quotes: 0.042830944061279 seconds
Output for 5.4.2
<pre>Single quotes: 0.022039890289307 seconds Double quotes: 0.040506839752197 seconds
Output for 5.4.1
<pre>Single quotes: 0.0314781665802 seconds Double quotes: 0.050680875778198 seconds
Output for 5.4.0
<pre>Single quotes: 0.031522035598755 seconds Double quotes: 0.040963172912598 seconds
Output for 5.3.29
<pre>Single quotes: 0.017682075500488 seconds Double quotes: 0.031194925308228 seconds
Output for 5.3.28
<pre>Single quotes: 0.02294397354126 seconds Double quotes: 0.038602113723755 seconds
Output for 5.3.27
<pre>Single quotes: 0.032019138336182 seconds Double quotes: 0.049093008041382 seconds
Output for 5.3.26
<pre>Single quotes: 0.022413969039917 seconds Double quotes: 0.038731098175049 seconds
Output for 5.3.25
<pre>Single quotes: 0.027302026748657 seconds Double quotes: 0.044157981872559 seconds
Output for 5.3.24
<pre>Single quotes: 0.031294107437134 seconds Double quotes: 0.049633026123047 seconds
Output for 5.3.23
<pre>Single quotes: 0.029536962509155 seconds Double quotes: 0.045854091644287 seconds
Output for 5.3.22
<pre>Single quotes: 0.031325101852417 seconds Double quotes: 0.03758692741394 seconds
Output for 5.3.21
<pre>Single quotes: 0.025393962860107 seconds Double quotes: 0.03016209602356 seconds
Output for 5.3.20
<pre>Single quotes: 0.030547857284546 seconds Double quotes: 0.035665988922119 seconds
Output for 5.3.19
<pre>Single quotes: 0.029204130172729 seconds Double quotes: 0.031735897064209 seconds
Output for 5.3.18
<pre>Single quotes: 0.031005859375 seconds Double quotes: 0.036693096160889 seconds
Output for 5.3.17
<pre>Single quotes: 0.031049013137817 seconds Double quotes: 0.036771059036255 seconds
Output for 5.3.16
<pre>Single quotes: 0.027819156646729 seconds Double quotes: 0.03217601776123 seconds
Output for 5.3.15
<pre>Single quotes: 0.031507968902588 seconds Double quotes: 0.036813020706177 seconds
Output for 5.3.14
<pre>Single quotes: 0.029911994934082 seconds Double quotes: 0.034348011016846 seconds
Output for 5.3.13
<pre>Single quotes: 0.027182102203369 seconds Double quotes: 0.032723188400269 seconds
Output for 5.3.12
<pre>Single quotes: 0.02128791809082 seconds Double quotes: 0.027596950531006 seconds
Output for 5.3.11
<pre>Single quotes: 0.031380176544189 seconds Double quotes: 0.036697864532471 seconds
Output for 5.3.10
<pre>Single quotes: 0.02615213394165 seconds Double quotes: 0.031273126602173 seconds
Output for 5.3.9
<pre>Single quotes: 0.032755851745605 seconds Double quotes: 0.040079116821289 seconds
Output for 5.3.8
<pre>Single quotes: 0.028466939926147 seconds Double quotes: 0.033963918685913 seconds
Output for 5.3.7
<pre>Single quotes: 0.028901100158691 seconds Double quotes: 0.035612106323242 seconds
Output for 5.3.6
<pre>Single quotes: 0.02632999420166 seconds Double quotes: 0.031938791275024 seconds
Output for 5.3.5
<pre>Single quotes: 0.03240180015564 seconds Double quotes: 0.038130044937134 seconds
Output for 5.3.4
<pre>Single quotes: 0.027260065078735 seconds Double quotes: 0.030050992965698 seconds
Output for 5.3.3
<pre>Single quotes: 0.025465965270996 seconds Double quotes: 0.031631946563721 seconds
Output for 5.3.2
<pre>Single quotes: 0.028481006622314 seconds Double quotes: 0.034585952758789 seconds
Output for 5.3.1
<pre>Single quotes: 0.020843982696533 seconds Double quotes: 0.026026964187622 seconds
Output for 5.3.0
<pre>Single quotes: 0.019918918609619 seconds Double quotes: 0.026163101196289 seconds
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_CONST in /in/OXmvG on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_CONST in /in/OXmvG on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/OXmvG on line 4
Process exited with code 255.