3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ob_start(); $time = microtime(1); $i = 0; while ($i++ < 10000) echo'aaaaaaa'.'aaaaaaa'.'aaaaaaa'.'aaaaaaa'; $end = microtime(1); ob_end_clean(); echo "period took ".($end-$time); ob_start(); $time = microtime(1); $i = 0; while ($i++ < 10000) echo'aaaaaaa','aaaaaaa','aaaaaaa','aaaaaaa'; $end = microtime(1); ob_end_clean(); echo "comma took ".($end-$time);
Output for 7.1.0
period took 0.0004880428314209comma took 0.0018541812896729
Output for 7.0.14
period took 0.00046801567077637comma took 0.0017731189727783
Output for 7.0.7
period took 0.00047588348388672comma took 0.0014009475708008
Output for 7.0.6
period took 0.00063300132751465comma took 0.0017080307006836
Output for 7.0.5
period took 0.00036501884460449comma took 0.0010380744934082
Output for 7.0.4
period took 0.00028204917907715comma took 0.0010058879852295
Output for 7.0.3
period took 0.00029706954956055comma took 0.0010151863098145
Output for 7.0.2
period took 0.00028800964355469comma took 0.0010080337524414
Output for 7.0.1
period took 0.00027990341186523comma took 0.0011022090911865
Output for 7.0.0
period took 0.00029683113098145comma took 0.0010499954223633
Output for hhvm-3.12.0
period took 0.00065398216247559comma took 0.0012249946594238
Output for hhvm-3.10.0
period took 0.00069499015808105comma took 0.0013580322265625
Output for 5.6.28
period took 0.0027241706848145comma took 0.0025210380554199
Output for 5.6.22
period took 0.0017671585083008comma took 0.0019199848175049
Output for 5.6.21
period took 0.0018200874328613comma took 0.0020358562469482
Output for 5.6.20
period took 0.001133918762207comma took 0.0012638568878174
Output for 5.6.19
period took 0.0015890598297119comma took 0.0017449855804443
Output for 5.6.18
period took 0.0011498928070068comma took 0.0012669563293457
Output for 5.6.17
period took 0.0011868476867676comma took 0.001276969909668
Output for 5.6.16
period took 0.0011467933654785comma took 0.0012288093566895
Output for 5.6.15
period took 0.0012381076812744comma took 0.0013279914855957
Output for 5.6.14
period took 0.001176118850708comma took 0.0012850761413574
Output for 5.6.13
period took 0.0014889240264893comma took 0.0016188621520996
Output for 5.6.12
period took 0.0016679763793945comma took 0.0013699531555176
Output for 5.6.11
period took 0.0011579990386963comma took 0.0012660026550293
Output for 5.6.10
period took 0.0011470317840576comma took 0.0012738704681396
Output for 5.6.9
period took 0.0011970996856689comma took 0.0012810230255127
Output for 5.6.8
period took 0.0009610652923584comma took 0.0010628700256348
Output for 5.6.7
period took 0.00099682807922363comma took 0.0013821125030518
Output for 5.6.6
period took 0.0013279914855957comma took 0.0015289783477783
Output for 5.6.5
period took 0.0010690689086914comma took 0.0012750625610352
Output for 5.6.4
period took 0.00089192390441895comma took 0.0010612010955811
Output for 5.6.3
period took 0.0020530223846436comma took 0.0021729469299316
Output for 5.6.2
period took 0.0017387866973877comma took 0.0016639232635498
Output for 5.6.1
period took 0.0021319389343262comma took 0.0020859241485596
Output for 5.6.0
period took 0.0014691352844238comma took 0.0016379356384277
Output for 5.5.36
period took 0.0012528896331787comma took 0.0013329982757568
Output for 5.5.35
period took 0.0017621517181396comma took 0.0019581317901611
Output for 5.5.34
period took 0.0012478828430176comma took 0.0013909339904785
Output for 5.5.33
period took 0.0012040138244629comma took 0.0013599395751953
Output for 5.5.32
period took 0.0011699199676514comma took 0.0012750625610352
Output for 5.5.31
period took 0.0014431476593018comma took 0.0013120174407959
Output for 5.5.30
period took 0.0011961460113525comma took 0.0013270378112793
Output for 5.5.29
period took 0.0011770725250244comma took 0.001317024230957
Output for 5.5.28
period took 0.0015308856964111comma took 0.0017039775848389
Output for 5.5.27
period took 0.0015428066253662comma took 0.0016868114471436
Output for 5.5.26
period took 0.0011661052703857comma took 0.0013048648834229
Output for 5.5.25
period took 0.0011119842529297comma took 0.0012748241424561
Output for 5.5.24
period took 0.0011501312255859comma took 0.0013020038604736
Output for 5.5.23
period took 0.0013020038604736comma took 0.0015220642089844
Output for 5.5.22
period took 0.0009770393371582comma took 0.0010981559753418
Output for 5.5.21
period took 0.0018060207366943comma took 0.0020620822906494
Output for 5.5.20
period took 0.0013480186462402comma took 0.0015430450439453
Output for 5.5.19
period took 0.001561164855957comma took 0.0016889572143555
Output for 5.5.18
period took 0.0018079280853271comma took 0.0018889904022217
Output for 5.5.16
period took 0.0017921924591064comma took 0.0020120143890381
Output for 5.5.15
period took 0.0014150142669678comma took 0.0016729831695557
Output for 5.5.14
period took 0.0014128684997559comma took 0.0016248226165771
Output for 5.5.13
period took 0.0019938945770264comma took 0.0022821426391602
Output for 5.5.12
period took 0.0018508434295654comma took 0.0021300315856934
Output for 5.5.11
period took 0.0018038749694824comma took 0.0021650791168213
Output for 5.5.10
period took 0.0018270015716553comma took 0.002129077911377
Output for 5.5.9
period took 0.0015790462493896comma took 0.001784086227417
Output for 5.5.8
period took 0.0015139579772949comma took 0.0017640590667725
Output for 5.5.7
period took 0.0011229515075684comma took 0.0012800693511963
Output for 5.5.6
period took 0.001533031463623comma took 0.0019550323486328
Output for 5.5.5
period took 0.0019471645355225comma took 0.0022439956665039
Output for 5.5.4
period took 0.0016789436340332comma took 0.001910924911499
Output for 5.5.3
period took 0.0011160373687744comma took 0.0013120174407959
Output for 5.5.2
period took 0.0011229515075684comma took 0.0012979507446289
Output for 5.5.1
period took 0.001511812210083comma took 0.0018789768218994
Output for 5.5.0
period took 0.0014469623565674comma took 0.0017170906066895
Output for 5.4.45
period took 0.0023021697998047comma took 0.0018460750579834
Output for 5.4.44
period took 0.001884937286377comma took 0.0013649463653564
Output for 5.4.43
period took 0.0012691020965576comma took 0.0012860298156738
Output for 5.4.42
period took 0.001162052154541comma took 0.0012738704681396
Output for 5.4.41
period took 0.0011599063873291comma took 0.001262903213501
Output for 5.4.40
period took 0.0011999607086182comma took 0.0015499591827393
Output for 5.4.39
period took 0.0010731220245361comma took 0.0012619495391846
Output for 5.4.38
period took 0.00095510482788086comma took 0.0010509490966797
Output for 5.4.37
period took 0.0009000301361084comma took 0.0010330677032471
Output for 5.4.36
period took 0.0010991096496582comma took 0.0012609958648682
Output for 5.4.35
period took 0.0017821788787842comma took 0.002068042755127
Output for 5.4.34
period took 0.0018060207366943comma took 0.0021331310272217
Output for 5.4.32
period took 0.0018141269683838comma took 0.0021178722381592
Output for 5.4.31
period took 0.001816987991333comma took 0.0020089149475098
Output for 5.4.30
period took 0.0014989376068115comma took 0.0025451183319092
Output for 5.4.29
period took 0.0015261173248291comma took 0.0017220973968506
Output for 5.4.28
period took 0.0018749237060547comma took 0.002086877822876
Output for 5.4.27
period took 0.0017249584197998comma took 0.0019409656524658
Output for 5.4.26
period took 0.0017960071563721comma took 0.0021119117736816
Output for 5.4.25
period took 0.0014128684997559comma took 0.0016539096832275
Output for 5.4.24
period took 0.0011107921600342comma took 0.0013220310211182
Output for 5.4.23
period took 0.0012660026550293comma took 0.001533031463623
Output for 5.4.22
period took 0.0015060901641846comma took 0.0017480850219727
Output for 5.4.21
period took 0.0013949871063232comma took 0.0016000270843506
Output for 5.4.20
period took 0.0018351078033447comma took 0.0020959377288818
Output for 5.4.19
period took 0.0014750957489014comma took 0.001629114151001
Output for 5.4.18
period took 0.0014488697052002comma took 0.0017518997192383
Output for 5.4.17
period took 0.0018959045410156comma took 0.0022251605987549
Output for 5.4.16
period took 0.0017681121826172comma took 0.0020251274108887
Output for 5.4.15
period took 0.0014369487762451comma took 0.0016751289367676
Output for 5.4.14
period took 0.0019218921661377comma took 0.0018911361694336
Output for 5.4.13
period took 0.0017809867858887comma took 0.0019080638885498
Output for 5.4.12
period took 0.0013740062713623comma took 0.0015761852264404
Output for 5.4.11
period took 0.0016069412231445comma took 0.0018301010131836
Output for 5.4.10
period took 0.0017471313476562comma took 0.0021398067474365
Output for 5.4.9
period took 0.0018811225891113comma took 0.0023601055145264
Output for 5.4.8
period took 0.0018508434295654comma took 0.0022242069244385
Output for 5.4.7
period took 0.0013878345489502comma took 0.0018320083618164
Output for 5.4.6
period took 0.0016779899597168comma took 0.0016210079193115
Output for 5.4.5
period took 0.0019030570983887comma took 0.0021109580993652
Output for 5.4.4
period took 0.0024259090423584comma took 0.0020601749420166
Output for 5.4.3
period took 0.0018489360809326comma took 0.0019261837005615
Output for 5.4.2
period took 0.0018229484558105comma took 0.0021679401397705
Output for 5.4.1
period took 0.0016741752624512comma took 0.0019419193267822
Output for 5.4.0
period took 0.0015301704406738comma took 0.0017769336700439
Output for 5.3.29
period took 0.001878023147583comma took 0.0012469291687012
Output for 5.3.28
period took 0.0012531280517578comma took 0.00080704689025879
Output for 5.3.27
period took 0.0014820098876953comma took 0.00097298622131348
Output for 5.3.26
period took 0.0015621185302734comma took 0.0010640621185303
Output for 5.3.25
period took 0.0014560222625732comma took 0.0010778903961182
Output for 5.3.24
period took 0.0015769004821777comma took 0.001162052154541
Output for 5.3.23
period took 0.0020179748535156comma took 0.0013391971588135
Output for 5.3.22
period took 0.0023629665374756comma took 0.0018420219421387
Output for 5.3.21
period took 0.0020229816436768comma took 0.0015370845794678
Output for 5.3.20
period took 0.0019869804382324comma took 0.0014798641204834
Output for 5.3.19
period took 0.0016469955444336comma took 0.0011050701141357
Output for 5.3.18
period took 0.0020661354064941comma took 0.0014851093292236
Output for 5.3.17
period took 0.001849889755249comma took 0.0013959407806396
Output for 5.3.16
period took 0.0013179779052734comma took 0.00087809562683105
Output for 5.3.15
period took 0.0011730194091797comma took 0.00086688995361328
Output for 5.3.14
period took 0.0019619464874268comma took 0.0014369487762451
Output for 5.3.13
period took 0.0017640590667725comma took 0.0011811256408691
Output for 5.3.12
period took 0.00164794921875comma took 0.0014338493347168
Output for 5.3.11
period took 0.0016300678253174comma took 0.0013220310211182
Output for 5.3.10
period took 0.0013620853424072comma took 0.00096297264099121
Output for 5.3.9
period took 0.0018420219421387comma took 0.0013229846954346
Output for 5.3.8
period took 0.0017178058624268comma took 0.0011560916900635
Output for 5.3.7
period took 0.0017728805541992comma took 0.0011558532714844
Output for 5.3.6
period took 0.0018839836120605comma took 0.0014069080352783
Output for 5.3.5
period took 0.0019099712371826comma took 0.0014069080352783
Output for 5.3.4
period took 0.0017549991607666comma took 0.0012991428375244
Output for 5.3.3
period took 0.001755952835083comma took 0.0013039112091064
Output for 5.3.2
period took 0.0017340183258057comma took 0.0012872219085693
Output for 5.3.1
period took 0.0012729167938232comma took 0.00089788436889648
Output for 5.3.0
period took 0.0017769336700439comma took 0.0013589859008789
Output for 5.2.17
period took 0.0021648406982422comma took 0.0017521381378174
Output for 5.2.16
period took 0.0012781620025635comma took 0.0010461807250977
Output for 5.2.15
period took 0.002331018447876comma took 0.0017728805541992
Output for 5.2.14
period took 0.0020160675048828comma took 0.0015981197357178
Output for 5.2.13
period took 0.001317024230957comma took 0.001086950302124
Output for 5.2.12
period took 0.0021960735321045comma took 0.0017259120941162
Output for 5.2.11
period took 0.0024240016937256comma took 0.0019190311431885
Output for 5.2.10
period took 0.0021710395812988comma took 0.0017580986022949
Output for 5.2.9
period took 0.0022599697113037comma took 0.0018301010131836
Output for 5.2.8
period took 0.0021119117736816comma took 0.0017080307006836
Output for 5.2.7
period took 0.0024158954620361comma took 0.0018558502197266
Output for 5.2.6
period took 0.0022850036621094comma took 0.0017459392547607
Output for 5.2.5
period took 0.0023510456085205comma took 0.001662015914917
Output for 5.2.4
period took 0.0016028881072998comma took 0.0011899471282959
Output for 5.2.3
period took 0.0013659000396729comma took 0.0010409355163574
Output for 5.2.2
period took 0.0018630027770996comma took 0.0013008117675781
Output for 5.2.1
period took 0.002288818359375comma took 0.0023679733276367
Output for 5.2.0
period took 0.00242018699646comma took 0.0017199516296387
Output for 5.1.6
period took 0.0025260448455811comma took 0.0017740726470947
Output for 5.1.5
period took 0.0025310516357422comma took 0.0019490718841553
Output for 5.1.4
period took 0.0018949508666992comma took 0.0014538764953613
Output for 5.1.3
period took 0.0020160675048828comma took 0.0016729831695557
Output for 5.1.2
period took 0.0023219585418701comma took 0.0018599033355713
Output for 5.1.1
period took 0.0026021003723145comma took 0.0017910003662109
Output for 5.1.0
period took 0.0022628307342529comma took 0.0017399787902832
Output for 5.0.5
period took 0.0046098232269287comma took 0.0026929378509521
Output for 5.0.4
period took 0.0041389465332031comma took 0.0025022029876709
Output for 5.0.3
period took 0.0039639472961426comma took 0.0022239685058594
Output for 5.0.2
period took 0.0055971145629883comma took 0.0028390884399414
Output for 5.0.1
period took 0.0037441253662109comma took 0.00199294090271
Output for 5.0.0
period took 0.0040669441223145comma took 0.0023839473724365
Output for 4.4.9
period took 0.004958comma took 0.002738
Output for 4.4.8
period took 0.004871comma took 0.002687
Output for 4.4.7
period took 0.006339comma took 0.002872
Output for 4.4.6
period took 0.004629comma took 0.002575
Output for 4.4.5
period took 0.00457comma took 0.002435
Output for 4.4.4
period took 0.004676comma took 0.002531
Output for 4.4.3
period took 0.004364comma took 0.002526
Output for 4.4.2
period took 0.004954comma took 0.002729
Output for 4.4.1
period took 0.004615comma took 0.002555
Output for 4.4.0
period took 0.004031comma took 0.002233
Output for 4.3.11
period took 0.005196comma took 0.002856
Output for 4.3.10
period took 0.00493comma took 0.002897
Output for 4.3.9
period took 0.00517comma took 0.002733
Output for 4.3.8
period took 0.004603comma took 0.002488
Output for 4.3.7
period took 0.005166comma took 0.002683
Output for 4.3.6
period took 0.004989comma took 0.002579
Output for 4.3.5
period took 0.005256comma took 0.002656
Output for 4.3.4
period took 0.004286comma took 0.002335
Output for 4.3.3
period took 0.003905comma took 0.002114
Output for 4.3.2
period took 0.004085comma took 0.002435
Output for 4.3.1
period took 0.004444comma took 0.002445
Output for 4.3.0
period took 0.004837comma took 0.002789