3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = microtime(true); for($i = 0; $i < 10000000; $i++) { } $end = microtime(true); echo 'Total:' . ($end - $start); echo "\n"; $start = microtime(true); $i = 0; while($i != 10000000) { $i++; } $end = microtime(true); echo 'Total:' . ($end - $start);
Output for 7.1.0
Total:-0.049462795257568 Total:-0.08686900138855
Output for 7.0.14
Total:0.11196112632751 Total:0.080496072769165
Output for 7.0.6
Total:0.10413694381714 Total:0.071748971939087
Output for 7.0.5
Total:0.09988808631897 Total:0.076660871505737
Output for 7.0.4
Total:0.079965114593506 Total:0.076986074447632
Output for 7.0.3
Total:0.09791111946106 Total:0.094397783279419
Output for 7.0.2
Total:0.09461498260498 Total:0.077826976776123
Output for 7.0.1
Total:0.078837156295776 Total:0.086885929107666
Output for 7.0.0
Total:0.091304063796997 Total:0.076642990112305
Output for 5.6.28
Total:-0.16959691047668 Total:-0.15111804008484
Output for 5.6.21
Total:0.25509691238403 Total:0.22187614440918
Output for 5.6.20
Total:0.23194408416748 Total:0.17636108398438
Output for 5.6.19
Total:0.21601295471191 Total:0.17587804794312
Output for 5.6.18
Total:0.2139778137207 Total:0.17136883735657
Output for 5.6.17
Total:0.21628403663635 Total:0.17556095123291
Output for 5.6.16
Total:0.21502304077148 Total:0.1758508682251
Output for 5.6.15
Total:0.22180604934692 Total:0.19332122802734
Output for 5.6.14
Total:0.41366004943848 Total:0.19058799743652
Output for 5.6.13
Total:0.20706796646118 Total:0.17027187347412
Output for 5.6.12
Total:0.23343896865845 Total:0.17591094970703
Output for 5.6.11
Total:0.22719979286194 Total:0.17546892166138
Output for 5.6.10
Total:0.23454809188843 Total:0.17627596855164
Output for 5.6.9
Total:0.21337199211121 Total:0.17597508430481
Output for 5.6.8
Total:0.21844792366028 Total:0.1870448589325
Output for 5.5.35
Total:0.26125121116638 Total:0.20530200004578
Output for 5.5.34
Total:0.23516798019409 Total:0.17745995521545
Output for 5.5.33
Total:0.21270608901978 Total:0.17554497718811
Output for 5.5.32
Total:0.23490715026855 Total:0.17555594444275
Output for 5.5.31
Total:0.22724604606628 Total:0.17538595199585
Output for 5.5.30
Total:0.2365140914917 Total:0.17621493339539
Output for 5.5.29
Total:0.23482704162598 Total:0.17560791969299
Output for 5.5.28
Total:0.23219609260559 Total:0.19511389732361
Output for 5.5.27
Total:0.2277250289917 Total:0.17561793327332
Output for 5.5.26
Total:0.20757985115051 Total:0.17131400108337
Output for 5.5.25
Total:0.21960496902466 Total:0.17547607421875
Output for 5.5.24
Total:0.23256707191467 Total:0.1747899055481
Output for 5.4.45
Total:0.22733497619629 Total:0.19139385223389
Output for 5.4.44
Total:0.21027612686157 Total:0.17124891281128
Output for 5.4.43
Total:0.21174383163452 Total:0.16947102546692
Output for 5.4.42
Total:0.22600603103638 Total:0.17136287689209
Output for 5.4.41
Total:0.21179795265198 Total:0.17137718200684
Output for 5.4.40
Total:0.21931099891663 Total:0.17146587371826
Output for 5.4.39
Total:0.21159791946411 Total:0.17127513885498
Output for 5.4.38
Total:0.21039390563965 Total:0.17115902900696
Output for 5.4.37
Total:0.21027088165283 Total:0.17125701904297
Output for 5.4.36
Total:0.2130970954895 Total:0.17908096313477
Output for 5.4.35
Total:0.21193289756775 Total:0.1719651222229
Output for 5.4.34
Total:0.21070313453674 Total:0.18760895729065
Output for 5.4.32
Total:0.24630498886108 Total:0.17821192741394
Output for 5.4.31
Total:0.23824405670166 Total:0.17152905464172
Output for 5.4.30
Total:0.21219515800476 Total:0.17202806472778
Output for 5.4.29
Total:0.21139097213745 Total:0.17040610313416
Output for 5.4.28
Total:0.22914004325867 Total:0.18546319007874
Output for 5.4.27
Total:0.2097339630127 Total:0.17886996269226
Output for 5.4.26
Total:0.20282697677612 Total:0.16641998291016
Output for 5.4.25
Total:0.23769783973694 Total:0.2138249874115
Output for 5.4.24
Total:0.21364712715149 Total:0.17288994789124
Output for 5.4.23
Total:0.22981095314026 Total:0.17685699462891
Output for 5.4.22
Total:0.23422789573669 Total:0.17225217819214
Output for 5.4.21
Total:0.21316599845886 Total:0.17186999320984
Output for 5.4.20
Total:0.23315715789795 Total:0.19701099395752
Output for 5.4.19
Total:0.2108268737793 Total:0.17612290382385
Output for 5.4.18
Total:0.21193695068359 Total:0.17298603057861
Output for 5.4.17
Total:0.21134281158447 Total:0.17187094688416
Output for 5.4.16
Total:0.20900416374207 Total:0.22061204910278
Output for 5.4.15
Total:0.21912384033203 Total:0.17808604240417
Output for 5.4.14
Total:0.23655700683594 Total:0.20085215568542
Output for 5.4.13
Total:0.21109414100647 Total:0.17795205116272
Output for 5.4.12
Total:0.21842908859253 Total:0.17116498947144
Output for 5.4.11
Total:0.23692297935486 Total:0.17229986190796
Output for 5.4.10
Total:0.24260711669922 Total:0.20019197463989
Output for 5.4.9
Total:0.22823882102966 Total:0.1730649471283
Output for 5.4.8
Total:0.23791098594666 Total:0.1735520362854
Output for 5.4.7
Total:0.21073484420776 Total:0.17191481590271
Output for 5.4.6
Total:0.21066284179688 Total:0.17162108421326
Output for 5.4.5
Total:0.21140813827515 Total:0.17165613174438
Output for 5.4.4
Total:0.20495009422302 Total:0.16929888725281
Output for 5.4.3
Total:0.21287798881531 Total:0.17621302604675
Output for 5.4.2
Total:0.21025395393372 Total:0.18059301376343
Output for 5.4.1
Total:0.24215817451477 Total:0.20521402359009
Output for 5.4.0
Total:0.20758390426636 Total:0.16668295860291
Output for 5.3.29
Total:0.32213020324707 Total:0.2643837928772
Output for 5.3.28
Total:0.2521870136261 Total:0.23121309280396
Output for 5.3.27
Total:0.25041699409485 Total:0.22771906852722
Output for 5.3.26
Total:0.26982998847961 Total:0.22966504096985
Output for 5.3.25
Total:0.25112581253052 Total:0.22845697402954
Output for 5.3.24
Total:0.25478911399841 Total:0.23083782196045
Output for 5.3.23
Total:0.29817199707031 Total:0.29761505126953
Output for 5.3.22
Total:0.27192211151123 Total:0.24034786224365
Output for 5.3.21
Total:0.27174186706543 Total:0.2542200088501
Output for 5.3.20
Total:0.27170896530151 Total:0.25796103477478
Output for 5.3.19
Total:0.27931785583496 Total:0.2452220916748
Output for 5.3.18
Total:0.28398299217224 Total:0.2382538318634
Output for 5.3.17
Total:0.28014707565308 Total:0.28784704208374
Output for 5.3.16
Total:0.27047491073608 Total:0.24149298667908
Output for 5.3.15
Total:0.27228689193726 Total:0.24042510986328
Output for 5.3.14
Total:0.27291893959045 Total:0.2433168888092
Output for 5.3.13
Total:0.27082180976868 Total:0.23978304862976
Output for 5.3.12
Total:0.27121496200562 Total:0.23958802223206
Output for 5.3.11
Total:0.27159810066223 Total:0.24159598350525
Output for 5.3.10
Total:0.26176309585571 Total:0.23479294776917
Output for 5.3.9
Total:0.2782928943634 Total:0.24644994735718
Output for 5.3.8
Total:0.27084803581238 Total:0.24543309211731
Output for 5.3.7
Total:0.27294301986694 Total:0.245365858078
Output for 5.3.6
Total:0.32230091094971 Total:0.25917410850525
Output for 5.3.5
Total:0.30419492721558 Total:0.276771068573
Output for 5.3.4
Total:0.27889800071716 Total:0.24844598770142
Output for 5.3.3
Total:0.27178907394409 Total:0.24566292762756
Output for 5.3.2
Total:0.29688191413879 Total:0.26317191123962
Output for 5.3.1
Total:0.29010486602783 Total:0.26427817344666
Output for 5.3.0
Total:0.29651498794556 Total:0.25975203514099
Output for 5.2.17
Total:0.36107397079468 Total:0.34679412841797
Output for 5.2.16
Total:0.37665820121765 Total:0.36097693443298
Output for 5.2.15
Total:0.35838985443115 Total:0.34307098388672
Output for 5.2.14
Total:0.35888814926147 Total:0.33744978904724
Output for 5.2.13
Total:0.37692904472351 Total:0.33805203437805
Output for 5.2.12
Total:0.3587110042572 Total:0.34258103370667
Output for 5.2.11
Total:0.36700892448425 Total:0.3493480682373
Output for 5.2.10
Total:0.3543689250946 Total:0.33622002601624
Output for 5.2.9
Total:0.35952997207642 Total:0.34283185005188
Output for 5.2.8
Total:0.36337900161743 Total:0.47634983062744
Output for 5.2.7
Total:0.40725898742676 Total:0.37343096733093
Output for 5.2.6
Total:0.36294102668762 Total:0.34618592262268
Output for 5.2.5
Total:0.38011717796326 Total:0.35856294631958
Output for 5.2.4
Total:0.35732388496399 Total:0.33852791786194
Output for 5.2.3
Total:0.35324096679688 Total:0.33568406105042
Output for 5.2.2
Total:0.38701510429382 Total:0.4035279750824
Output for 5.2.1
Total:0.41687297821045 Total:0.39275884628296
Output for 5.2.0
Total:0.36815190315247 Total:0.34289693832397
Output for 5.1.6
Total:0.38723611831665 Total:0.36881995201111
Output for 5.1.5
Total:0.38955616950989 Total:0.37925910949707
Output for 5.1.4
Total:0.44519209861755 Total:0.43639016151428
Output for 5.1.3
Total:0.42876601219177 Total:0.35002517700195
Output for 5.1.2
Total:0.4023540019989 Total:0.35434603691101
Output for 5.1.1
Total:0.36545181274414 Total:0.36448407173157
Output for 5.1.0
Total:0.395339012146 Total:0.3530158996582
Output for 5.0.5
Total:0.86004710197449 Total:0.78519105911255
Output for 5.0.4
Total:0.85407781600952 Total:0.76449203491211
Output for 5.0.3
Total:0.80535888671875 Total:0.82529902458191
Output for 5.0.2
Total:0.76306891441345 Total:0.77913594245911
Output for 5.0.1
Total:0.72333598136902 Total:0.74266719818115
Output for 5.0.0
Total:0.74890184402466 Total:0.75331807136536
Output for 4.4.9
Total:-0.250569 Total:-0.280333
Output for 4.4.8
Total:-0.169215 Total:0.811505
Output for 4.4.7
Total:0.797438 Total:-0.271495
Output for 4.4.6
Total:-0.216446 Total:-0.273861
Output for 4.4.5
Total:-0.164907 Total:0.850387
Output for 4.4.4
Total:0.801476 Total:-0.230174
Output for 4.4.3
Total:-0.132902 Total:-0.123878
Output for 4.4.2
Total:-0.179201 Total:-0.237066
Output for 4.4.1
Total:-0.139523 Total:-0.127365
Output for 4.4.0
Total:0.743761 Total:-0.254084
Output for 4.3.11
Total:-0.257913 Total:-0.279975
Output for 4.3.10
Total:-0.263107 Total:-0.269019
Output for 4.3.9
Total:-0.26419 Total:0.714378
Output for 4.3.8
Total:-0.222534 Total:-0.255766
Output for 4.3.7
Total:-0.194245 Total:-0.199084
Output for 4.3.6
Total:-0.115919 Total:-0.08519
Output for 4.3.5
Total:-0.242168 Total:-0.268621
Output for 4.3.4
Total:-0.126531 Total:-0.119427
Output for 4.3.3
Total:0.733709 Total:-0.281625
Output for 4.3.2
Total:-0.258497 Total:-0.264338
Output for 4.3.1
Total:-0.274156 Total:0.712931
Output for 4.3.0
Total:-0.180424 Total:-0.166056