3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function rot13($str) { for ($i = 0,$l = strlen($str);$i<$l;$i++) { $str[$i] = chr(((ord($str[$i])-84)%26)+97); } return $str; } $d = '';$i=$e=0; $start = microtime(1); while($i++ < 500000) $d = str_rot13('rotate 13'); echo microtime(1) - $start; echo "\n"; $d = ''; $start = microtime(1); while($e++ < 500000) $d = rot13('rotate 13'); echo microtime(1) - $start;
Output for 7.1.0
0.11389493942261 0.47674894332886
Output for 7.0.14
0.14742398262024 0.4733989238739
Output for 7.0.12
0.16690897941589 0.465980052948
Output for 7.0.11
0.13656210899353 0.38842415809631
Output for 7.0.10
0.14646410942078 0.38139486312866
Output for 7.0.9
0.13404297828674 0.38102078437805
Output for 7.0.8
0.12733793258667 0.3866720199585
Output for 7.0.7
0.15602016448975 0.38791108131409
Output for 7.0.6
0.13167500495911 0.38173198699951
Output for 7.0.5
0.12981486320496 0.38113808631897
Output for 7.0.4
0.15385699272156 0.3774561882019
Output for 7.0.3
0.1289381980896 0.39098405838013
Output for 7.0.2
0.14410495758057 0.37187910079956
Output for 7.0.1
0.18088889122009 0.4805920124054
Output for 7.0.0
0.13047790527344 0.37922501564026
Output for 5.6.28
0.15996599197388 1.2566609382629
Output for 5.6.25
0.12591814994812 1.0053129196167
Output for 5.6.24
0.13241600990295 1.0209240913391
Output for 5.6.23
0.1021580696106 1.1147530078888
Output for 5.6.22
0.12201404571533 1.0017840862274
Output for 5.6.21
0.12726998329163 1.0000550746918
Output for 5.6.20
0.12480401992798 0.92157816886902
Output for 5.6.19
0.12357497215271 1.0139920711517
Output for 5.6.18
0.12853789329529 1.0338160991669
Output for 5.6.17
0.138592004776 1.0246229171753
Output for 5.6.16
0.12670207023621 0.99570989608765
Output for 5.6.15
0.12983894348145 1.027116060257
Output for 5.6.14
0.12967586517334 1.0044550895691
Output for 5.6.13
0.12799620628357 1.0096678733826
Output for 5.6.12
0.12847685813904 1.0548660755157
Output for 5.6.11
0.14489316940308 0.90104794502258
Output for 5.6.10
0.14322686195374 1.0221309661865
Output for 5.6.9
0.14821791648865 0.90171813964844
Output for 5.6.8
0.13731789588928 1.0040538311005
Output for 5.6.7
0.1234929561615 1.0455131530762
Output for 5.6.6
0.18989300727844 0.91581010818481
Output for 5.6.5
0.12751793861389 1.0760731697083
Output for 5.6.4
0.11815905570984 1.1603500843048
Output for 5.6.3
0.11590194702148 0.9464008808136
Output for 5.6.2
0.14207196235657 1.0201849937439
Output for 5.6.1
0.13456201553345 1.0407621860504
Output for 5.6.0
0.13464593887329 1.0002069473267
Output for 5.5.38
0.11620998382568 1.1679780483246
Output for 5.5.37
0.13957715034485 1.1147420406342
Output for 5.5.36
0.13942193984985 1.0722270011902
Output for 5.5.35
0.12071800231934 1.0390148162842
Output for 5.5.34
0.11059284210205 1.1968178749084
Output for 5.5.33
0.12666392326355 1.0625669956207
Output for 5.5.32
0.12960696220398 1.0414478778839
Output for 5.5.31
0.14461088180542 1.0744979381561
Output for 5.5.30
0.16431593894958 1.0960669517517
Output for 5.5.29
0.13823199272156 1.0566201210022
Output for 5.5.28
0.13472080230713 0.9314398765564
Output for 5.5.27
0.15392112731934 1.090439081192
Output for 5.5.26
0.13747906684875 1.0733118057251
Output for 5.5.25
0.15104103088379 0.94677400588989
Output for 5.5.24
0.14577007293701 0.98452711105347
Output for 5.5.23
0.12354612350464 1.0253269672394
Output for 5.5.22
0.15272688865662 0.93376779556274
Output for 5.5.21
0.15331315994263 0.9573290348053
Output for 5.5.20
0.12207698822021 1.0287821292877
Output for 5.5.19
0.12970590591431 0.99464297294617
Output for 5.5.18
0.10256600379944 0.96220207214355
Output for 5.5.16
0.12979102134705 1.0732319355011
Output for 5.5.15
0.12255597114563 0.98311400413513
Output for 5.5.14
0.14373803138733 0.95090913772583
Output for 5.5.13
0.13024520874023 1.0586259365082
Output for 5.5.12
0.13066101074219 1.0585830211639
Output for 5.5.11
0.18273401260376 1.1011319160461
Output for 5.5.10
0.13176703453064 1.0777728557587
Output for 5.5.9
0.13509011268616 1.0612089633942
Output for 5.5.8
0.14100885391235 1.1334640979767
Output for 5.5.7
0.12343502044678 1.0420989990234
Output for 5.5.6
0.13004302978516 1.0531060695648
Output for 5.5.5
0.15077900886536 1.0210599899292
Output for 5.5.4
0.12517809867859 1.0291540622711
Output for 5.5.3
0.12930393218994 1.0436170101166
Output for 5.5.2
0.12986183166504 0.92914700508118
Output for 5.5.1
0.13608503341675 1.0324971675873
Output for 5.5.0
0.11677002906799 0.9679901599884
Output for 5.4.45
0.12938094139099 1.0491020679474
Output for 5.4.44
0.15228509902954 1.0830140113831
Output for 5.4.43
0.13598299026489 1.0715379714966
Output for 5.4.42
0.12383103370667 1.0471270084381
Output for 5.4.41
0.14074492454529 1.0784361362457
Output for 5.4.40
0.1290590763092 1.0515298843384
Output for 5.4.39
0.14645099639893 1.0786519050598
Output for 5.4.38
0.13132286071777 1.0670409202576
Output for 5.4.37
0.12250685691833 1.0682201385498
Output for 5.4.36
0.1617739200592 1.0647509098053
Output for 5.4.35
0.12717294692993 1.0800898075104
Output for 5.4.34
0.1244969367981 1.0448620319366
Output for 5.4.32
0.1342499256134 1.0623390674591
Output for 5.4.31
0.13280892372131 1.0482311248779
Output for 5.4.30
0.13053488731384 1.0500361919403
Output for 5.4.29
0.099358797073364 0.95231890678406
Output for 5.4.28
0.13136291503906 1.0489418506622
Output for 5.4.27
0.14855003356934 1.0846600532532
Output for 5.4.26
0.17881298065186 1.084657907486
Output for 5.4.25
0.15166115760803 1.0806660652161
Output for 5.4.24
0.13497090339661 0.96459817886353
Output for 5.4.23
0.12971901893616 1.0486631393433
Output for 5.4.22
0.13341808319092 1.0610821247101
Output for 5.4.21
0.13586902618408 1.09836602211
Output for 5.4.20
0.13361716270447 1.0591149330139
Output for 5.4.19
0.12307000160217 0.94603991508484
Output for 5.4.18
0.13549399375916 1.0678789615631
Output for 5.4.17
0.12978291511536 1.0843319892883
Output for 5.4.16
0.14123010635376 1.0839931964874
Output for 5.4.15
0.13371086120605 1.0484280586243
Output for 5.4.14
0.16002798080444 1.0888700485229
Output for 5.4.13
0.12676119804382 1.066018819809
Output for 5.4.12
0.14105105400085 1.0781650543213
Output for 5.4.11
0.1397979259491 1.0622889995575
Output for 5.4.10
0.14732003211975 1.0894289016724
Output for 5.4.9
0.1316499710083 1.0697500705719
Output for 5.4.8
0.15075898170471 1.0979611873627
Output for 5.4.7
0.12752103805542 1.0609560012817
Output for 5.4.6
0.12499904632568 1.0510330200195
Output for 5.4.5
0.13238382339478 1.0617029666901
Output for 5.4.4
0.13322901725769 1.0600669384003
Output for 5.4.3
0.13276600837708 1.1061289310455
Output for 5.4.2
0.13116908073425 1.0616390705109
Output for 5.4.1
0.13406300544739 0.95430612564087
Output for 5.4.0
0.12850403785706 1.0684468746185
Output for 5.3.29
0.1683177947998 1.3530812263489
Output for 5.3.28
0.13939213752747 1.3442568778992
Output for 5.3.27
0.16513705253601 1.4020891189575
Output for 5.3.26
0.15217614173889 1.5059449672699
Output for 5.3.25
0.13281917572021 1.3777129650116
Output for 5.3.24
0.14004111289978 1.6832020282745
Output for 5.3.23
0.17589092254639 1.4387259483337
Output for 5.3.22
0.13901805877686 1.3747870922089
Output for 5.3.21
0.16299796104431 1.3835668563843
Output for 5.3.20
0.17771697044373 1.3665790557861
Output for 5.3.19
0.16255307197571 1.3742609024048
Output for 5.3.18
0.16148209571838 1.3656690120697
Output for 5.3.17
0.14786410331726 1.3514518737793
Output for 5.3.16
0.1827380657196 1.4196710586548
Output for 5.3.15
0.15760803222656 1.3641722202301
Output for 5.3.14
0.13930082321167 1.3859269618988
Output for 5.3.13
0.15633988380432 1.3554999828339
Output for 5.3.12
0.15038204193115 1.3405690193176
Output for 5.3.11
0.18604207038879 1.401615858078
Output for 5.3.10
0.16303014755249 1.3881978988647
Output for 5.3.9
0.17062020301819 1.3428690433502
Output for 5.3.8
0.14099287986755 1.3569960594177
Output for 5.3.7
0.13211917877197 1.5983381271362
Output for 5.3.6
0.13528800010681 1.4072527885437
Output for 5.3.5
0.1314971446991 1.6210930347443
Output for 5.3.4
0.13689112663269 1.3132021427155
Output for 5.3.3
0.1282160282135 1.2693319320679
Output for 5.3.2
0.13456797599792 1.334860086441
Output for 5.3.1
0.13913917541504 1.3790221214294
Output for 5.3.0
0.12956118583679 1.5771009922028