3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = 'String_With_Underscores'; $start = microtime(true); for ($i = 0; $i < 100000; $i++) { $result = implode('', array_map('ucfirst', explode('_', strtolower($test)))); } echo 'Time taken: ' . (microtime(true) - $start) . 's';
Output for 7.2.0
Time taken: 0.069914102554321s
Output for 7.1.7
Time taken: 0.0782470703125s
Output for 7.1.6
Time taken: 0.050384998321533s
Output for 7.1.5
Time taken: 0.093029022216797s
Output for 7.1.0
Time taken: -0.062654972076416s
Output for 7.0.20
Time taken: 0.080482006072998s
Output for 7.0.14
Time taken: 0.075559854507446s
Output for 7.0.6
Time taken: 0.057485103607178s
Output for 7.0.5
Time taken: 0.066171169281006s
Output for 7.0.4
Time taken: 0.062224864959717s
Output for 7.0.3
Time taken: 0.051589965820312s
Output for 7.0.2
Time taken: 0.052329063415527s
Output for 7.0.1
Time taken: 0.063391923904419s
Output for 7.0.0
Time taken: 0.049358129501343s
Output for 5.6.28
Time taken: 0.1911289691925s
Output for 5.6.21
Time taken: 0.17437291145325s
Output for 5.6.20
Time taken: 0.15137696266174s
Output for 5.6.19
Time taken: 0.18810701370239s
Output for 5.6.18
Time taken: 0.13935112953186s
Output for 5.6.17
Time taken: 0.16810512542725s
Output for 5.6.16
Time taken: 0.16266298294067s
Output for 5.6.15
Time taken: 0.16361689567566s
Output for 5.6.14
Time taken: 0.17925500869751s
Output for 5.6.13
Time taken: 0.17722010612488s
Output for 5.6.12
Time taken: 0.17365503311157s
Output for 5.6.11
Time taken: 0.17479109764099s
Output for 5.6.10
Time taken: 0.17091012001038s
Output for 5.6.9
Time taken: 0.16176819801331s
Output for 5.6.8
Time taken: 0.19461011886597s
Output for 5.6.7
Time taken: 0.1241660118103s
Output for 5.5.35
Time taken: 0.17701315879822s
Output for 5.5.34
Time taken: 0.15265393257141s
Output for 5.5.33
Time taken: 0.18440198898315s
Output for 5.5.32
Time taken: 0.1711277961731s
Output for 5.5.31
Time taken: 0.1709520816803s
Output for 5.5.30
Time taken: 0.19895005226135s
Output for 5.5.29
Time taken: 0.15940022468567s
Output for 5.5.28
Time taken: 0.1643340587616s
Output for 5.5.27
Time taken: 0.15492010116577s
Output for 5.5.26
Time taken: 0.15994215011597s
Output for 5.5.25
Time taken: 0.17422080039978s
Output for 5.5.24
Time taken: 0.1758759021759s
Output for 5.4.45
Time taken: 0.28098201751709s
Output for 5.4.44
Time taken: 0.31453108787537s
Output for 5.4.43
Time taken: 0.82971906661987s
Output for 5.4.42
Time taken: 0.51978015899658s
Output for 5.4.41
Time taken: 0.54897499084473s
Output for 5.4.40
Time taken: 0.22603178024292s
Output for 5.4.39
Time taken: 0.23180794715881s
Output for 5.4.38
Time taken: 0.22390699386597s
Output for 5.4.37
Time taken: 0.23644804954529s
Output for 5.4.36
Time taken: 0.24524617195129s
Output for 5.4.35
Time taken: 0.22071218490601s
Output for 5.4.34
Time taken: 0.2321879863739s
Output for 5.4.32
Time taken: 0.17562294006348s
Output for 5.4.31
Time taken: 0.17446899414062s
Output for 5.4.30
Time taken: 0.1690149307251s
Output for 5.4.29
Time taken: 0.1711859703064s
Output for 5.4.28
Time taken: 0.19143199920654s
Output for 5.4.27
Time taken: 0.23931884765625s
Output for 5.4.26
Time taken: 0.37964701652527s
Output for 5.4.25
Time taken: 0.22898006439209s
Output for 5.4.24
Time taken: 0.40079212188721s
Output for 5.4.23
Time taken: 0.30178809165955s
Output for 5.4.22
Time taken: 0.27840399742126s
Output for 5.4.21
Time taken: 0.34345507621765s
Output for 5.4.20
Time taken: 0.34884905815125s
Output for 5.4.19
Time taken: 0.30196809768677s
Output for 5.4.18
Time taken: 0.24230694770813s
Output for 5.4.17
Time taken: 0.32603406906128s
Output for 5.4.16
Time taken: 0.3079080581665s
Output for 5.4.15
Time taken: 0.33339905738831s
Output for 5.4.14
Time taken: 0.36068487167358s
Output for 5.4.13
Time taken: 0.26618313789368s
Output for 5.4.12
Time taken: 0.2452712059021s
Output for 5.4.11
Time taken: 0.2464120388031s
Output for 5.4.10
Time taken: 0.25105404853821s
Output for 5.4.9
Time taken: 0.39124393463135s
Output for 5.4.8
Time taken: 0.22566103935242s
Output for 5.4.7
Time taken: 0.26718091964722s
Output for 5.4.6
Time taken: 0.33536696434021s
Output for 5.4.5
Time taken: 0.45879197120667s
Output for 5.4.4
Time taken: 0.24371099472046s
Output for 5.4.3
Time taken: 0.26762890815735s
Output for 5.4.2
Time taken: 0.38636183738708s
Output for 5.4.1
Time taken: 0.42978310585022s
Output for 5.4.0
Time taken: 0.32182097434998s
Output for 5.3.29
Time taken: 0.17233300209045s
Output for 5.3.28
Time taken: 0.40908789634705s
Output for 5.3.27
Time taken: 0.44471120834351s
Output for 5.3.26
Time taken: 0.33081793785095s
Output for 5.3.25
Time taken: 0.38847398757935s
Output for 5.3.24
Time taken: 0.25465202331543s
Output for 5.3.23
Time taken: 0.34225416183472s
Output for 5.3.22
Time taken: 0.4315128326416s
Output for 5.3.21
Time taken: 0.45960807800293s
Output for 5.3.20
Time taken: 0.29826498031616s
Output for 5.3.19
Time taken: 0.25362515449524s
Output for 5.3.18
Time taken: 0.33909821510315s
Output for 5.3.17
Time taken: 0.4313337802887s
Output for 5.3.16
Time taken: 0.34411716461182s
Output for 5.3.15
Time taken: 0.32301902770996s
Output for 5.3.14
Time taken: 0.37697601318359s
Output for 5.3.13
Time taken: 0.5679669380188s
Output for 5.3.12
Time taken: 0.41415810585022s
Output for 5.3.11
Time taken: 0.66442394256592s
Output for 5.3.10
Time taken: 0.3738169670105s
Output for 5.3.9
Time taken: 0.28480195999146s
Output for 5.3.8
Time taken: 0.28682398796082s
Output for 5.3.7
Time taken: 0.25571179389954s
Output for 5.3.6
Time taken: 0.26322197914124s
Output for 5.3.5
Time taken: 0.29172205924988s
Output for 5.3.4
Time taken: 0.43012094497681s
Output for 5.3.3
Time taken: 0.32322788238525s
Output for 5.3.2
Time taken: 0.30336093902588s
Output for 5.3.1
Time taken: 0.26731204986572s
Output for 5.3.0
Time taken: 0.33097887039185s
Output for 5.2.17
Time taken: 0.22774291038513s
Output for 5.2.16
Time taken: 0.30562090873718s
Output for 5.2.15
Time taken: 0.42444705963135s
Output for 5.2.14
Time taken: 0.28429007530212s
Output for 5.2.13
Time taken: 0.21937704086304s
Output for 5.2.12
Time taken: 0.36079692840576s
Output for 5.2.11
Time taken: 0.24284291267395s
Output for 5.2.10
Time taken: 0.23742985725403s
Output for 5.2.9
Time taken: 0.24040699005127s
Output for 5.2.8
Time taken: 0.21755981445312s
Output for 5.2.7
Time taken: 0.23438811302185s
Output for 5.2.6
Time taken: 0.21558904647827s
Output for 5.2.5
Time taken: 0.21603202819824s
Output for 5.2.4
Time taken: 0.25927400588989s
Output for 5.2.3
Time taken: 0.24367189407349s
Output for 5.2.2
Time taken: 0.24416303634644s
Output for 5.2.1
Time taken: 0.21887707710266s
Output for 5.2.0
Time taken: 0.38634777069092s
Output for 5.1.6
Time taken: 0.36728405952454s
Output for 5.1.5
Time taken: 0.21292519569397s
Output for 5.1.4
Time taken: 0.22256278991699s
Output for 5.1.3
Time taken: 0.21845078468323s
Output for 5.1.2
Time taken: 0.21698784828186s
Output for 5.1.1
Time taken: 0.23286104202271s
Output for 5.1.0
Time taken: 0.23340821266174s
Output for 5.0.5
Time taken: 0.24293899536133s
Output for 5.0.4
Time taken: 0.25692987442017s
Output for 5.0.3
Time taken: 0.26384401321411s
Output for 5.0.2
Time taken: 0.29359006881714s
Output for 5.0.1
Time taken: 0.24604988098145s
Output for 5.0.0
Time taken: 0.25595307350159s
Output for 4.4.9
Time taken: 0.330065s
Output for 4.4.8
Time taken: 0.274655s
Output for 4.4.7
Time taken: 0.416774s
Output for 4.4.6
Time taken: 0.434034s
Output for 4.4.5
Time taken: 0.340465s
Output for 4.4.4
Time taken: 0.325149s
Output for 4.4.3
Time taken: 0.290287s
Output for 4.4.2
Time taken: 0.335734s
Output for 4.4.1
Time taken: 0.312769s
Output for 4.4.0
Time taken: 0.281783s
Output for 4.3.11
Time taken: 0.288517s
Output for 4.3.10
Time taken: 0.268743s
Output for 4.3.9
Time taken: 0.306534s
Output for 4.3.8
Time taken: 0.322884s
Output for 4.3.7
Time taken: 0.304727s
Output for 4.3.6
Time taken: 0.261274s
Output for 4.3.5
Time taken: 0.291093s
Output for 4.3.4
Time taken: 0.281922s
Output for 4.3.3
Time taken: 0.40995s
Output for 4.3.2
Time taken: 0.400602s
Output for 4.3.1
Time taken: 0.283388s
Output for 4.3.0
Time taken: -0.484855s