3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time=microtime(true); for($run=0;$run<1000000; $run++) $string1='Hello this is a string which is being read many times and stuff like that.'; $time=microtime(true)-$time; echo "Single quotes took $time seconds\n"; $time=microtime(true); for($run=0;$run<1000000; $run++) $string2="Hello this is a string which is being read many times and stuff like that."; $time=microtime(true)-$time; echo "Double quotes took $time seconds\n";
Output for 7.1.0
Single quotes took 0.0097780227661133 seconds Double quotes took 0.0094199180603027 seconds
Output for 7.0.14
Single quotes took 0.016916990280151 seconds Double quotes took 0.015949010848999 seconds
Output for 7.0.8
Single quotes took 0.010043859481812 seconds Double quotes took 0.0099318027496338 seconds
Output for 7.0.7
Single quotes took 0.012020826339722 seconds Double quotes took 0.011667966842651 seconds
Output for 7.0.6
Single quotes took 0.011693000793457 seconds Double quotes took 0.01140308380127 seconds
Output for 7.0.5
Single quotes took 0.010689973831177 seconds Double quotes took 0.010732173919678 seconds
Output for 7.0.4
Single quotes took 0.016359090805054 seconds Double quotes took 0.01496410369873 seconds
Output for 7.0.3
Single quotes took 0.014432907104492 seconds Double quotes took 0.014075994491577 seconds
Output for 7.0.2
Single quotes took 0.015772104263306 seconds Double quotes took 0.012614011764526 seconds
Output for 7.0.1
Single quotes took 0.01629900932312 seconds Double quotes took 0.015411853790283 seconds
Output for 7.0.0
Single quotes took 0.012929916381836 seconds Double quotes took 0.010186910629272 seconds
Output for 5.6.23
Single quotes took 0.032356977462769 seconds Double quotes took 0.035708904266357 seconds
Output for 5.6.22
Single quotes took 0.048777103424072 seconds Double quotes took 0.042032957077026 seconds
Output for 5.6.21
Single quotes took 0.03579306602478 seconds Double quotes took 0.033058166503906 seconds
Output for 5.6.20
Single quotes took 0.04584813117981 seconds Double quotes took 0.035706043243408 seconds
Output for 5.6.19
Single quotes took 0.048440933227539 seconds Double quotes took 0.036509990692139 seconds
Output for 5.6.18
Single quotes took 0.034843921661377 seconds Double quotes took 0.032530069351196 seconds
Output for 5.6.17
Single quotes took 0.037796020507812 seconds Double quotes took 0.034251928329468 seconds
Output for 5.6.16
Single quotes took 0.04354190826416 seconds Double quotes took 0.037213802337646 seconds
Output for 5.6.15
Single quotes took 0.047034025192261 seconds Double quotes took 0.040956974029541 seconds
Output for 5.6.14
Single quotes took 0.050242900848389 seconds Double quotes took 0.042922019958496 seconds
Output for 5.6.13
Single quotes took 0.038158893585205 seconds Double quotes took 0.035264015197754 seconds
Output for 5.6.12
Single quotes took 0.043548107147217 seconds Double quotes took 0.036564111709595 seconds
Output for 5.6.11
Single quotes took 0.050818920135498 seconds Double quotes took 0.043811798095703 seconds
Output for 5.6.10
Single quotes took 0.041386127471924 seconds Double quotes took 0.03495717048645 seconds
Output for 5.6.9
Single quotes took 0.047437191009521 seconds Double quotes took 0.041229009628296 seconds
Output for 5.6.8
Single quotes took 0.043870210647583 seconds Double quotes took 0.037659168243408 seconds
Output for 5.6.7
Single quotes took 0.039011001586914 seconds Double quotes took 0.036040067672729 seconds
Output for 5.6.6
Single quotes took 0.048774003982544 seconds Double quotes took 0.041814088821411 seconds
Output for 5.6.5
Single quotes took 0.04809308052063 seconds Double quotes took 0.036678075790405 seconds
Output for 5.6.4
Single quotes took 0.051206827163696 seconds Double quotes took 0.042947053909302 seconds
Output for 5.6.3
Single quotes took 0.048743009567261 seconds Double quotes took 0.042038917541504 seconds
Output for 5.6.2
Single quotes took 0.041523933410645 seconds Double quotes took 0.034427881240845 seconds
Output for 5.6.1
Single quotes took 0.040094137191772 seconds Double quotes took 0.034025907516479 seconds
Output for 5.6.0
Single quotes took 0.043083190917969 seconds Double quotes took 0.03373908996582 seconds
Output for 5.5.37
Single quotes took 0.032116889953613 seconds Double quotes took 0.032150983810425 seconds
Output for 5.5.36
Single quotes took 0.043418169021606 seconds Double quotes took 0.038480043411255 seconds
Output for 5.5.35
Single quotes took 0.048239946365356 seconds Double quotes took 0.041800975799561 seconds
Output for 5.5.34
Single quotes took 0.038218021392822 seconds Double quotes took 0.033406972885132 seconds
Output for 5.5.33
Single quotes took 0.05013108253479 seconds Double quotes took 0.036013126373291 seconds
Output for 5.5.32
Single quotes took 0.034042119979858 seconds Double quotes took 0.034617900848389 seconds
Output for 5.5.31
Single quotes took 0.045274972915649 seconds Double quotes took 0.032649993896484 seconds
Output for 5.5.30
Single quotes took 0.043766975402832 seconds Double quotes took 0.038422107696533 seconds
Output for 5.5.29
Single quotes took 0.047083139419556 seconds Double quotes took 0.040783882141113 seconds
Output for 5.5.28
Single quotes took 0.04822301864624 seconds Double quotes took 0.040104866027832 seconds
Output for 5.5.27
Single quotes took 0.044676780700684 seconds Double quotes took 0.038190841674805 seconds
Output for 5.5.26
Single quotes took 0.05077600479126 seconds Double quotes took 0.038190126419067 seconds
Output for 5.5.25
Single quotes took 0.044409036636353 seconds Double quotes took 0.038219928741455 seconds
Output for 5.5.24
Single quotes took 0.049408912658691 seconds Double quotes took 0.042567014694214 seconds
Output for 5.5.23
Single quotes took 0.044682025909424 seconds Double quotes took 0.036004066467285 seconds
Output for 5.5.22
Single quotes took 0.046879053115845 seconds Double quotes took 0.036042928695679 seconds
Output for 5.5.21
Single quotes took 0.044012784957886 seconds Double quotes took 0.034938812255859 seconds
Output for 5.5.20
Single quotes took 0.051547050476074 seconds Double quotes took 0.044393062591553 seconds
Output for 5.5.19
Single quotes took 0.050992012023926 seconds Double quotes took 0.043580055236816 seconds
Output for 5.5.18
Single quotes took 0.034156084060669 seconds Double quotes took 0.03213095664978 seconds
Output for 5.5.16
Single quotes took 0.040189981460571 seconds Double quotes took 0.033111095428467 seconds
Output for 5.5.15
Single quotes took 0.048022031784058 seconds Double quotes took 0.041489124298096 seconds
Output for 5.5.14
Single quotes took 0.047791957855225 seconds Double quotes took 0.041513204574585 seconds
Output for 5.5.13
Single quotes took 0.034124135971069 seconds Double quotes took 0.032356023788452 seconds
Output for 5.5.12
Single quotes took 0.04016900062561 seconds Double quotes took 0.036489963531494 seconds
Output for 5.5.11
Single quotes took 0.039611101150513 seconds Double quotes took 0.037155866622925 seconds
Output for 5.5.10
Single quotes took 0.032173156738281 seconds Double quotes took 0.033525943756104 seconds
Output for 5.5.9
Single quotes took 0.049695014953613 seconds Double quotes took 0.037862062454224 seconds
Output for 5.5.8
Single quotes took 0.041602849960327 seconds Double quotes took 0.034547090530396 seconds
Output for 5.5.7
Single quotes took 0.042538166046143 seconds Double quotes took 0.035031795501709 seconds
Output for 5.5.6
Single quotes took 0.041401147842407 seconds Double quotes took 0.03752589225769 seconds
Output for 5.5.5
Single quotes took 0.048996925354004 seconds Double quotes took 0.042227029800415 seconds
Output for 5.5.4
Single quotes took 0.037768125534058 seconds Double quotes took 0.035656213760376 seconds
Output for 5.5.3
Single quotes took 0.05157208442688 seconds Double quotes took 0.043801069259644 seconds
Output for 5.5.2
Single quotes took 0.043715000152588 seconds Double quotes took 0.032817840576172 seconds
Output for 5.5.1
Single quotes took 0.032274007797241 seconds Double quotes took 0.032293796539307 seconds
Output for 5.5.0
Single quotes took 0.045437097549438 seconds Double quotes took 0.039961099624634 seconds
Output for 5.4.45
Single quotes took 0.047477960586548 seconds Double quotes took 0.035928010940552 seconds
Output for 5.4.44
Single quotes took 0.04315185546875 seconds Double quotes took 0.035053968429565 seconds
Output for 5.4.43
Single quotes took 0.044686079025269 seconds Double quotes took 0.039525032043457 seconds
Output for 5.4.42
Single quotes took 0.04367995262146 seconds Double quotes took 0.036775827407837 seconds
Output for 5.4.41
Single quotes took 0.045180797576904 seconds Double quotes took 0.032454967498779 seconds
Output for 5.4.40
Single quotes took 0.041664123535156 seconds Double quotes took 0.033927917480469 seconds
Output for 5.4.39
Single quotes took 0.048617839813232 seconds Double quotes took 0.04216194152832 seconds
Output for 5.4.38
Single quotes took 0.039903879165649 seconds Double quotes took 0.036805152893066 seconds
Output for 5.4.37
Single quotes took 0.046468019485474 seconds Double quotes took 0.046345949172974 seconds
Output for 5.4.36
Single quotes took 0.045050144195557 seconds Double quotes took 0.039805889129639 seconds
Output for 5.4.35
Single quotes took 0.046329021453857 seconds Double quotes took 0.040627002716064 seconds
Output for 5.4.34
Single quotes took 0.039314985275269 seconds Double quotes took 0.034435033798218 seconds
Output for 5.4.32
Single quotes took 0.040218830108643 seconds Double quotes took 0.036150932312012 seconds
Output for 5.4.31
Single quotes took 0.055391788482666 seconds Double quotes took 0.043219089508057 seconds
Output for 5.4.30
Single quotes took 0.031601905822754 seconds Double quotes took 0.031742095947266 seconds
Output for 5.4.29
Single quotes took 0.03905987739563 seconds Double quotes took 0.03317403793335 seconds
Output for 5.4.28
Single quotes took 0.049056053161621 seconds Double quotes took 0.042418003082275 seconds
Output for 5.4.27
Single quotes took 0.044650077819824 seconds Double quotes took 0.038244009017944 seconds
Output for 5.4.26
Single quotes took 0.045089960098267 seconds Double quotes took 0.038402080535889 seconds
Output for 5.4.25
Single quotes took 0.032312870025635 seconds Double quotes took 0.032124042510986 seconds
Output for 5.4.24
Single quotes took 0.037893056869507 seconds Double quotes took 0.032665967941284 seconds
Output for 5.4.23
Single quotes took 0.040923118591309 seconds Double quotes took 0.037523031234741 seconds
Output for 5.4.22
Single quotes took 0.044796943664551 seconds Double quotes took 0.039776802062988 seconds
Output for 5.4.21
Single quotes took 0.043957948684692 seconds Double quotes took 0.035712003707886 seconds
Output for 5.4.20
Single quotes took 0.041419982910156 seconds Double quotes took 0.03754186630249 seconds
Output for 5.4.19
Single quotes took 0.038712978363037 seconds Double quotes took 0.033453941345215 seconds
Output for 5.4.18
Single quotes took 0.048408031463623 seconds Double quotes took 0.041949033737183 seconds
Output for 5.4.17
Single quotes took 0.043324947357178 seconds Double quotes took 0.032856941223145 seconds
Output for 5.4.16
Single quotes took 0.04053521156311 seconds Double quotes took 0.03547191619873 seconds
Output for 5.4.15
Single quotes took 0.041481971740723 seconds Double quotes took 0.035077095031738 seconds
Output for 5.4.14
Single quotes took 0.044683933258057 seconds Double quotes took 0.039557933807373 seconds
Output for 5.4.13
Single quotes took 0.049576044082642 seconds Double quotes took 0.041964054107666 seconds
Output for 5.4.12
Single quotes took 0.045073986053467 seconds Double quotes took 0.033255815505981 seconds
Output for 5.4.11
Single quotes took 0.037403106689453 seconds Double quotes took 0.033976078033447 seconds
Output for 5.4.10
Single quotes took 0.031934976577759 seconds Double quotes took 0.032739877700806 seconds
Output for 5.4.9
Single quotes took 0.041457176208496 seconds Double quotes took 0.037042140960693 seconds
Output for 5.4.8
Single quotes took 0.040718078613281 seconds Double quotes took 0.035165071487427 seconds
Output for 5.4.7
Single quotes took 0.038033962249756 seconds Double quotes took 0.035676002502441 seconds
Output for 5.4.6
Single quotes took 0.03278112411499 seconds Double quotes took 0.031758785247803 seconds
Output for 5.4.5
Single quotes took 0.031922101974487 seconds Double quotes took 0.032172918319702 seconds
Output for 5.4.4
Single quotes took 0.04483699798584 seconds Double quotes took 0.039258003234863 seconds
Output for 5.4.3
Single quotes took 0.028604984283447 seconds Double quotes took 0.028151988983154 seconds
Output for 5.4.2
Single quotes took 0.032050848007202 seconds Double quotes took 0.031795978546143 seconds
Output for 5.4.1
Single quotes took 0.040844917297363 seconds Double quotes took 0.036762952804565 seconds
Output for 5.4.0
Single quotes took 0.034435987472534 seconds Double quotes took 0.032083034515381 seconds
Output for 5.3.29
Single quotes took 0.071082830429077 seconds Double quotes took 0.052551031112671 seconds
Output for 5.3.28
Single quotes took 0.054224014282227 seconds Double quotes took 0.051736116409302 seconds
Output for 5.3.27
Single quotes took 0.059153079986572 seconds Double quotes took 0.052335977554321 seconds
Output for 5.3.26
Single quotes took 0.060401916503906 seconds Double quotes took 0.052937030792236 seconds
Output for 5.3.25
Single quotes took 0.052304983139038 seconds Double quotes took 0.051522970199585 seconds
Output for 5.3.24
Single quotes took 0.077089071273804 seconds Double quotes took 0.054857969284058 seconds
Output for 5.3.23
Single quotes took 0.073907136917114 seconds Double quotes took 0.054656028747559 seconds
Output for 5.3.22
Single quotes took 0.053646087646484 seconds Double quotes took 0.056426048278809 seconds
Output for 5.3.21
Single quotes took 0.056869983673096 seconds Double quotes took 0.053145885467529 seconds
Output for 5.3.20
Single quotes took 0.069314002990723 seconds Double quotes took 0.052608966827393 seconds
Output for 5.3.19
Single quotes took 0.054809093475342 seconds Double quotes took 0.054213047027588 seconds
Output for 5.3.18
Single quotes took 0.054800987243652 seconds Double quotes took 0.05413293838501 seconds
Output for 5.3.17
Single quotes took 0.063374996185303 seconds Double quotes took 0.061647176742554 seconds
Output for 5.3.16
Single quotes took 0.057705163955688 seconds Double quotes took 0.055071115493774 seconds
Output for 5.3.15
Single quotes took 0.054365873336792 seconds Double quotes took 0.053852796554565 seconds
Output for 5.3.14
Single quotes took 0.064046144485474 seconds Double quotes took 0.054081916809082 seconds
Output for 5.3.13
Single quotes took 0.052364826202393 seconds Double quotes took 0.055361986160278 seconds
Output for 5.3.12
Single quotes took 0.072565078735352 seconds Double quotes took 0.058489084243774 seconds
Output for 5.3.11
Single quotes took 0.053486824035645 seconds Double quotes took 0.05579400062561 seconds
Output for 5.3.10
Single quotes took 0.053799867630005 seconds Double quotes took 0.056816101074219 seconds
Output for 5.3.9
Single quotes took 0.053586959838867 seconds Double quotes took 0.053912162780762 seconds
Output for 5.3.8
Single quotes took 0.056289911270142 seconds Double quotes took 0.054017066955566 seconds
Output for 5.3.7
Single quotes took 0.054466009140015 seconds Double quotes took 0.054835081100464 seconds
Output for 5.3.6
Single quotes took 0.051112174987793 seconds Double quotes took 0.049053907394409 seconds
Output for 5.3.5
Single quotes took 0.063888072967529 seconds Double quotes took 0.055469036102295 seconds
Output for 5.3.4
Single quotes took 0.055042028427124 seconds Double quotes took 0.054527044296265 seconds
Output for 5.3.3
Single quotes took 0.066904783248901 seconds Double quotes took 0.056822061538696 seconds
Output for 5.3.2
Single quotes took 0.059658050537109 seconds Double quotes took 0.054311990737915 seconds
Output for 5.3.1
Single quotes took 0.0505051612854 seconds Double quotes took 0.047574996948242 seconds
Output for 5.3.0
Single quotes took 0.055655956268311 seconds Double quotes took 0.054803848266602 seconds
Output for 5.2.17
Single quotes took 0.091464042663574 seconds Double quotes took 0.071928024291992 seconds
Output for 5.2.16
Single quotes took 0.068537950515747 seconds Double quotes took 0.066128015518188 seconds
Output for 5.2.15
Single quotes took 0.061393976211548 seconds Double quotes took 0.064570903778076 seconds
Output for 5.2.14
Single quotes took 0.073229074478149 seconds Double quotes took 0.075231075286865 seconds
Output for 5.2.13
Single quotes took 0.06909704208374 seconds Double quotes took 0.066442012786865 seconds
Output for 5.2.12
Single quotes took 0.067010164260864 seconds Double quotes took 0.065212965011597 seconds
Output for 5.2.11
Single quotes took 0.07719898223877 seconds Double quotes took 0.064596891403198 seconds
Output for 5.2.10
Single quotes took 0.099059104919434 seconds Double quotes took 0.075532913208008 seconds
Output for 5.2.9
Single quotes took 0.091341018676758 seconds Double quotes took 0.070313930511475 seconds
Output for 5.2.8
Single quotes took 0.087100028991699 seconds Double quotes took 0.065860986709595 seconds
Output for 5.2.7
Single quotes took 0.096279144287109 seconds Double quotes took 0.072299957275391 seconds
Output for 5.2.6
Single quotes took 0.089777946472168 seconds Double quotes took 0.071781158447266 seconds
Output for 5.2.5
Single quotes took 0.064854145050049 seconds Double quotes took 0.064956903457642 seconds
Output for 5.2.4
Single quotes took 0.092538118362427 seconds Double quotes took 0.073515892028809 seconds
Output for 5.2.3
Single quotes took 0.096200942993164 seconds Double quotes took 0.071595907211304 seconds
Output for 5.2.2
Single quotes took 0.069092988967896 seconds Double quotes took 0.064513921737671 seconds
Output for 5.2.1
Single quotes took 0.09614896774292 seconds Double quotes took 0.073840856552124 seconds
Output for 5.2.0
Single quotes took 0.099677801132202 seconds Double quotes took 0.076773881912231 seconds
Output for 5.1.6
Single quotes took 0.088840007781982 seconds Double quotes took 0.07087516784668 seconds
Output for 5.1.5
Single quotes took 0.079590082168579 seconds Double quotes took 0.067152976989746 seconds
Output for 5.1.4
Single quotes took 0.093554019927979 seconds Double quotes took 0.071972846984863 seconds
Output for 5.1.3
Single quotes took 0.089115142822266 seconds Double quotes took 0.070023059844971 seconds
Output for 5.1.2
Single quotes took 0.097224950790405 seconds Double quotes took 0.071532011032104 seconds
Output for 5.1.1
Single quotes took 0.087414026260376 seconds Double quotes took 0.070727109909058 seconds
Output for 5.1.0
Single quotes took 0.098318815231323 seconds Double quotes took 0.076303958892822 seconds
Output for 5.0.5
Single quotes took 0.2358078956604 seconds Double quotes took 0.19962286949158 seconds
Output for 5.0.4
Single quotes took 0.2457230091095 seconds Double quotes took 0.19378185272217 seconds
Output for 5.0.3
Single quotes took 0.20430588722229 seconds Double quotes took 0.191565990448 seconds
Output for 5.0.2
Single quotes took 0.22497391700745 seconds Double quotes took 0.18590116500854 seconds
Output for 5.0.1
Single quotes took 0.19382286071777 seconds Double quotes took 0.18909406661987 seconds
Output for 5.0.0
Single quotes took 0.23045301437378 seconds Double quotes took 0.18581604957581 seconds
Output for 4.4.9
Single quotes took 0.22909 seconds Double quotes took 0.201159 seconds
Output for 4.4.8
Single quotes took 0.221053 seconds Double quotes took 0.199996 seconds
Output for 4.4.7
Single quotes took 0.239415 seconds Double quotes took 0.187915 seconds
Output for 4.4.6
Single quotes took 0.226496 seconds Double quotes took 0.191731 seconds
Output for 4.4.5
Single quotes took 0.192406 seconds Double quotes took 0.170703 seconds
Output for 4.4.4
Single quotes took 0.233962 seconds Double quotes took 0.190158 seconds
Output for 4.4.3
Single quotes took 0.214633 seconds Double quotes took 0.189409 seconds
Output for 4.4.2
Single quotes took 0.226424 seconds Double quotes took 0.203123 seconds
Output for 4.4.1
Single quotes took 0.252723 seconds Double quotes took 0.191123 seconds
Output for 4.4.0
Single quotes took 0.23647 seconds Double quotes took 0.19105 seconds
Output for 4.3.11
Single quotes took 0.259242 seconds Double quotes took 0.193345 seconds
Output for 4.3.10
Single quotes took 0.214217 seconds Double quotes took 0.18655 seconds
Output for 4.3.9
Single quotes took 0.21035 seconds Double quotes took 0.188327 seconds
Output for 4.3.8
Single quotes took 0.249698 seconds Double quotes took 0.202759 seconds
Output for 4.3.7
Single quotes took 0.220284 seconds Double quotes took 0.22054 seconds
Output for 4.3.6
Single quotes took 0.225451 seconds Double quotes took 0.190221 seconds
Output for 4.3.5
Single quotes took 0.209622 seconds Double quotes took 0.186763 seconds
Output for 4.3.4
Single quotes took 0.240225 seconds Double quotes took 0.188224 seconds
Output for 4.3.3
Single quotes took 0.242961 seconds Double quotes took 0.190533 seconds
Output for 4.3.2
Single quotes took 0.191223 seconds Double quotes took 0.196215 seconds
Output for 4.3.1
Single quotes took 0.232731 seconds Double quotes took 0.187464 seconds
Output for 4.3.0
Single quotes took 0.202861 seconds Double quotes took 0.189412 seconds