3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time=microtime(true); for($run=0;$run<10000000; $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<10000000; $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.14313793182373 seconds Double quotes took 0.10573291778564 seconds
Output for 7.0.14
Single quotes took 0.13597106933594 seconds Double quotes took 0.097921848297119 seconds
Output for 7.0.10
Single quotes took 0.10635209083557 seconds Double quotes took 0.099145889282227 seconds
Output for 7.0.9
Single quotes took 0.12097001075745 seconds Double quotes took 0.099184989929199 seconds
Output for 7.0.8
Single quotes took 0.084152936935425 seconds Double quotes took 0.081687927246094 seconds
Output for 7.0.7
Single quotes took 0.11006999015808 seconds Double quotes took 0.099254131317139 seconds
Output for 7.0.6
Single quotes took 0.11219501495361 seconds Double quotes took 0.10909986495972 seconds
Output for 7.0.5
Single quotes took 0.12571692466736 seconds Double quotes took 0.10890603065491 seconds
Output for 7.0.4
Single quotes took 0.096475124359131 seconds Double quotes took 0.084975004196167 seconds
Output for 7.0.3
Single quotes took 0.095221042633057 seconds Double quotes took 0.097900867462158 seconds
Output for 7.0.2
Single quotes took 0.13040590286255 seconds Double quotes took 0.10513806343079 seconds
Output for 7.0.1
Single quotes took 0.11159205436707 seconds Double quotes took 0.099817037582397 seconds
Output for 7.0.0
Single quotes took 0.10413217544556 seconds Double quotes took 0.1008620262146 seconds
Output for hhvm-3.12.0
Single quotes took 0.59940791130066 seconds Double quotes took 0.61786794662476 seconds
Output for hhvm-3.10.0
Single quotes took 0.71324896812439 seconds Double quotes took 0.70748996734619 seconds
Output for 5.6.28
Single quotes took 0.54335498809814 seconds Double quotes took 0.52746200561523 seconds
Output for 5.6.25
Single quotes took 0.3119969367981 seconds Double quotes took 0.30757212638855 seconds
Output for 5.6.24
Single quotes took 0.27932381629944 seconds Double quotes took 0.26226806640625 seconds
Output for 5.6.23
Single quotes took 0.31765604019165 seconds Double quotes took 0.26922297477722 seconds
Output for 5.6.22
Single quotes took 0.32053208351135 seconds Double quotes took 0.27873206138611 seconds
Output for 5.6.21
Single quotes took 0.29057908058167 seconds Double quotes took 0.26361083984375 seconds
Output for 5.6.20
Single quotes took 0.29995393753052 seconds Double quotes took 0.28015208244324 seconds
Output for 5.6.19
Single quotes took 0.32341194152832 seconds Double quotes took 0.31329202651978 seconds
Output for 5.6.18
Single quotes took 0.35299706459045 seconds Double quotes took 0.31942296028137 seconds
Output for 5.6.17
Single quotes took 0.34587121009827 seconds Double quotes took 0.32046508789062 seconds
Output for 5.6.16
Single quotes took 0.29947900772095 seconds Double quotes took 0.30310702323914 seconds
Output for 5.6.15
Single quotes took 0.35587501525879 seconds Double quotes took 0.32696795463562 seconds
Output for 5.6.14
Single quotes took 0.29368805885315 seconds Double quotes took 0.30738592147827 seconds
Output for 5.6.13
Single quotes took 0.33571100234985 seconds Double quotes took 0.32276296615601 seconds
Output for 5.6.12
Single quotes took 0.32775902748108 seconds Double quotes took 0.30576300621033 seconds
Output for 5.6.11
Single quotes took 0.32254695892334 seconds Double quotes took 0.28800702095032 seconds
Output for 5.6.10
Single quotes took 0.35135412216187 seconds Double quotes took 0.31781697273254 seconds
Output for 5.6.9
Single quotes took 0.27147603034973 seconds Double quotes took 0.26582789421082 seconds
Output for 5.6.8
Single quotes took 0.32190799713135 seconds Double quotes took 0.31800603866577 seconds
Output for 5.6.7
Single quotes took 0.34181904792786 seconds Double quotes took 0.28841209411621 seconds
Output for 5.6.6
Single quotes took 0.33671498298645 seconds Double quotes took 0.3250789642334 seconds
Output for 5.6.5
Single quotes took 0.29826807975769 seconds Double quotes took 0.26447296142578 seconds
Output for 5.6.4
Single quotes took 0.38860583305359 seconds Double quotes took 0.31947183609009 seconds
Output for 5.6.3
Single quotes took 0.33303594589233 seconds Double quotes took 0.33102893829346 seconds
Output for 5.6.2
Single quotes took 0.27728796005249 seconds Double quotes took 0.2736279964447 seconds
Output for 5.6.1
Single quotes took 0.27552700042725 seconds Double quotes took 0.26414084434509 seconds
Output for 5.6.0
Single quotes took 0.29826498031616 seconds Double quotes took 0.26715588569641 seconds
Output for 5.5.38
Single quotes took 0.36577415466309 seconds Double quotes took 0.32374596595764 seconds
Output for 5.5.37
Single quotes took 0.35982894897461 seconds Double quotes took 0.36044311523438 seconds
Output for 5.5.36
Single quotes took 0.32706189155579 seconds Double quotes took 0.32019710540771 seconds
Output for 5.5.35
Single quotes took 0.32234811782837 seconds Double quotes took 0.31284403800964 seconds
Output for 5.5.34
Single quotes took 0.3294529914856 seconds Double quotes took 0.30225300788879 seconds
Output for 5.5.33
Single quotes took 0.29049611091614 seconds Double quotes took 0.26525497436523 seconds
Output for 5.5.32
Single quotes took 0.35143709182739 seconds Double quotes took 0.32050514221191 seconds
Output for 5.5.31
Single quotes took 0.33693695068359 seconds Double quotes took 0.32132911682129 seconds
Output for 5.5.30
Single quotes took 0.32483410835266 seconds Double quotes took 0.31401300430298 seconds
Output for 5.5.29
Single quotes took 0.33613610267639 seconds Double quotes took 0.32188892364502 seconds
Output for 5.5.28
Single quotes took 0.29229712486267 seconds Double quotes took 0.26494097709656 seconds
Output for 5.5.27
Single quotes took 0.38339996337891 seconds Double quotes took 0.32254385948181 seconds
Output for 5.5.26
Single quotes took 0.32900190353394 seconds Double quotes took 0.32213497161865 seconds
Output for 5.5.25
Single quotes took 0.33724999427795 seconds Double quotes took 0.31988406181335 seconds
Output for 5.5.24
Single quotes took 0.35959100723267 seconds Double quotes took 0.43872809410095 seconds
Output for 5.5.23
Single quotes took 0.29572916030884 seconds Double quotes took 0.30191588401794 seconds
Output for 5.5.22
Single quotes took 0.32531595230103 seconds Double quotes took 0.32157206535339 seconds
Output for 5.5.21
Single quotes took 0.33744096755981 seconds Double quotes took 0.31689310073853 seconds
Output for 5.5.20
Single quotes took 0.34351897239685 seconds Double quotes took 0.32119107246399 seconds
Output for 5.5.19
Single quotes took 0.36493802070618 seconds Double quotes took 0.32487297058105 seconds
Output for 5.5.18
Single quotes took 0.27296900749207 seconds Double quotes took 0.26650214195251 seconds
Output for 5.5.16
Single quotes took 0.27699017524719 seconds Double quotes took 0.29026412963867 seconds
Output for 5.5.15
Single quotes took 0.38315892219543 seconds Double quotes took 0.32075905799866 seconds
Output for 5.5.14
Single quotes took 0.28089594841003 seconds Double quotes took 0.26812696456909 seconds
Output for 5.5.13
Single quotes took 0.34393095970154 seconds Double quotes took 0.32152199745178 seconds
Output for 5.5.12
Single quotes took 0.38383603096008 seconds Double quotes took 0.35945415496826 seconds
Output for 5.5.11
Single quotes took 0.29484295845032 seconds Double quotes took 0.26689887046814 seconds
Output for 5.5.10
Single quotes took 0.32067108154297 seconds Double quotes took 0.33099913597107 seconds
Output for 5.5.9
Single quotes took 0.32467412948608 seconds Double quotes took 0.31995701789856 seconds
Output for 5.5.8
Single quotes took 0.26814198493958 seconds Double quotes took 0.26658201217651 seconds
Output for 5.5.7
Single quotes took 0.33407282829285 seconds Double quotes took 0.32153916358948 seconds
Output for 5.5.6
Single quotes took 0.32771110534668 seconds Double quotes took 0.32453107833862 seconds
Output for 5.5.5
Single quotes took 0.35052394866943 seconds Double quotes took 0.30048513412476 seconds
Output for 5.5.4
Single quotes took 0.34562706947327 seconds Double quotes took 0.32405710220337 seconds
Output for 5.5.3
Single quotes took 0.29626417160034 seconds Double quotes took 0.26598787307739 seconds
Output for 5.5.2
Single quotes took 0.30889201164246 seconds Double quotes took 0.30417108535767 seconds
Output for 5.5.1
Single quotes took 0.3034188747406 seconds Double quotes took 0.26503300666809 seconds
Output for 5.5.0
Single quotes took 0.302570104599 seconds Double quotes took 0.30654311180115 seconds
Output for 5.4.45
Single quotes took 0.32735419273376 seconds Double quotes took 0.28406095504761 seconds
Output for 5.4.44
Single quotes took 0.33095693588257 seconds Double quotes took 0.33910894393921 seconds
Output for 5.4.43
Single quotes took 0.29717016220093 seconds Double quotes took 0.26571393013 seconds
Output for 5.4.42
Single quotes took 0.31935095787048 seconds Double quotes took 0.31549596786499 seconds
Output for 5.4.41
Single quotes took 0.29818487167358 seconds Double quotes took 0.29170489311218 seconds
Output for 5.4.40
Single quotes took 0.29664897918701 seconds Double quotes took 0.29113507270813 seconds
Output for 5.4.39
Single quotes took 0.29715585708618 seconds Double quotes took 0.29606103897095 seconds
Output for 5.4.38
Single quotes took 0.33949899673462 seconds Double quotes took 0.31762003898621 seconds
Output for 5.4.37
Single quotes took 0.26413011550903 seconds Double quotes took 0.26072812080383 seconds
Output for 5.4.36
Single quotes took 0.32570314407349 seconds Double quotes took 0.28891396522522 seconds
Output for 5.4.35
Single quotes took 0.28718686103821 seconds Double quotes took 0.26093816757202 seconds
Output for 5.4.34
Single quotes took 0.26360893249512 seconds Double quotes took 0.26681303977966 seconds
Output for 5.4.32
Single quotes took 0.26386284828186 seconds Double quotes took 0.26331496238708 seconds
Output for 5.4.31
Single quotes took 0.29852700233459 seconds Double quotes took 0.2987220287323 seconds
Output for 5.4.30
Single quotes took 0.32389307022095 seconds Double quotes took 0.34149193763733 seconds
Output for 5.4.29
Single quotes took 0.36235499382019 seconds Double quotes took 0.33565878868103 seconds
Output for 5.4.28
Single quotes took 0.26053714752197 seconds Double quotes took 0.26097893714905 seconds
Output for 5.4.27
Single quotes took 0.31186604499817 seconds Double quotes took 0.27081394195557 seconds
Output for 5.4.26
Single quotes took 0.35610890388489 seconds Double quotes took 0.31785202026367 seconds
Output for 5.4.25
Single quotes took 0.36356210708618 seconds Double quotes took 0.31875896453857 seconds
Output for 5.4.24
Single quotes took 0.29734778404236 seconds Double quotes took 0.29772996902466 seconds
Output for 5.4.23
Single quotes took 0.36509394645691 seconds Double quotes took 0.3340539932251 seconds
Output for 5.4.22
Single quotes took 0.34280395507812 seconds Double quotes took 0.3160080909729 seconds
Output for 5.4.21
Single quotes took 0.29136490821838 seconds Double quotes took 0.29906988143921 seconds
Output for 5.4.20
Single quotes took 0.32718706130981 seconds Double quotes took 0.31525206565857 seconds
Output for 5.4.19
Single quotes took 0.26780915260315 seconds Double quotes took 0.26102519035339 seconds
Output for 5.4.18
Single quotes took 0.2700560092926 seconds Double quotes took 0.26615595817566 seconds
Output for 5.4.17
Single quotes took 0.31539988517761 seconds Double quotes took 0.27345609664917 seconds
Output for 5.4.16
Single quotes took 0.32935190200806 seconds Double quotes took 0.31738114356995 seconds
Output for 5.4.15
Single quotes took 0.3168671131134 seconds Double quotes took 0.30132508277893 seconds
Output for 5.4.14
Single quotes took 0.26467609405518 seconds Double quotes took 0.2617290019989 seconds
Output for 5.4.13
Single quotes took 0.30972909927368 seconds Double quotes took 0.30438303947449 seconds
Output for 5.4.12
Single quotes took 0.36571907997131 seconds Double quotes took 0.31594920158386 seconds
Output for 5.4.11
Single quotes took 0.34584212303162 seconds Double quotes took 0.31973886489868 seconds
Output for 5.4.10
Single quotes took 0.34250497817993 seconds Double quotes took 0.3277108669281 seconds
Output for 5.4.9
Single quotes took 0.30814003944397 seconds Double quotes took 0.25933599472046 seconds
Output for 5.4.8
Single quotes took 0.32543587684631 seconds Double quotes took 0.31632399559021 seconds
Output for 5.4.7
Single quotes took 0.31712102890015 seconds Double quotes took 0.28550100326538 seconds
Output for 5.4.6
Single quotes took 0.27901983261108 seconds Double quotes took 0.26140213012695 seconds
Output for 5.4.5
Single quotes took 0.33674001693726 seconds Double quotes took 0.31522393226624 seconds
Output for 5.4.4
Single quotes took 0.2886598110199 seconds Double quotes took 0.26059484481812 seconds
Output for 5.4.3
Single quotes took 0.3276789188385 seconds Double quotes took 0.33385801315308 seconds
Output for 5.4.2
Single quotes took 0.25996899604797 seconds Double quotes took 0.27452993392944 seconds
Output for 5.4.1
Single quotes took 0.26528286933899 seconds Double quotes took 0.26474905014038 seconds
Output for 5.4.0
Single quotes took 0.2944598197937 seconds Double quotes took 0.25998497009277 seconds
Output for 5.3.29
Single quotes took 0.42306208610535 seconds Double quotes took 0.4217529296875 seconds
Output for 5.3.28
Single quotes took 0.50182890892029 seconds Double quotes took 0.52215600013733 seconds
Output for 5.3.27
Single quotes took 0.51178789138794 seconds Double quotes took 0.51712799072266 seconds
Output for 5.3.26
Single quotes took 0.56087183952332 seconds Double quotes took 0.45677399635315 seconds
Output for 5.3.25
Single quotes took 0.57822799682617 seconds Double quotes took 0.58022284507751 seconds
Output for 5.3.24
Single quotes took 0.51670098304749 seconds Double quotes took 0.51986312866211 seconds
Output for 5.3.23
Single quotes took 0.52497482299805 seconds Double quotes took 0.45527410507202 seconds
Output for 5.3.22
Single quotes took 0.52683687210083 seconds Double quotes took 0.52151203155518 seconds
Output for 5.3.21
Single quotes took 0.57136487960815 seconds Double quotes took 0.50771594047546 seconds
Output for 5.3.20
Single quotes took 0.59068202972412 seconds Double quotes took 0.51123404502869 seconds
Output for 5.3.19
Single quotes took 0.46045398712158 seconds Double quotes took 0.46720910072327 seconds
Output for 5.3.18
Single quotes took 0.5026969909668 seconds Double quotes took 0.45634007453918 seconds
Output for 5.3.17
Single quotes took 0.49809598922729 seconds Double quotes took 0.48955702781677 seconds
Output for 5.3.16
Single quotes took 0.46911311149597 seconds Double quotes took 0.46603202819824 seconds
Output for 5.3.15
Single quotes took 0.47800207138062 seconds Double quotes took 0.47208905220032 seconds
Output for 5.3.14
Single quotes took 0.57665395736694 seconds Double quotes took 0.51242113113403 seconds
Output for 5.3.13
Single quotes took 0.43441486358643 seconds Double quotes took 0.46080303192139 seconds
Output for 5.3.12
Single quotes took 0.5479199886322 seconds Double quotes took 0.56920909881592 seconds
Output for 5.3.11
Single quotes took 0.49954676628113 seconds Double quotes took 0.46781396865845 seconds
Output for 5.3.10
Single quotes took 0.51052594184875 seconds Double quotes took 0.44163417816162 seconds
Output for 5.3.9
Single quotes took 0.54305982589722 seconds Double quotes took 0.4974730014801 seconds
Output for 5.3.8
Single quotes took 0.64199590682983 seconds Double quotes took 0.52838015556335 seconds
Output for 5.3.7
Single quotes took 0.50855612754822 seconds Double quotes took 0.46690702438354 seconds
Output for 5.3.6
Single quotes took 0.57678890228271 seconds Double quotes took 0.47969007492065 seconds
Output for 5.3.5
Single quotes took 0.57993388175964 seconds Double quotes took 0.52105498313904 seconds
Output for 5.3.4
Single quotes took 0.56006193161011 seconds Double quotes took 0.48140811920166 seconds
Output for 5.3.3
Single quotes took 0.56803297996521 seconds Double quotes took 0.50993800163269 seconds
Output for 5.3.2
Single quotes took 0.47776222229004 seconds Double quotes took 0.44945096969604 seconds
Output for 5.3.1
Single quotes took 0.60108613967896 seconds Double quotes took 0.49750995635986 seconds
Output for 5.3.0
Single quotes took 0.5457398891449 seconds Double quotes took 0.46024680137634 seconds
Output for 5.2.17
Single quotes took 0.64964985847473 seconds Double quotes took 0.5275890827179 seconds
Output for 5.2.16
Single quotes took 0.65404605865479 seconds Double quotes took 0.61337614059448 seconds
Output for 5.2.15
Single quotes took 0.59666109085083 seconds Double quotes took 0.60627007484436 seconds
Output for 5.2.14
Single quotes took 0.58741116523743 seconds Double quotes took 0.54391813278198 seconds
Output for 5.2.13
Single quotes took 0.55101108551025 seconds Double quotes took 0.53078508377075 seconds
Output for 5.2.12
Single quotes took 0.54707217216492 seconds Double quotes took 0.52521705627441 seconds
Output for 5.2.11
Single quotes took 0.65988302230835 seconds Double quotes took 0.54140400886536 seconds
Output for 5.2.10
Single quotes took 0.60416197776794 seconds Double quotes took 0.53619909286499 seconds
Output for 5.2.9
Single quotes took 0.66171002388 seconds Double quotes took 0.54601502418518 seconds
Output for 5.2.8
Single quotes took 0.66734099388123 seconds Double quotes took 0.6580491065979 seconds
Output for 5.2.7
Single quotes took 0.61844301223755 seconds Double quotes took 0.64552092552185 seconds
Output for 5.2.6
Single quotes took 0.62790989875793 seconds Double quotes took 0.52575898170471 seconds
Output for 5.2.5
Single quotes took 0.54976987838745 seconds Double quotes took 0.5314610004425 seconds
Output for 5.2.4
Single quotes took 0.67651104927063 seconds Double quotes took 0.58742785453796 seconds
Output for 5.2.3
Single quotes took 0.56437206268311 seconds Double quotes took 0.54388785362244 seconds
Output for 5.2.2
Single quotes took 0.71567511558533 seconds Double quotes took 0.55518984794617 seconds
Output for 5.2.1
Single quotes took 0.51796793937683 seconds Double quotes took 0.5033700466156 seconds
Output for 5.2.0
Single quotes took 0.6143639087677 seconds Double quotes took 0.52832913398743 seconds
Output for 5.1.6
Single quotes took 0.61050510406494 seconds Double quotes took 0.6067590713501 seconds
Output for 5.1.5
Single quotes took 0.61030912399292 seconds Double quotes took 0.54393887519836 seconds
Output for 5.1.4
Single quotes took 0.61291408538818 seconds Double quotes took 0.53278183937073 seconds
Output for 5.1.3
Single quotes took 0.57479786872864 seconds Double quotes took 0.57249689102173 seconds
Output for 5.1.2
Single quotes took 0.57817387580872 seconds Double quotes took 0.54287099838257 seconds
Output for 5.1.1
Single quotes took 0.67795419692993 seconds Double quotes took 0.56354308128357 seconds
Output for 5.1.0
Single quotes took 0.58956003189087 seconds Double quotes took 0.52065300941467 seconds
Output for 4.3.0 - 4.3.2, 4.3.6, 4.3.9, 4.4.0, 4.4.3 - 4.4.5, 4.4.7 - 4.4.8, 5.0.1, 5.0.4 - 5.0.5

Process exited with code 137.
Output for 5.0.3
Single quotes took 1.5777540206909 seconds
Process exited with code 137.
Output for 5.0.2
Single quotes took 1.6273140907288 seconds
Process exited with code 137.
Output for 5.0.0
Single quotes took 1.5591268539429 seconds
Process exited with code 137.
Output for 4.4.9
Single quotes took 0.701037 seconds
Process exited with code 137.
Output for 4.4.6
Single quotes took 0.751519 seconds
Process exited with code 137.
Output for 4.4.2
Single quotes took 0.675854 seconds
Process exited with code 137.
Output for 4.4.1
Single quotes took 0.742758 seconds
Process exited with code 137.
Output for 4.3.11
Single quotes took 0.880478 seconds
Process exited with code 137.
Output for 4.3.10
Single quotes took 0.788552 seconds
Process exited with code 137.
Output for 4.3.8
Single quotes took 0.715455 seconds
Process exited with code 137.
Output for 4.3.7
Single quotes took 0.706366 seconds
Process exited with code 137.
Output for 4.3.5
Single quotes took 0.814861 seconds
Process exited with code 137.
Output for 4.3.4
Single quotes took 0.795638 seconds
Process exited with code 137.
Output for 4.3.3
Single quotes took 0.730559 seconds
Process exited with code 137.