3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var = 'React/Controller/Website/User'; $s = microtime(true); for ($i = 0; $i < 1000; $i++) $result = strtr($var, '/', '_'); printf('%.09f', microtime(true) - $s); var_dump($result); echo "\n"; $s = microtime(true); for ($i = 0; $i < 1000; $i++) $result = str_replace('/', '_', $var); printf('%.09f', microtime(true) - $s); var_dump($result);
Output for 7.1.0
0.000118971string(29) "React_Controller_Website_User" 0.000188828string(29) "React_Controller_Website_User"
Output for 7.0.14
0.000114918string(29) "React_Controller_Website_User" 0.000216007string(29) "React_Controller_Website_User"
Output for 7.0.6
0.000103951string(29) "React_Controller_Website_User" 0.000139952string(29) "React_Controller_Website_User"
Output for 7.0.5
0.000062943string(29) "React_Controller_Website_User" 0.000107050string(29) "React_Controller_Website_User"
Output for 7.0.4
0.000069141string(29) "React_Controller_Website_User" 0.000117064string(29) "React_Controller_Website_User"
Output for 7.0.3
0.000088930string(29) "React_Controller_Website_User" 0.000144005string(29) "React_Controller_Website_User"
Output for 7.0.2
0.000061989string(29) "React_Controller_Website_User" 0.000104904string(29) "React_Controller_Website_User"
Output for 7.0.1
0.000092983string(29) "React_Controller_Website_User" 0.000163078string(29) "React_Controller_Website_User"
Output for 7.0.0
0.000087023string(29) "React_Controller_Website_User" 0.000151873string(29) "React_Controller_Website_User"
Output for hhvm-3.12.0
0.000149965string(29) "React_Controller_Website_User" 0.000174999string(29) "React_Controller_Website_User"
Output for hhvm-3.10.0
0.000168085string(29) "React_Controller_Website_User" 0.000219107string(29) "React_Controller_Website_User"
Output for 5.6.28
0.000580072string(29) "React_Controller_Website_User" 0.000484943string(29) "React_Controller_Website_User"
Output for 5.6.21
0.000453949string(29) "React_Controller_Website_User" 0.000388861string(29) "React_Controller_Website_User"
Output for 5.6.20
0.000274897string(29) "React_Controller_Website_User" 0.000238895string(29) "React_Controller_Website_User"
Output for 5.6.19
0.000289202string(29) "React_Controller_Website_User" 0.000259161string(29) "React_Controller_Website_User"
Output for 5.6.18
0.000399828string(29) "React_Controller_Website_User" 0.000368118string(29) "React_Controller_Website_User"
Output for 5.5.29, 5.6.17
0.000274897string(29) "React_Controller_Website_User" 0.000246048string(29) "React_Controller_Website_User"
Output for 5.6.16
0.000429869string(29) "React_Controller_Website_User" 0.000377893string(29) "React_Controller_Website_User"
Output for 5.6.15
0.000312090string(29) "React_Controller_Website_User" 0.000272989string(29) "React_Controller_Website_User"
Output for 5.6.14
0.000269175string(29) "React_Controller_Website_User" 0.000239134string(29) "React_Controller_Website_User"
Output for 5.6.13
0.000448942string(29) "React_Controller_Website_User" 0.000372171string(29) "React_Controller_Website_User"
Output for 5.6.12
0.000261068string(29) "React_Controller_Website_User" 0.000234842string(29) "React_Controller_Website_User"
Output for 5.6.11
0.000495911string(29) "React_Controller_Website_User" 0.000416994string(29) "React_Controller_Website_User"
Output for 5.6.10
0.000423193string(29) "React_Controller_Website_User" 0.000363111string(29) "React_Controller_Website_User"
Output for 5.6.9
0.000384808string(29) "React_Controller_Website_User" 0.000328064string(29) "React_Controller_Website_User"
Output for 5.6.8
0.000440121string(29) "React_Controller_Website_User" 0.000410080string(29) "React_Controller_Website_User"
Output for 5.5.35
0.000405788string(29) "React_Controller_Website_User" 0.000355959string(29) "React_Controller_Website_User"
Output for 5.5.34
0.000275850string(29) "React_Controller_Website_User" 0.000237942string(29) "React_Controller_Website_User"
Output for 5.5.33
0.000473022string(29) "React_Controller_Website_User" 0.000380039string(29) "React_Controller_Website_User"
Output for 5.5.32
0.000423908string(29) "React_Controller_Website_User" 0.000363111string(29) "React_Controller_Website_User"
Output for 5.5.31
0.000339985string(29) "React_Controller_Website_User" 0.000308037string(29) "React_Controller_Website_User"
Output for 5.5.30
0.000445843string(29) "React_Controller_Website_User" 0.000438213string(29) "React_Controller_Website_User"
Output for 5.5.28
0.000358820string(29) "React_Controller_Website_User" 0.000332117string(29) "React_Controller_Website_User"
Output for 5.5.27
0.000416994string(29) "React_Controller_Website_User" 0.000401020string(29) "React_Controller_Website_User"
Output for 5.5.26
0.000441790string(29) "React_Controller_Website_User" 0.000385046string(29) "React_Controller_Website_User"
Output for 5.5.25
0.000458002string(29) "React_Controller_Website_User" 0.000424147string(29) "React_Controller_Website_User"
Output for 5.5.24
0.000277042string(29) "React_Controller_Website_User" 0.000264168string(29) "React_Controller_Website_User"
Output for 5.4.45
0.000412226string(29) "React_Controller_Website_User" 0.000375032string(29) "React_Controller_Website_User"
Output for 5.4.44
0.000404119string(29) "React_Controller_Website_User" 0.000340939string(29) "React_Controller_Website_User"
Output for 5.4.43
0.000388145string(29) "React_Controller_Website_User" 0.000328064string(29) "React_Controller_Website_User"
Output for 5.4.42
0.000329018string(29) "React_Controller_Website_User" 0.000284910string(29) "React_Controller_Website_User"
Output for 5.4.41
0.000406027string(29) "React_Controller_Website_User" 0.000377893string(29) "React_Controller_Website_User"
Output for 5.4.40
0.000437021string(29) "React_Controller_Website_User" 0.000393867string(29) "React_Controller_Website_User"
Output for 5.4.39
0.000402927string(29) "React_Controller_Website_User" 0.000344992string(29) "React_Controller_Website_User"
Output for 5.4.38
0.000423908string(29) "React_Controller_Website_User" 0.000377178string(29) "React_Controller_Website_User"
Output for 5.4.37
0.000496149string(29) "React_Controller_Website_User" 0.000316858string(29) "React_Controller_Website_User"
Output for 5.4.36
0.000386000string(29) "React_Controller_Website_User" 0.000326157string(29) "React_Controller_Website_User"
Output for 5.4.35
0.000332832string(29) "React_Controller_Website_User" 0.000284910string(29) "React_Controller_Website_User"
Output for 5.4.34
0.000323057string(29) "React_Controller_Website_User" 0.000294924string(29) "React_Controller_Website_User"
Output for 5.4.32
0.000359058string(29) "React_Controller_Website_User" 0.000305891string(29) "React_Controller_Website_User"
Output for 5.4.31
0.000410080string(29) "React_Controller_Website_User" 0.000344038string(29) "React_Controller_Website_User"
Output for 5.4.30
0.000267982string(29) "React_Controller_Website_User" 0.000230074string(29) "React_Controller_Website_User"
Output for 5.4.29
0.000409126string(29) "React_Controller_Website_User" 0.000349998string(29) "React_Controller_Website_User"
Output for 5.4.28
0.000277042string(29) "React_Controller_Website_User" 0.000229836string(29) "React_Controller_Website_User"
Output for 5.4.27
0.000365019string(29) "React_Controller_Website_User" 0.000303984string(29) "React_Controller_Website_User"
Output for 5.4.26
0.000274897string(29) "React_Controller_Website_User" 0.000250101string(29) "React_Controller_Website_User"
Output for 5.4.25
0.000272989string(29) "React_Controller_Website_User" 0.000257015string(29) "React_Controller_Website_User"
Output for 5.4.24
0.000278950string(29) "React_Controller_Website_User" 0.000277996string(29) "React_Controller_Website_User"
Output for 5.4.23
0.000340939string(29) "React_Controller_Website_User" 0.000254869string(29) "React_Controller_Website_User"
Output for 5.4.22
0.000397921string(29) "React_Controller_Website_User" 0.000236034string(29) "React_Controller_Website_User"
Output for 5.4.21
0.000276089string(29) "React_Controller_Website_User" 0.000240088string(29) "React_Controller_Website_User"
Output for 5.4.20
0.000271082string(29) "React_Controller_Website_User" 0.000247002string(29) "React_Controller_Website_User"
Output for 5.4.19
0.000313044string(29) "React_Controller_Website_User" 0.000242949string(29) "React_Controller_Website_User"
Output for 5.4.18
0.000475883string(29) "React_Controller_Website_User" 0.000449896string(29) "React_Controller_Website_User"
Output for 5.4.17
0.000520945string(29) "React_Controller_Website_User" 0.000441074string(29) "React_Controller_Website_User"
Output for 5.4.16
0.000267029string(29) "React_Controller_Website_User" 0.000224113string(29) "React_Controller_Website_User"
Output for 5.4.15
0.000303984string(29) "React_Controller_Website_User" 0.000258923string(29) "React_Controller_Website_User"
Output for 5.4.14
0.000298977string(29) "React_Controller_Website_User" 0.000251055string(29) "React_Controller_Website_User"
Output for 5.4.13
0.000272989string(29) "React_Controller_Website_User" 0.000236988string(29) "React_Controller_Website_User"
Output for 5.4.12
0.000261068string(29) "React_Controller_Website_User" 0.000241041string(29) "React_Controller_Website_User"
Output for 5.4.11
0.000266075string(29) "React_Controller_Website_User" 0.000230074string(29) "React_Controller_Website_User"
Output for 5.4.10
0.000501156string(29) "React_Controller_Website_User" 0.000453949string(29) "React_Controller_Website_User"
Output for 5.4.9
0.000277996string(29) "React_Controller_Website_User" 0.000236034string(29) "React_Controller_Website_User"
Output for 5.4.8
0.000335217string(29) "React_Controller_Website_User" 0.000286102string(29) "React_Controller_Website_User"
Output for 5.4.7
0.000445127string(29) "React_Controller_Website_User" 0.000396013string(29) "React_Controller_Website_User"
Output for 5.4.6
0.000287056string(29) "React_Controller_Website_User" 0.000283957string(29) "React_Controller_Website_User"
Output for 5.4.5
0.000436068string(29) "React_Controller_Website_User" 0.000347853string(29) "React_Controller_Website_User"
Output for 5.4.4
0.000392914string(29) "React_Controller_Website_User" 0.000337839string(29) "React_Controller_Website_User"
Output for 5.4.3
0.000445843string(29) "React_Controller_Website_User" 0.000384092string(29) "React_Controller_Website_User"
Output for 5.4.2
0.000375986string(29) "React_Controller_Website_User" 0.000351906string(29) "React_Controller_Website_User"
Output for 5.4.1
0.000470877string(29) "React_Controller_Website_User" 0.000365019string(29) "React_Controller_Website_User"
Output for 5.4.0
0.000442028string(29) "React_Controller_Website_User" 0.000413895string(29) "React_Controller_Website_User"
Output for 5.3.29
0.000488043string(29) "React_Controller_Website_User" 0.000476122string(29) "React_Controller_Website_User"
Output for 5.3.28
0.000347853string(29) "React_Controller_Website_User" 0.000290155string(29) "React_Controller_Website_User"
Output for 5.3.27
0.000308037string(29) "React_Controller_Website_User" 0.000307083string(29) "React_Controller_Website_User"
Output for 5.3.26
0.000303984string(29) "React_Controller_Website_User" 0.000275135string(29) "React_Controller_Website_User"
Output for 5.3.25
0.000324965string(29) "React_Controller_Website_User" 0.000271082string(29) "React_Controller_Website_User"
Output for 5.3.24
0.000309944string(29) "React_Controller_Website_User" 0.000273943string(29) "React_Controller_Website_User"
Output for 5.3.23
0.000317097string(29) "React_Controller_Website_User" 0.000277996string(29) "React_Controller_Website_User"
Output for 5.3.22
0.000310898string(29) "React_Controller_Website_User" 0.000278950string(29) "React_Controller_Website_User"
Output for 5.3.21
0.000443935string(29) "React_Controller_Website_User" 0.000307083string(29) "React_Controller_Website_User"
Output for 5.3.20
0.000370026string(29) "React_Controller_Website_User" 0.000331879string(29) "React_Controller_Website_User"
Output for 5.3.19
0.000453949string(29) "React_Controller_Website_User" 0.000370026string(29) "React_Controller_Website_User"
Output for 5.3.18
0.000332117string(29) "React_Controller_Website_User" 0.000274897string(29) "React_Controller_Website_User"
Output for 5.3.17
0.000396013string(29) "React_Controller_Website_User" 0.000339985string(29) "React_Controller_Website_User"
Output for 5.3.16
0.000560045string(29) "React_Controller_Website_User" 0.000429153string(29) "React_Controller_Website_User"
Output for 5.3.15
0.000479937string(29) "React_Controller_Website_User" 0.000442028string(29) "React_Controller_Website_User"
Output for 5.3.14
0.000473976string(29) "React_Controller_Website_User" 0.000446081string(29) "React_Controller_Website_User"
Output for 5.3.13
0.000347853string(29) "React_Controller_Website_User" 0.000303984string(29) "React_Controller_Website_User"
Output for 5.3.12
0.000350952string(29) "React_Controller_Website_User" 0.000309944string(29) "React_Controller_Website_User"
Output for 5.3.11
0.000426054string(29) "React_Controller_Website_User" 0.000355959string(29) "React_Controller_Website_User"
Output for 5.3.10
0.000526190string(29) "React_Controller_Website_User" 0.000466824string(29) "React_Controller_Website_User"
Output for 5.3.9
0.000488043string(29) "React_Controller_Website_User" 0.000439167string(29) "React_Controller_Website_User"
Output for 5.3.8
0.000389099string(29) "React_Controller_Website_User" 0.000353098string(29) "React_Controller_Website_User"
Output for 5.3.7
0.000436068string(29) "React_Controller_Website_User" 0.000400066string(29) "React_Controller_Website_User"
Output for 5.3.6
0.000483990string(29) "React_Controller_Website_User" 0.000510931string(29) "React_Controller_Website_User"
Output for 5.3.5
0.000561953string(29) "React_Controller_Website_User" 0.000517130string(29) "React_Controller_Website_User"
Output for 5.3.4
0.000451088string(29) "React_Controller_Website_User" 0.000412941string(29) "React_Controller_Website_User"
Output for 5.3.3
0.000473022string(29) "React_Controller_Website_User" 0.000472069string(29) "React_Controller_Website_User"
Output for 5.3.2
0.000476837string(29) "React_Controller_Website_User" 0.000445843string(29) "React_Controller_Website_User"
Output for 5.3.1
0.000514984string(29) "React_Controller_Website_User" 0.000473022string(29) "React_Controller_Website_User"
Output for 5.3.0
0.000447035string(29) "React_Controller_Website_User" 0.000400066string(29) "React_Controller_Website_User"
Output for 5.2.17
0.000518084string(29) "React_Controller_Website_User" 0.000479937string(29) "React_Controller_Website_User"
Output for 5.2.16
0.000554085string(29) "React_Controller_Website_User" 0.000530005string(29) "React_Controller_Website_User"
Output for 5.2.15
0.000533104string(29) "React_Controller_Website_User" 0.000552893string(29) "React_Controller_Website_User"
Output for 5.2.14
0.000464916string(29) "React_Controller_Website_User" 0.000454187string(29) "React_Controller_Website_User"
Output for 5.2.13
0.000422955string(29) "React_Controller_Website_User" 0.000383139string(29) "React_Controller_Website_User"
Output for 5.2.12
0.000523090string(29) "React_Controller_Website_User" 0.000481844string(29) "React_Controller_Website_User"
Output for 5.2.11
0.000465870string(29) "React_Controller_Website_User" 0.000375032string(29) "React_Controller_Website_User"
Output for 5.2.10
0.000518084string(29) "React_Controller_Website_User" 0.000497103string(29) "React_Controller_Website_User"
Output for 5.2.9
0.000315905string(29) "React_Controller_Website_User" 0.000298023string(29) "React_Controller_Website_User"
Output for 5.2.8
0.000526905string(29) "React_Controller_Website_User" 0.000520945string(29) "React_Controller_Website_User"
Output for 5.2.7
0.000481844string(29) "React_Controller_Website_User" 0.000456095string(29) "React_Controller_Website_User"
Output for 5.2.6
0.001097202string(29) "React_Controller_Website_User" 0.000486851string(29) "React_Controller_Website_User"
Output for 5.2.5
0.000542879string(29) "React_Controller_Website_User" 0.000452042string(29) "React_Controller_Website_User"
Output for 5.2.4
0.000446081string(29) "React_Controller_Website_User" 0.000457048string(29) "React_Controller_Website_User"
Output for 5.2.3
0.000396967string(29) "React_Controller_Website_User" 0.000394106string(29) "React_Controller_Website_User"
Output for 5.2.2
0.000530005string(29) "React_Controller_Website_User" 0.000494957string(29) "React_Controller_Website_User"
Output for 5.2.1
0.000319958string(29) "React_Controller_Website_User" 0.000328064string(29) "React_Controller_Website_User"
Output for 5.2.0
0.000838041string(29) "React_Controller_Website_User" 0.000513077string(29) "React_Controller_Website_User"
Output for 5.1.6
0.000566959string(29) "React_Controller_Website_User" 0.000549078string(29) "React_Controller_Website_User"
Output for 5.1.5
0.000872135string(29) "React_Controller_Website_User" 0.000514030string(29) "React_Controller_Website_User"
Output for 5.1.4
0.000483990string(29) "React_Controller_Website_User" 0.000463009string(29) "React_Controller_Website_User"
Output for 5.1.3
0.000641108string(29) "React_Controller_Website_User" 0.000432014string(29) "React_Controller_Website_User"
Output for 5.1.2
0.000520945string(29) "React_Controller_Website_User" 0.000534058string(29) "React_Controller_Website_User"
Output for 5.1.1
0.000328064string(29) "React_Controller_Website_User" 0.000334978string(29) "React_Controller_Website_User"
Output for 5.1.0
0.000439882string(29) "React_Controller_Website_User" 0.000409126string(29) "React_Controller_Website_User"
Output for 5.0.5
0.000883102string(29) "React_Controller_Website_User" 0.000881910string(29) "React_Controller_Website_User"
Output for 5.0.4
0.000511169string(29) "React_Controller_Website_User" 0.000517130string(29) "React_Controller_Website_User"
Output for 5.0.3
0.000719070string(29) "React_Controller_Website_User" 0.000726938string(29) "React_Controller_Website_User"
Output for 5.0.2
0.000743866string(29) "React_Controller_Website_User" 0.000916958string(29) "React_Controller_Website_User"
Output for 5.0.1
0.000924110string(29) "React_Controller_Website_User" 0.000705004string(29) "React_Controller_Website_User"
Output for 5.0.0
0.000649929string(29) "React_Controller_Website_User" 0.000499010string(29) "React_Controller_Website_User"
Output for 4.4.9
0.000872000string(29) "React_Controller_Website_User" 0.000785000string(29) "React_Controller_Website_User"
Output for 4.4.8
0.000866000string(29) "React_Controller_Website_User" 0.000790000string(29) "React_Controller_Website_User"
Output for 4.4.7
0.000972000string(29) "React_Controller_Website_User" 0.000868000string(29) "React_Controller_Website_User"
Output for 4.4.6
0.000845000string(29) "React_Controller_Website_User" 0.000760000string(29) "React_Controller_Website_User"
Output for 4.4.5
0.000928000string(29) "React_Controller_Website_User" 0.000827000string(29) "React_Controller_Website_User"
Output for 4.4.4
0.000830000string(29) "React_Controller_Website_User" 0.000710000string(29) "React_Controller_Website_User"
Output for 4.4.3
0.000851000string(29) "React_Controller_Website_User" 0.000769000string(29) "React_Controller_Website_User"
Output for 4.4.2
0.000829000string(29) "React_Controller_Website_User" 0.000738000string(29) "React_Controller_Website_User"
Output for 4.4.1
0.000942000string(29) "React_Controller_Website_User" 0.000837000string(29) "React_Controller_Website_User"
Output for 4.4.0
0.000615000string(29) "React_Controller_Website_User" 0.000529000string(29) "React_Controller_Website_User"
Output for 4.3.11
0.000887000string(29) "React_Controller_Website_User" 0.000791000string(29) "React_Controller_Website_User"
Output for 4.3.10
0.000607000string(29) "React_Controller_Website_User" 0.000561000string(29) "React_Controller_Website_User"
Output for 4.3.9
0.000712000string(29) "React_Controller_Website_User" 0.000633000string(29) "React_Controller_Website_User"
Output for 4.3.8
0.000677000string(29) "React_Controller_Website_User" 0.000610000string(29) "React_Controller_Website_User"
Output for 4.3.7
0.000622000string(29) "React_Controller_Website_User" 0.000632000string(29) "React_Controller_Website_User"
Output for 4.3.6
0.000872000string(29) "React_Controller_Website_User" 0.000795000string(29) "React_Controller_Website_User"
Output for 4.3.5
0.000805000string(29) "React_Controller_Website_User" 0.000751000string(29) "React_Controller_Website_User"
Output for 4.3.4
0.000477000string(29) "React_Controller_Website_User" 0.000434000string(29) "React_Controller_Website_User"
Output for 4.3.3
0.000929000string(29) "React_Controller_Website_User" 0.000760000string(29) "React_Controller_Website_User"
Output for 4.3.2
0.000713000string(29) "React_Controller_Website_User" 0.000669000string(29) "React_Controller_Website_User"
Output for 4.3.1
0.000823000string(29) "React_Controller_Website_User" 0.000796000string(29) "React_Controller_Website_User"
Output for 4.3.0
0.000860000string(29) "React_Controller_Website_User" 0.000893000string(29) "React_Controller_Website_User"