3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = 'String_With_Underscores'; $start = microtime(true); for ($i = 0; $i < 10000; $i++) { $result = implode('', array_map('ucfirst', explode('_', strtolower($test)))); } echo 'Time taken: ' . (microtime(true) - $start) . 's';
Output for 7.1.0
Time taken: 0.0087859630584717s
Output for 7.0.14
Time taken: 0.0084800720214844s
Output for 7.0.10
Time taken: 0.0044949054718018s
Output for 7.0.9
Time taken: 0.0065159797668457s
Output for 7.0.8
Time taken: 0.0062398910522461s
Output for 7.0.7
Time taken: 0.0050849914550781s
Output for 7.0.6
Time taken: 0.0055141448974609s
Output for 7.0.5
Time taken: 0.004857063293457s
Output for 7.0.4
Time taken: 0.0050590038299561s
Output for 7.0.3
Time taken: 0.0046861171722412s
Output for 7.0.2
Time taken: 0.00472092628479s
Output for 7.0.1
Time taken: 0.0062808990478516s
Output for 7.0.0
Time taken: 0.0045499801635742s
Output for 5.6.28
Time taken: 0.024846076965332s
Output for 5.6.25
Time taken: 0.021316051483154s
Output for 5.6.24
Time taken: 0.015647172927856s
Output for 5.6.23
Time taken: 0.020605087280273s
Output for 5.6.22
Time taken: 0.015938997268677s
Output for 5.6.21
Time taken: 0.016011953353882s
Output for 5.6.20
Time taken: 0.015215873718262s
Output for 5.6.19
Time taken: 0.015403985977173s
Output for 5.6.18
Time taken: 0.012860059738159s
Output for 5.6.17
Time taken: 0.013728857040405s
Output for 5.6.16
Time taken: 0.015352964401245s
Output for 5.6.15
Time taken: 0.015316963195801s
Output for 5.6.14
Time taken: 0.015778779983521s
Output for 5.6.13
Time taken: 0.0154709815979s
Output for 5.6.12
Time taken: 0.017112970352173s
Output for 5.6.11
Time taken: 0.016258955001831s
Output for 5.6.10
Time taken: 0.015768051147461s
Output for 5.6.9
Time taken: 0.015645027160645s
Output for 5.6.8
Time taken: 0.015512943267822s
Output for 5.6.7
Time taken: 0.01550817489624s
Output for 5.6.6
Time taken: 0.024024963378906s
Output for 5.6.5
Time taken: 0.023648023605347s
Output for 5.6.4
Time taken: 0.022726058959961s
Output for 5.6.3
Time taken: 0.018830060958862s
Output for 5.6.2
Time taken: 0.01810884475708s
Output for 5.6.1
Time taken: 0.019685029983521s
Output for 5.6.0
Time taken: 0.02400803565979s
Output for 5.5.38
Time taken: 0.021549940109253s
Output for 5.5.37
Time taken: 0.018428802490234s
Output for 5.5.36
Time taken: 0.02261209487915s
Output for 5.5.35
Time taken: 0.018326997756958s
Output for 5.5.34
Time taken: 0.019819021224976s
Output for 5.5.33
Time taken: 0.012989044189453s
Output for 5.5.32
Time taken: 0.022255897521973s
Output for 5.5.31
Time taken: 0.01314902305603s
Output for 5.5.30
Time taken: 0.015708923339844s
Output for 5.5.29
Time taken: 0.016319036483765s
Output for 5.5.28
Time taken: 0.017557144165039s
Output for 5.5.27
Time taken: 0.01631498336792s
Output for 5.5.26
Time taken: 0.01553201675415s
Output for 5.5.25
Time taken: 0.015460968017578s
Output for 5.5.24
Time taken: 0.015669107437134s
Output for 5.5.23
Time taken: 0.018424987792969s
Output for 5.5.22
Time taken: 0.015769958496094s
Output for 5.5.21
Time taken: 0.025182008743286s
Output for 5.5.20
Time taken: 0.02587103843689s
Output for 5.5.19
Time taken: 0.020565986633301s
Output for 5.5.18
Time taken: 0.025307893753052s
Output for 5.5.16
Time taken: 0.015698909759521s
Output for 5.5.15
Time taken: 0.026592016220093s
Output for 5.5.14
Time taken: 0.015775918960571s
Output for 5.5.13
Time taken: 0.025141000747681s
Output for 5.5.12
Time taken: 0.02503490447998s
Output for 5.5.11
Time taken: 0.022377967834473s
Output for 5.5.10
Time taken: 0.020514011383057s
Output for 5.5.9
Time taken: 0.021795988082886s
Output for 5.5.8
Time taken: 0.01862096786499s
Output for 5.5.7
Time taken: 0.025418043136597s
Output for 5.5.6
Time taken: 0.025474071502686s
Output for 5.5.5
Time taken: 0.01853609085083s
Output for 5.5.4
Time taken: 0.020344972610474s
Output for 5.5.3
Time taken: 0.02164888381958s
Output for 5.5.2
Time taken: 0.018047094345093s
Output for 5.5.1
Time taken: 0.018680095672607s
Output for 5.5.0
Time taken: 0.022938013076782s
Output for 5.4.45
Time taken: 0.017474889755249s
Output for 5.4.44
Time taken: 0.021005868911743s
Output for 5.4.43
Time taken: 0.019811868667603s
Output for 5.4.42
Time taken: 0.016358137130737s
Output for 5.4.41
Time taken: 0.017498016357422s
Output for 5.4.40
Time taken: 0.01639199256897s
Output for 5.4.39
Time taken: 0.01600193977356s
Output for 5.4.38
Time taken: 0.026071786880493s
Output for 5.4.37
Time taken: 0.016911029815674s
Output for 5.4.36
Time taken: 0.022614002227783s
Output for 5.4.35
Time taken: 0.02669095993042s
Output for 5.4.34
Time taken: 0.024959087371826s
Output for 5.4.32
Time taken: 0.021281957626343s
Output for 5.4.31
Time taken: 0.024661064147949s
Output for 5.4.30
Time taken: 0.02330207824707s
Output for 5.4.29
Time taken: 0.025009870529175s
Output for 5.4.28
Time taken: 0.021202087402344s
Output for 5.4.27
Time taken: 0.022658109664917s
Output for 5.4.26
Time taken: 0.025273084640503s
Output for 5.4.25
Time taken: 0.022697925567627s
Output for 5.4.24
Time taken: 0.022925138473511s
Output for 5.4.23
Time taken: 0.021095037460327s
Output for 5.4.22
Time taken: 0.026425123214722s
Output for 5.4.21
Time taken: 0.018218994140625s
Output for 5.4.20
Time taken: 0.021996974945068s
Output for 5.4.19
Time taken: 0.025615215301514s
Output for 5.4.18
Time taken: 0.016039133071899s
Output for 5.4.17
Time taken: 0.022832870483398s
Output for 5.4.16
Time taken: 0.016642093658447s
Output for 5.4.15
Time taken: 0.022009134292603s
Output for 5.4.14
Time taken: 0.026140928268433s
Output for 5.4.13
Time taken: 0.024338960647583s
Output for 5.4.12
Time taken: 0.024034023284912s
Output for 5.4.11
Time taken: 0.027184963226318s
Output for 5.4.10
Time taken: 0.025542020797729s
Output for 5.4.9
Time taken: 0.026569843292236s
Output for 5.4.8
Time taken: 0.024126052856445s
Output for 5.4.7
Time taken: 0.024638891220093s
Output for 5.4.6
Time taken: 0.019138813018799s
Output for 5.4.5
Time taken: 0.028073072433472s
Output for 5.4.4
Time taken: 0.022815942764282s
Output for 5.4.3
Time taken: 0.024019002914429s
Output for 5.4.2
Time taken: 0.022263050079346s
Output for 5.4.1
Time taken: 0.015817880630493s
Output for 5.4.0
Time taken: 0.019231081008911s
Output for 5.3.29
Time taken: 0.023597002029419s
Output for 5.3.28
Time taken: 0.021120071411133s
Output for 5.3.27
Time taken: 0.027179956436157s
Output for 5.3.26
Time taken: 0.021053075790405s
Output for 5.3.25
Time taken: 0.024862051010132s
Output for 5.3.24
Time taken: 0.023873090744019s
Output for 5.3.23
Time taken: 0.022954940795898s
Output for 5.3.22
Time taken: 0.025033950805664s
Output for 5.3.21
Time taken: 0.023994922637939s
Output for 5.3.20
Time taken: 0.019401073455811s
Output for 5.3.19
Time taken: 0.022926807403564s
Output for 5.3.18
Time taken: 0.025749921798706s
Output for 5.3.17
Time taken: 0.024393081665039s
Output for 5.3.16
Time taken: 0.024540185928345s
Output for 5.3.15
Time taken: 0.027049779891968s
Output for 5.3.14
Time taken: 0.025782108306885s
Output for 5.3.13
Time taken: 0.017194986343384s
Output for 5.3.12
Time taken: 0.023620128631592s
Output for 5.3.11
Time taken: 0.020860910415649s
Output for 5.3.10
Time taken: 0.02129602432251s
Output for 5.3.9
Time taken: 0.022033929824829s
Output for 5.3.8
Time taken: 0.022881984710693s
Output for 5.3.7
Time taken: 0.021018028259277s
Output for 5.3.6
Time taken: 0.023346900939941s
Output for 5.3.5
Time taken: 0.016629934310913s
Output for 5.3.4
Time taken: 0.027785062789917s
Output for 5.3.3
Time taken: 0.027320861816406s
Output for 5.3.2
Time taken: 0.02391505241394s
Output for 5.3.1
Time taken: 0.023619174957275s
Output for 5.3.0
Time taken: 0.019390106201172s
Output for 5.2.17
Time taken: 0.018844842910767s
Output for 5.2.16
Time taken: 0.019500970840454s
Output for 5.2.15
Time taken: 0.019781827926636s
Output for 5.2.14
Time taken: 0.023104906082153s
Output for 5.2.13
Time taken: 0.023036956787109s
Output for 5.2.12
Time taken: 0.017376899719238s
Output for 5.2.11
Time taken: 0.020401000976562s
Output for 5.2.10
Time taken: 0.01835298538208s
Output for 5.2.9
Time taken: 0.023110151290894s
Output for 5.2.8
Time taken: 0.020467042922974s
Output for 5.2.7
Time taken: 0.019094944000244s
Output for 5.2.6
Time taken: 0.015269041061401s
Output for 5.2.5
Time taken: 0.025501012802124s
Output for 5.2.4
Time taken: 0.023483037948608s
Output for 5.2.3
Time taken: 0.024420976638794s
Output for 5.2.2
Time taken: 0.024684906005859s
Output for 5.2.1
Time taken: 0.015923023223877s
Output for 5.2.0
Time taken: 0.019921779632568s
Output for 5.1.6
Time taken: 0.021512985229492s
Output for 5.1.5
Time taken: 0.024435043334961s
Output for 5.1.4
Time taken: 0.019104957580566s
Output for 5.1.3
Time taken: 0.022733926773071s
Output for 5.1.2
Time taken: 0.019029140472412s
Output for 5.1.1
Time taken: 0.020656108856201s
Output for 5.1.0
Time taken: 0.026015043258667s
Output for 5.0.5
Time taken: 0.021689176559448s
Output for 5.0.4
Time taken: 0.021068096160889s
Output for 5.0.3
Time taken: 0.025851964950562s
Output for 5.0.2
Time taken: 0.02761697769165s
Output for 5.0.1
Time taken: 0.022488117218018s
Output for 5.0.0
Time taken: 0.02672004699707s
Output for 4.4.9
Time taken: 0.033447s
Output for 4.4.8
Time taken: 0.031311s
Output for 4.4.7
Time taken: 0.032999s
Output for 4.4.6
Time taken: 0.033534s
Output for 4.4.5
Time taken: 0.023007s
Output for 4.4.4
Time taken: 0.027574s
Output for 4.4.3
Time taken: 0.032475s
Output for 4.4.2
Time taken: 0.018349s
Output for 4.4.1
Time taken: 0.027139s
Output for 4.4.0
Time taken: 0.027337s
Output for 4.3.11
Time taken: 0.031776s
Output for 4.3.10
Time taken: 0.02234s
Output for 4.3.9
Time taken: 0.031956s
Output for 4.3.8
Time taken: 0.028742s
Output for 4.3.7
Time taken: 0.032228s
Output for 4.3.6
Time taken: 0.025469s
Output for 4.3.5
Time taken: 0.017252s
Output for 4.3.4
Time taken: 0.026069s
Output for 4.3.3
Time taken: 0.033327s
Output for 4.3.2
Time taken: 0.031128s
Output for 4.3.1
Time taken: 0.031818s
Output for 4.3.0
Time taken: 0.032066s