3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php 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
Single quotes: 0.042044878005981 seconds Double quotes: 0.040693044662476 seconds
Output for 7.0.14
Single quotes: 0.040642023086548 seconds Double quotes: -0.032011985778809 seconds
Output for 7.0.6
Single quotes: 0.034529209136963 seconds Double quotes: 0.035442113876343 seconds
Output for 7.0.5
Single quotes: 0.035003900527954 seconds Double quotes: 0.034382820129395 seconds
Output for 7.0.4
Single quotes: 0.035824060440063 seconds Double quotes: 0.035604953765869 seconds
Output for 7.0.3
Single quotes: 0.056900024414062 seconds Double quotes: 0.058984994888306 seconds
Output for 7.0.2
Single quotes: 0.063774108886719 seconds Double quotes: 0.067423105239868 seconds
Output for 7.0.1
Single quotes: 0.035372972488403 seconds Double quotes: 0.031266212463379 seconds
Output for 7.0.0
Single quotes: 0.026329040527344 seconds Double quotes: 0.030400991439819 seconds
Output for 5.6.28
Single quotes: 0.04140305519104 seconds Double quotes: 0.047667980194092 seconds
Output for 5.6.21
Single quotes: 0.028828859329224 seconds Double quotes: 0.035938024520874 seconds
Output for 5.6.20
Single quotes: 0.032438039779663 seconds Double quotes: 0.047798156738281 seconds
Output for 5.6.19
Single quotes: 0.030326843261719 seconds Double quotes: 0.045309066772461 seconds
Output for 5.6.18
Single quotes: 0.049333095550537 seconds Double quotes: 0.071461915969849 seconds
Output for 5.6.17
Single quotes: 0.049917936325073 seconds Double quotes: 0.078297138214111 seconds
Output for 5.6.16
Single quotes: 0.023865938186646 seconds Double quotes: 0.032444953918457 seconds
Output for 5.6.15
Single quotes: 0.030619859695435 seconds Double quotes: 0.045965194702148 seconds
Output for 5.6.14
Single quotes: 0.033091068267822 seconds Double quotes: 0.048649787902832 seconds
Output for 5.6.13
Single quotes: 0.025202989578247 seconds Double quotes: 0.041492938995361 seconds
Output for 5.6.12
Single quotes: 0.024435997009277 seconds Double quotes: 0.04235577583313 seconds
Output for 5.6.11
Single quotes: 0.03270697593689 seconds Double quotes: 0.047230005264282 seconds
Output for 5.6.10
Single quotes: 0.025942802429199 seconds Double quotes: 0.043143033981323 seconds
Output for 5.6.9
Single quotes: 0.025552988052368 seconds Double quotes: 0.042897939682007 seconds
Output for 5.6.8
Single quotes: 0.024665832519531 seconds Double quotes: 0.045635938644409 seconds
Output for 5.5.35
Single quotes: 0.43366885185242 seconds
Process exited with code 137.
Output for 5.5.34
Single quotes: 0.028018951416016 seconds Double quotes: 0.043884992599487 seconds
Output for 5.5.33
Single quotes: 0.037142992019653 seconds Double quotes: 0.049431800842285 seconds
Output for 5.5.32
Single quotes: 0.042634010314941 seconds Double quotes: 0.065124988555908 seconds
Output for 5.5.31
Single quotes: 0.046001195907593 seconds Double quotes: 0.069242000579834 seconds
Output for 5.5.30
Single quotes: 0.032754898071289 seconds Double quotes: 0.04377007484436 seconds
Output for 5.5.29
Single quotes: 0.034816980361938 seconds Double quotes: 0.047742128372192 seconds
Output for 5.5.28
Single quotes: 0.031852960586548 seconds Double quotes: 0.043882131576538 seconds
Output for 5.5.27
Single quotes: 0.028334140777588 seconds Double quotes: 0.043439865112305 seconds
Output for 5.5.26
Single quotes: 0.026413917541504 seconds Double quotes: 0.040828943252563 seconds
Output for 5.5.25
Single quotes: 0.030096054077148 seconds Double quotes: 0.043417930603027 seconds
Output for 5.5.24
Single quotes: 0.048557996749878 seconds Double quotes: 0.064776182174683 seconds
Output for 5.4.45
Single quotes: 0.04217004776001 seconds Double quotes: 0.07007908821106 seconds
Output for 5.4.44
Single quotes: 0.043313980102539 seconds Double quotes: 0.070312023162842 seconds
Output for 5.4.43
Single quotes: 0.045102834701538 seconds Double quotes: 0.07049298286438 seconds
Output for 5.4.42
Single quotes: 0.043771028518677 seconds Double quotes: 0.070128202438354 seconds
Output for 5.4.41
Single quotes: 0.044794797897339 seconds Double quotes: 0.070687055587769 seconds
Output for 5.4.40
Single quotes: 0.04213285446167 seconds Double quotes: 0.069347858428955 seconds
Output for 5.4.39
Single quotes: 0.045475959777832 seconds Double quotes: 0.071282148361206 seconds
Output for 5.4.38
Single quotes: 0.045969009399414 seconds Double quotes: 0.071625947952271 seconds
Output for 5.4.37
Single quotes: 0.041917085647583 seconds Double quotes: 0.070132970809937 seconds
Output for 5.4.36
Single quotes: 0.044272184371948 seconds Double quotes: 0.071985960006714 seconds
Output for 5.4.35
Single quotes: 0.056293964385986 seconds Double quotes: 0.083812952041626 seconds
Output for 5.4.34
Single quotes: 0.044054985046387 seconds Double quotes: 0.070745944976807 seconds
Output for 5.4.32
Single quotes: 0.044371128082275 seconds Double quotes: 0.080173969268799 seconds
Output for 5.4.31
Single quotes: 0.044540166854858 seconds Double quotes: 0.071854114532471 seconds
Output for 5.4.30
Single quotes: 0.04383397102356 seconds Double quotes: 0.070575952529907 seconds
Output for 5.4.29
Single quotes: 0.044738054275513 seconds Double quotes: 0.07079291343689 seconds
Output for 5.4.28
Single quotes: 0.041962146759033 seconds Double quotes: 0.068980932235718 seconds
Output for 5.4.27
Single quotes: 0.043729066848755 seconds Double quotes: 0.068175077438354 seconds
Output for 5.4.26
Single quotes: 0.06074595451355 seconds Double quotes: 0.073736906051636 seconds
Output for 5.4.25
Single quotes: 0.047331809997559 seconds Double quotes: 0.073875188827515 seconds
Output for 5.4.24
Single quotes: 0.045882940292358 seconds Double quotes: 0.071528911590576 seconds
Output for 5.4.23
Single quotes: 0.04888391494751 seconds Double quotes: 0.074863910675049 seconds
Output for 5.4.22
Single quotes: 0.043339967727661 seconds Double quotes: 0.069828033447266 seconds
Output for 5.4.21
Single quotes: 0.04483699798584 seconds Double quotes: 0.07123589515686 seconds
Output for 5.4.20
Single quotes: 0.045421838760376 seconds Double quotes: 0.072461843490601 seconds
Output for 5.4.19
Single quotes: 0.045267820358276 seconds Double quotes: 0.071414947509766 seconds
Output for 5.4.18
Single quotes: 0.044119834899902 seconds Double quotes: 0.071185827255249 seconds
Output for 5.4.17
Single quotes: 0.045275926589966 seconds Double quotes: 0.069299221038818 seconds
Output for 5.4.16
Single quotes: 0.043943166732788 seconds Double quotes: 0.070955038070679 seconds
Output for 5.4.15
Single quotes: 0.04393196105957 seconds Double quotes: 0.070981025695801 seconds
Output for 5.4.14
Single quotes: 0.041659832000732 seconds Double quotes: 0.066686153411865 seconds
Output for 5.4.13
Single quotes: 0.046176910400391 seconds Double quotes: 0.071361064910889 seconds
Output for 5.4.12
Single quotes: 0.046874046325684 seconds Double quotes: 0.07108998298645 seconds
Output for 5.4.11
Single quotes: 0.044307947158813 seconds Double quotes: 0.034593105316162 seconds
Output for 5.4.10
Single quotes: 0.045728921890259 seconds Double quotes: 0.071241140365601 seconds
Output for 5.4.9
Single quotes: 0.045049905776978 seconds Double quotes: 0.071424007415771 seconds
Output for 5.4.8
Single quotes: 0.046756982803345 seconds Double quotes: 0.072157859802246 seconds
Output for 5.4.7
Single quotes: 0.045658111572266 seconds Double quotes: 0.069099187850952 seconds
Output for 5.4.6
Single quotes: 0.04552698135376 seconds Double quotes: 0.071047067642212 seconds
Output for 5.4.5
Single quotes: 0.043979167938232 seconds Double quotes: 0.071455955505371 seconds
Output for 5.4.4
Single quotes: 0.045711994171143 seconds Double quotes: 0.072402000427246 seconds
Output for 5.4.3
Single quotes: 0.046031951904297 seconds Double quotes: 0.073019027709961 seconds
Output for 5.4.2
Single quotes: 0.044580936431885 seconds Double quotes: 0.07225489616394 seconds
Output for 5.4.1
Single quotes: 0.037904024124146 seconds Double quotes: 0.065769195556641 seconds
Output for 5.4.0
Single quotes: 0.04732084274292 seconds Double quotes: 0.071930170059204 seconds
Output for 5.3.29
Single quotes: 0.044438123703003 seconds Double quotes: 0.071908950805664 seconds
Output for 5.3.28
Single quotes: 0.044855117797852 seconds Double quotes: 0.070214033126831 seconds
Output for 5.3.27
Single quotes: 0.041654825210571 seconds Double quotes: 0.068645000457764 seconds
Output for 5.3.26
Single quotes: 0.043328046798706 seconds Double quotes: 0.070757865905762 seconds
Output for 5.3.25
Single quotes: 0.046022891998291 seconds Double quotes: 0.070723056793213 seconds
Output for 5.3.24
Single quotes: 0.043854951858521 seconds Double quotes: 0.06990909576416 seconds
Output for 5.3.23
Single quotes: 0.045898914337158 seconds Double quotes: 0.071484088897705 seconds
Output for 5.3.22
Single quotes: 0.044129848480225 seconds Double quotes: 0.062029838562012 seconds
Output for 5.3.21
Single quotes: 0.045929193496704 seconds Double quotes: 0.071600198745728 seconds
Output for 5.3.20
Single quotes: 0.045484066009521 seconds Double quotes: 0.059443950653076 seconds
Output for 5.3.19
Single quotes: 0.043730974197388 seconds Double quotes: 0.063351154327393 seconds
Output for 5.3.18
Single quotes: 0.045747995376587 seconds Double quotes: 0.061486959457397 seconds
Output for 5.3.17
Single quotes: 0.043560981750488 seconds Double quotes: 0.062124013900757 seconds
Output for 5.3.16
Single quotes: 0.043428897857666 seconds Double quotes: 0.061511993408203 seconds
Output for 5.3.15
Single quotes: 0.043526172637939 seconds Double quotes: 0.061569929122925 seconds
Output for 5.3.14
Single quotes: 0.046921014785767 seconds Double quotes: 0.061784982681274 seconds
Output for 5.3.13
Single quotes: 0.045350074768066 seconds Double quotes: 0.062355041503906 seconds
Output for 5.3.12
Single quotes: 0.04407000541687 seconds Double quotes: 0.059538125991821 seconds
Output for 5.3.11
Single quotes: 0.043037891387939 seconds Double quotes: 0.062166213989258 seconds
Output for 5.3.10
Single quotes: 0.043377161026001 seconds Double quotes: 0.062170028686523 seconds
Output for 5.3.9
Single quotes: 0.043796062469482 seconds Double quotes: 0.062945127487183 seconds
Output for 5.3.8
Single quotes: 0.044738054275513 seconds Double quotes: 0.061726808547974 seconds
Output for 5.3.7
Single quotes: 0.057615995407104 seconds Double quotes: 0.066006183624268 seconds
Output for 5.3.6
Single quotes: 0.044686794281006 seconds Double quotes: 0.062001943588257 seconds
Output for 5.3.5
Single quotes: 0.044003009796143 seconds Double quotes: 0.060894012451172 seconds
Output for 5.3.4
Single quotes: 0.043851137161255 seconds Double quotes: 0.061094999313354 seconds
Output for 5.3.3
Single quotes: 0.047827959060669 seconds Double quotes: 0.058121919631958 seconds
Output for 5.3.2
Single quotes: 0.043596982955933 seconds Double quotes: 0.060807943344116 seconds
Output for 5.3.1
Single quotes: 0.042340040206909 seconds Double quotes: 0.058743953704834 seconds
Output for 5.3.0
Single quotes: 0.044167995452881 seconds Double quotes: 0.061985015869141 seconds
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_CONST in /in/umX8Q on line 2
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/umX8Q on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/umX8Q on line 2
Process exited with code 255.