3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time=microtime(true); for($run=0;$run<100000; $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<100000; $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.0017030239105225 seconds Double quotes took 0.001701831817627 seconds
Output for 7.0.14
Single quotes took 0.0016970634460449 seconds Double quotes took 0.0017030239105225 seconds
Output for 7.0.8
Single quotes took 0.001755952835083 seconds Double quotes took 0.0014801025390625 seconds
Output for 7.0.7
Single quotes took 0.0016748905181885 seconds Double quotes took 0.0016469955444336 seconds
Output for 7.0.6
Single quotes took 0.0011489391326904 seconds Double quotes took 0.0011789798736572 seconds
Output for 7.0.5
Single quotes took 0.0014560222625732 seconds Double quotes took 0.0015370845794678 seconds
Output for 7.0.4
Single quotes took 0.0017778873443604 seconds Double quotes took 0.0017678737640381 seconds
Output for 7.0.3
Single quotes took 0.0014150142669678 seconds Double quotes took 0.0014708042144775 seconds
Output for 7.0.2
Single quotes took 0.0016019344329834 seconds Double quotes took 0.0016992092132568 seconds
Output for 7.0.1
Single quotes took 0.0016541481018066 seconds Double quotes took 0.0016651153564453 seconds
Output for 7.0.0
Single quotes took 0.0017101764678955 seconds Double quotes took 0.0017521381378174 seconds
Output for hhvm-3.12.0
Single quotes took 0.0046072006225586 seconds Double quotes took 0.0045969486236572 seconds
Output for hhvm-3.10.0
Single quotes took 0.0063750743865967 seconds Double quotes took 0.0063018798828125 seconds
Output for 5.6.28
Single quotes took 0.0081980228424072 seconds Double quotes took 0.0080230236053467 seconds
Output for 5.6.23
Single quotes took 0.0052390098571777 seconds Double quotes took 0.005018949508667 seconds
Output for 5.6.22
Single quotes took 0.0052671432495117 seconds Double quotes took 0.0057978630065918 seconds
Output for 5.6.21
Single quotes took 0.0032210350036621 seconds Double quotes took 0.0032010078430176 seconds
Output for 5.6.20
Single quotes took 0.0045108795166016 seconds Double quotes took 0.0045969486236572 seconds
Output for 5.6.19
Single quotes took 0.0048320293426514 seconds Double quotes took 0.0042960643768311 seconds
Output for 5.6.18
Single quotes took 0.0039398670196533 seconds Double quotes took 0.004688024520874 seconds
Output for 5.6.17
Single quotes took 0.0048370361328125 seconds Double quotes took 0.0037839412689209 seconds
Output for 5.6.16
Single quotes took 0.0052831172943115 seconds Double quotes took 0.0058460235595703 seconds
Output for 5.6.15
Single quotes took 0.0052790641784668 seconds Double quotes took 0.0052051544189453 seconds
Output for 5.6.14
Single quotes took 0.0035290718078613 seconds Double quotes took 0.0035209655761719 seconds
Output for 5.6.13
Single quotes took 0.0042469501495361 seconds Double quotes took 0.0042300224304199 seconds
Output for 5.6.12
Single quotes took 0.0056838989257812 seconds Double quotes took 0.0054099559783936 seconds
Output for 5.6.11
Single quotes took 0.0055110454559326 seconds Double quotes took 0.0050520896911621 seconds
Output for 5.6.10
Single quotes took 0.0052738189697266 seconds Double quotes took 0.0050060749053955 seconds
Output for 5.6.9
Single quotes took 0.00531005859375 seconds Double quotes took 0.0052449703216553 seconds
Output for 5.6.8
Single quotes took 0.0034110546112061 seconds Double quotes took 0.0032620429992676 seconds
Output for 5.6.7
Single quotes took 0.0053000450134277 seconds Double quotes took 0.0051600933074951 seconds
Output for 5.6.6
Single quotes took 0.004086971282959 seconds Double quotes took 0.0040600299835205 seconds
Output for 5.6.5
Single quotes took 0.0038468837738037 seconds Double quotes took 0.0038151741027832 seconds
Output for 5.6.4
Single quotes took 0.0035381317138672 seconds Double quotes took 0.0035228729248047 seconds
Output for 5.6.3
Single quotes took 0.0038142204284668 seconds Double quotes took 0.0033810138702393 seconds
Output for 5.6.2
Single quotes took 0.0053157806396484 seconds Double quotes took 0.0052359104156494 seconds
Output for 5.6.1
Single quotes took 0.0051431655883789 seconds Double quotes took 0.004910945892334 seconds
Output for 5.6.0
Single quotes took 0.0032680034637451 seconds Double quotes took 0.0032927989959717 seconds
Output for 5.5.37
Single quotes took 0.0051729679107666 seconds Double quotes took 0.0050430297851562 seconds
Output for 5.5.36
Single quotes took 0.0056099891662598 seconds Double quotes took 0.0054829120635986 seconds
Output for 5.5.35
Single quotes took 0.0048508644104004 seconds Double quotes took 0.0039219856262207 seconds
Output for 5.5.34
Single quotes took 0.0053431987762451 seconds Double quotes took 0.0053009986877441 seconds
Output for 5.5.33
Single quotes took 0.0046460628509521 seconds Double quotes took 0.0046179294586182 seconds
Output for 5.5.32
Single quotes took 0.0042769908905029 seconds Double quotes took 0.0044651031494141 seconds
Output for 5.5.31
Single quotes took 0.0045499801635742 seconds Double quotes took 0.0038669109344482 seconds
Output for 5.5.30
Single quotes took 0.0032229423522949 seconds Double quotes took 0.0032351016998291 seconds
Output for 5.5.29
Single quotes took 0.0056800842285156 seconds Double quotes took 0.0053448677062988 seconds
Output for 5.5.28
Single quotes took 0.0041091442108154 seconds Double quotes took 0.0041108131408691 seconds
Output for 5.5.27
Single quotes took 0.004817008972168 seconds Double quotes took 0.0050840377807617 seconds
Output for 5.5.26
Single quotes took 0.0046520233154297 seconds Double quotes took 0.0048041343688965 seconds
Output for 5.5.25
Single quotes took 0.0046648979187012 seconds Double quotes took 0.0046839714050293 seconds
Output for 5.5.24
Single quotes took 0.0059449672698975 seconds Double quotes took 0.0057580471038818 seconds
Output for 5.5.23
Single quotes took 0.0044460296630859 seconds Double quotes took 0.0047891139984131 seconds
Output for 5.5.22
Single quotes took 0.0033299922943115 seconds Double quotes took 0.0033209323883057 seconds
Output for 5.5.21
Single quotes took 0.0046300888061523 seconds Double quotes took 0.0048007965087891 seconds
Output for 5.5.20
Single quotes took 0.0040950775146484 seconds Double quotes took 0.0041191577911377 seconds
Output for 5.5.19
Single quotes took 0.0054020881652832 seconds Double quotes took 0.004863977432251 seconds
Output for 5.5.18
Single quotes took 0.0035359859466553 seconds Double quotes took 0.003774881362915 seconds
Output for 5.5.16
Single quotes took 0.0032188892364502 seconds Double quotes took 0.0032150745391846 seconds
Output for 5.5.15
Single quotes took 0.00482177734375 seconds Double quotes took 0.0046529769897461 seconds
Output for 5.5.14
Single quotes took 0.00323486328125 seconds Double quotes took 0.0032110214233398 seconds
Output for 5.5.13
Single quotes took 0.0053219795227051 seconds Double quotes took 0.0054731369018555 seconds
Output for 5.5.12
Single quotes took 0.0044460296630859 seconds Double quotes took 0.0042901039123535 seconds
Output for 5.5.11
Single quotes took 0.0053229331970215 seconds Double quotes took 0.0053441524505615 seconds
Output for 5.5.10
Single quotes took 0.005587100982666 seconds Double quotes took 0.0053730010986328 seconds
Output for 5.5.9
Single quotes took 0.0055680274963379 seconds Double quotes took 0.0049879550933838 seconds
Output for 5.5.8
Single quotes took 0.0058331489562988 seconds Double quotes took 0.0053470134735107 seconds
Output for 5.5.7
Single quotes took 0.0048258304595947 seconds Double quotes took 0.0048160552978516 seconds
Output for 5.5.6
Single quotes took 0.0048129558563232 seconds Double quotes took 0.0049879550933838 seconds
Output for 5.5.5
Single quotes took 0.0051090717315674 seconds Double quotes took 0.0048120021820068 seconds
Output for 5.5.4
Single quotes took 0.0036919116973877 seconds Double quotes took 0.0036909580230713 seconds
Output for 5.5.3
Single quotes took 0.0050609111785889 seconds Double quotes took 0.0048868656158447 seconds
Output for 5.5.2
Single quotes took 0.0054488182067871 seconds Double quotes took 0.0053069591522217 seconds
Output for 5.5.1
Single quotes took 0.0040798187255859 seconds Double quotes took 0.0040760040283203 seconds
Output for 5.5.0
Single quotes took 0.003209114074707 seconds Double quotes took 0.0034730434417725 seconds
Output for 5.4.45
Single quotes took 0.0052299499511719 seconds Double quotes took 0.0054221153259277 seconds
Output for 5.4.44
Single quotes took 0.0045671463012695 seconds Double quotes took 0.0046389102935791 seconds
Output for 5.4.43
Single quotes took 0.0031619071960449 seconds Double quotes took 0.0032951831817627 seconds
Output for 5.4.42
Single quotes took 0.0038788318634033 seconds Double quotes took 0.0037539005279541 seconds
Output for 5.4.41
Single quotes took 0.0032980442047119 seconds Double quotes took 0.0036201477050781 seconds
Output for 5.4.40
Single quotes took 0.0049841403961182 seconds Double quotes took 0.0047929286956787 seconds
Output for 5.4.39
Single quotes took 0.0037620067596436 seconds Double quotes took 0.0037541389465332 seconds
Output for 5.4.38
Single quotes took 0.0040230751037598 seconds Double quotes took 0.0032939910888672 seconds
Output for 5.4.37
Single quotes took 0.0053060054779053 seconds Double quotes took 0.0054059028625488 seconds
Output for 5.4.36
Single quotes took 0.0046348571777344 seconds Double quotes took 0.0047190189361572 seconds
Output for 5.4.35
Single quotes took 0.0052280426025391 seconds Double quotes took 0.0052359104156494 seconds
Output for 5.4.34
Single quotes took 0.0052611827850342 seconds Double quotes took 0.0052499771118164 seconds
Output for 5.4.32
Single quotes took 0.0031981468200684 seconds Double quotes took 0.0031709671020508 seconds
Output for 5.4.31
Single quotes took 0.0037388801574707 seconds Double quotes took 0.0037229061126709 seconds
Output for 5.4.30
Single quotes took 0.0055899620056152 seconds Double quotes took 0.0055480003356934 seconds
Output for 5.4.29
Single quotes took 0.0055429935455322 seconds Double quotes took 0.0058109760284424 seconds
Output for 5.4.28
Single quotes took 0.0049431324005127 seconds Double quotes took 0.0050249099731445 seconds
Output for 5.4.27
Single quotes took 0.0052139759063721 seconds Double quotes took 0.0053420066833496 seconds
Output for 5.4.26
Single quotes took 0.0047869682312012 seconds Double quotes took 0.0043840408325195 seconds
Output for 5.4.25
Single quotes took 0.0048007965087891 seconds Double quotes took 0.0047500133514404 seconds
Output for 5.4.24
Single quotes took 0.0050079822540283 seconds Double quotes took 0.004777193069458 seconds
Output for 5.4.23
Single quotes took 0.0052249431610107 seconds Double quotes took 0.0043888092041016 seconds
Output for 5.4.22
Single quotes took 0.0053341388702393 seconds Double quotes took 0.0056700706481934 seconds
Output for 5.4.21
Single quotes took 0.005234956741333 seconds Double quotes took 0.0053000450134277 seconds
Output for 5.4.20
Single quotes took 0.0069708824157715 seconds Double quotes took 0.0047080516815186 seconds
Output for 5.4.19
Single quotes took 0.0033700466156006 seconds Double quotes took 0.0033111572265625 seconds
Output for 5.4.18
Single quotes took 0.0045540332794189 seconds Double quotes took 0.0045120716094971 seconds
Output for 5.4.17
Single quotes took 0.003154993057251 seconds Double quotes took 0.0031640529632568 seconds
Output for 5.4.16
Single quotes took 0.0050468444824219 seconds Double quotes took 0.0041720867156982 seconds
Output for 5.4.15
Single quotes took 0.0039770603179932 seconds Double quotes took 0.0040960311889648 seconds
Output for 5.4.14
Single quotes took 0.0038580894470215 seconds Double quotes took 0.0038750171661377 seconds
Output for 5.4.13
Single quotes took 0.0054969787597656 seconds Double quotes took 0.0053319931030273 seconds
Output for 5.4.12
Single quotes took 0.0039980411529541 seconds Double quotes took 0.0039501190185547 seconds
Output for 5.4.11
Single quotes took 0.00472092628479 seconds Double quotes took 0.0045881271362305 seconds
Output for 5.4.10
Single quotes took 0.0050010681152344 seconds Double quotes took 0.0051679611206055 seconds
Output for 5.4.9
Single quotes took 0.005216121673584 seconds Double quotes took 0.004331111907959 seconds
Output for 5.4.8
Single quotes took 0.0047938823699951 seconds Double quotes took 0.0040719509124756 seconds
Output for 5.4.7
Single quotes took 0.004770040512085 seconds Double quotes took 0.0045900344848633 seconds
Output for 5.4.6
Single quotes took 0.0041851997375488 seconds Double quotes took 0.0042848587036133 seconds
Output for 5.4.5
Single quotes took 0.0042519569396973 seconds Double quotes took 0.0042009353637695 seconds
Output for 5.4.4
Single quotes took 0.0052039623260498 seconds Double quotes took 0.0050511360168457 seconds
Output for 5.4.3
Single quotes took 0.0088050365447998 seconds Double quotes took 0.004004955291748 seconds
Output for 5.4.2
Single quotes took 0.0041170120239258 seconds Double quotes took 0.004586935043335 seconds
Output for 5.4.1
Single quotes took 0.0044219493865967 seconds Double quotes took 0.0040900707244873 seconds
Output for 5.4.0
Single quotes took 0.0052490234375 seconds Double quotes took 0.0049171447753906 seconds
Output for 5.3.29
Single quotes took 0.0065290927886963 seconds Double quotes took 0.0065598487854004 seconds
Output for 5.3.28
Single quotes took 0.0068628787994385 seconds Double quotes took 0.0063629150390625 seconds
Output for 5.3.27
Single quotes took 0.0057089328765869 seconds Double quotes took 0.0057909488677979 seconds
Output for 5.3.26
Single quotes took 0.0065720081329346 seconds Double quotes took 0.0064840316772461 seconds
Output for 5.3.25
Single quotes took 0.0078139305114746 seconds Double quotes took 0.0080411434173584 seconds
Output for 5.3.24
Single quotes took 0.006911039352417 seconds Double quotes took 0.0062921047210693 seconds
Output for 5.3.23
Single quotes took 0.0077629089355469 seconds Double quotes took 0.007598876953125 seconds
Output for 5.3.22
Single quotes took 0.0061838626861572 seconds Double quotes took 0.0054218769073486 seconds
Output for 5.3.21
Single quotes took 0.0087521076202393 seconds Double quotes took 0.0084958076477051 seconds
Output for 5.3.20
Single quotes took 0.0080921649932861 seconds Double quotes took 0.007673978805542 seconds
Output for 5.3.19
Single quotes took 0.007267951965332 seconds Double quotes took 0.0077400207519531 seconds
Output for 5.3.18
Single quotes took 0.0089499950408936 seconds Double quotes took 0.0086879730224609 seconds
Output for 5.3.17
Single quotes took 0.0087969303131104 seconds Double quotes took 0.0085818767547607 seconds
Output for 5.3.16
Single quotes took 0.0078489780426025 seconds Double quotes took 0.0077168941497803 seconds
Output for 5.3.15
Single quotes took 0.0072181224822998 seconds Double quotes took 0.0071289539337158 seconds
Output for 5.3.14
Single quotes took 0.0091588497161865 seconds Double quotes took 0.0086719989776611 seconds
Output for 5.3.13
Single quotes took 0.0062808990478516 seconds Double quotes took 0.0078179836273193 seconds
Output for 5.3.12
Single quotes took 0.0056381225585938 seconds Double quotes took 0.0065398216247559 seconds
Output for 5.3.11
Single quotes took 0.0066471099853516 seconds Double quotes took 0.0072660446166992 seconds
Output for 5.3.10
Single quotes took 0.0079121589660645 seconds Double quotes took 0.0082299709320068 seconds
Output for 5.3.9
Single quotes took 0.0092489719390869 seconds Double quotes took 0.0089478492736816 seconds
Output for 5.3.8
Single quotes took 0.0078029632568359 seconds Double quotes took 0.0077919960021973 seconds
Output for 5.3.7
Single quotes took 0.0079610347747803 seconds Double quotes took 0.0072410106658936 seconds
Output for 5.3.6
Single quotes took 0.0089879035949707 seconds Double quotes took 0.0075540542602539 seconds
Output for 5.3.5
Single quotes took 0.0076918601989746 seconds Double quotes took 0.0075128078460693 seconds
Output for 5.3.4
Single quotes took 0.0085070133209229 seconds Double quotes took 0.0097389221191406 seconds
Output for 5.3.3
Single quotes took 0.0087831020355225 seconds Double quotes took 0.0084879398345947 seconds
Output for 5.3.2
Single quotes took 0.0078420639038086 seconds Double quotes took 0.0074300765991211 seconds
Output for 5.3.1
Single quotes took 0.0080599784851074 seconds Double quotes took 0.0080709457397461 seconds
Output for 5.3.0
Single quotes took 0.0068299770355225 seconds Double quotes took 0.0066921710968018 seconds
Output for 5.2.17
Single quotes took 0.011956930160522 seconds Double quotes took 0.010987043380737 seconds
Output for 5.2.16
Single quotes took 0.01238489151001 seconds Double quotes took 0.011187076568604 seconds
Output for 5.2.15
Single quotes took 0.010447978973389 seconds Double quotes took 0.008991003036499 seconds
Output for 5.2.14
Single quotes took 0.012012958526611 seconds Double quotes took 0.011080980300903 seconds
Output for 5.2.13
Single quotes took 0.008368968963623 seconds Double quotes took 0.0080218315124512 seconds
Output for 5.2.12
Single quotes took 0.0086901187896729 seconds Double quotes took 0.0065751075744629 seconds
Output for 5.2.11
Single quotes took 0.0083589553833008 seconds Double quotes took 0.0083789825439453 seconds
Output for 5.2.10
Single quotes took 0.0064399242401123 seconds Double quotes took 0.0064108371734619 seconds
Output for 5.2.9
Single quotes took 0.010142803192139 seconds Double quotes took 0.0094590187072754 seconds
Output for 5.2.8
Single quotes took 0.011090993881226 seconds Double quotes took 0.010118007659912 seconds
Output for 5.2.7
Single quotes took 0.011330842971802 seconds Double quotes took 0.010874032974243 seconds
Output for 5.2.6
Single quotes took 0.0087859630584717 seconds Double quotes took 0.0091769695281982 seconds
Output for 5.2.5
Single quotes took 0.0064430236816406 seconds Double quotes took 0.0075139999389648 seconds
Output for 5.2.4
Single quotes took 0.0069928169250488 seconds Double quotes took 0.0068888664245605 seconds
Output for 5.2.3
Single quotes took 0.011763095855713 seconds Double quotes took 0.011420011520386 seconds
Output for 5.2.2
Single quotes took 0.006493091583252 seconds Double quotes took 0.0067110061645508 seconds
Output for 5.2.1
Single quotes took 0.011456966400146 seconds Double quotes took 0.011063814163208 seconds
Output for 5.2.0
Single quotes took 0.0076630115509033 seconds Double quotes took 0.0076332092285156 seconds
Output for 5.1.6
Single quotes took 0.010524988174438 seconds Double quotes took 0.010199069976807 seconds
Output for 5.1.5
Single quotes took 0.013082981109619 seconds Double quotes took 0.012397050857544 seconds
Output for 5.1.4
Single quotes took 0.012341976165771 seconds Double quotes took 0.012109041213989 seconds
Output for 5.1.3
Single quotes took 0.01280403137207 seconds Double quotes took 0.012262105941772 seconds
Output for 5.1.2
Single quotes took 0.0098288059234619 seconds Double quotes took 0.009735107421875 seconds
Output for 5.1.1
Single quotes took 0.010166883468628 seconds Double quotes took 0.0096931457519531 seconds
Output for 5.1.0
Single quotes took 0.0075740814208984 seconds Double quotes took 0.0080289840698242 seconds
Output for 5.0.5
Single quotes took 0.034187793731689 seconds Double quotes took 0.030389070510864 seconds
Output for 5.0.4
Single quotes took 0.035427093505859 seconds Double quotes took 0.030378818511963 seconds
Output for 5.0.3
Single quotes took 0.031094074249268 seconds Double quotes took 0.026516199111938 seconds
Output for 5.0.2
Single quotes took 0.032104969024658 seconds Double quotes took 0.027266025543213 seconds
Output for 5.0.1
Single quotes took 0.016083002090454 seconds Double quotes took 0.016110897064209 seconds
Output for 5.0.0
Single quotes took 0.017323017120361 seconds Double quotes took 0.016679048538208 seconds
Output for 4.4.9
Single quotes took 0.037225 seconds Double quotes took 0.030803 seconds
Output for 4.4.8
Single quotes took 0.034765 seconds Double quotes took 0.033357 seconds
Output for 4.4.7
Single quotes took 0.038636 seconds Double quotes took 0.030019 seconds
Output for 4.4.6
Single quotes took 0.039016 seconds Double quotes took 0.033553 seconds
Output for 4.4.5
Single quotes took 0.037029 seconds Double quotes took 0.026905 seconds
Output for 4.4.4
Single quotes took 0.032958 seconds Double quotes took 0.030312 seconds
Output for 4.4.3
Single quotes took 0.035554 seconds Double quotes took 0.0313 seconds
Output for 4.4.2
Single quotes took 0.037373 seconds Double quotes took 0.028424 seconds
Output for 4.4.1
Single quotes took 0.037098 seconds Double quotes took 0.032273 seconds
Output for 4.4.0
Single quotes took 0.033858 seconds Double quotes took 0.030331 seconds
Output for 4.3.11
Single quotes took 0.037845 seconds Double quotes took 0.033141 seconds
Output for 4.3.10
Single quotes took 0.035156 seconds Double quotes took 0.02816 seconds
Output for 4.3.9
Single quotes took 0.020711 seconds Double quotes took 0.019206 seconds
Output for 4.3.8
Single quotes took 0.029905 seconds Double quotes took 0.026237 seconds
Output for 4.3.7
Single quotes took 0.036351 seconds Double quotes took 0.031774 seconds
Output for 4.3.6
Single quotes took 0.021035 seconds Double quotes took 0.020455 seconds
Output for 4.3.5
Single quotes took 0.018585 seconds Double quotes took 0.018773 seconds
Output for 4.3.4
Single quotes took 0.015904 seconds Double quotes took 0.015549 seconds
Output for 4.3.3
Single quotes took 0.022233 seconds Double quotes took 0.023112 seconds
Output for 4.3.2
Single quotes took 0.018555 seconds Double quotes took 0.018619 seconds
Output for 4.3.1
Single quotes took 0.023413 seconds Double quotes took 0.018879 seconds
Output for 4.3.0
Single quotes took 0.018875 seconds Double quotes took 0.018735 seconds