3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = microtime(true); for ($i = 0; $i < 1000; $i++) strtr('React/Controller/Website/User', '/', '_'); printf('%.09f', microtime(true) - $s); $s = microtime(true); for ($i = 0; $i < 1000; $i++) str_replace('/', '_', 'React/Controller/Website/User'); printf('%.09f', microtime(true) - $s);
Output for 7.1.0
0.0001180170.000185966
Output for 7.0.14
0.0001308920.000226974
Output for 7.0.12
0.0001320840.000195980
Output for 7.0.6
0.0000889300.000147820
Output for 7.0.5
0.0000629430.000109196
Output for 7.0.4
0.0000920300.000175953
Output for 7.0.3
0.0000591280.000106096
Output for 7.0.2
0.0000588890.000174046
Output for 7.0.1
0.0000939370.000160933
Output for 7.0.0
0.0000720020.000118017
Output for 5.6.28
0.0005850790.000485897
Output for 5.6.21
0.0004448890.000367165
Output for 5.6.20
0.0003731250.000320911
Output for 5.6.19
0.0004069810.000333071
Output for 5.6.18
0.0003139970.000258923
Output for 5.6.17
0.0002920630.000231981
Output for 5.6.16
0.0004460810.000347853
Output for 5.6.15
0.0004129410.000336170
Output for 5.6.14
0.0003499980.000285864
Output for 5.6.13
0.0003359320.000262022
Output for 5.6.12
0.0003769400.000318050
Output for 5.6.11
0.0005929470.000333071
Output for 5.6.10
0.0004501340.000368118
Output for 5.6.9
0.0002820490.000241041
Output for 5.6.8
0.0004310610.000365019
Output for 5.5.35
0.0002341270.000192165
Output for 5.5.34
0.0003960130.000338078
Output for 5.5.33
0.0004401210.000391006
Output for 5.5.32
0.0004148480.000345945
Output for 5.5.31
0.0004041190.000325918
Output for 5.5.30
0.0002799030.000232935
Output for 5.5.29
0.0003190040.000280857
Output for 5.5.28
0.0007741450.000355005
Output for 5.5.27
0.0002789500.000222921
Output for 5.5.26
0.0002748970.000222921
Output for 5.5.25
0.0003890990.000321865
Output for 5.5.24
0.0004630090.000380993
Output for 5.4.45
0.0002760890.000240088
Output for 5.4.44
0.0002818110.000233173
Output for 5.4.43
0.0003080370.000245810
Output for 5.4.42
0.0002789500.000263929
Output for 5.4.41
0.0005171300.000332117
Output for 5.4.40
0.0002949240.000233889
Output for 5.4.39
0.0004520420.000378847
Output for 5.4.38
0.0003190040.000255823
Output for 5.4.37
0.0004918580.000402927
Output for 5.4.36
0.0005600450.000286818
Output for 5.4.35
0.0004858970.000412226
Output for 5.4.34
0.0004019740.000341892
Output for 5.4.32
0.0003318790.000273943
Output for 5.4.31
0.0004868510.000395060
Output for 5.4.30
0.0004639630.000434875
Output for 5.4.29
0.0004770760.000397205
Output for 5.4.28
0.0004270080.000314951
Output for 5.4.27
0.0003540520.000291109
Output for 5.4.26
0.0002958770.000256062
Output for 5.4.25
0.0004880430.000393867
Output for 5.4.24
0.0004279610.000401020
Output for 5.4.23
0.0004420280.000381947
Output for 5.4.22
0.0004701610.000396967
Output for 5.4.21
0.0003428460.000287056
Output for 5.4.20
0.0002951620.000243902
Output for 5.4.19
0.0003099440.000266075
Output for 5.4.18
0.0004639630.000379801
Output for 5.4.17
0.0004961490.000404835
Output for 5.4.16
0.0004889970.000452042
Output for 5.4.15
0.0004830360.000435114
Output for 5.4.14
0.0004858970.000396967
Output for 5.4.13
0.0004420280.000371933
Output for 5.4.12
0.0004801750.000435829
Output for 5.4.11
0.0004389290.000347853
Output for 5.4.10
0.0004839900.000389099
Output for 5.4.9
0.0004959110.000442982
Output for 5.4.8
0.0005788800.000339985
Output for 5.4.7
0.0005040170.000471830
Output for 5.4.6
0.0004961490.000449181
Output for 5.4.5
0.0005199910.000407934
Output for 5.4.4
0.0004980560.000404119
Output for 5.4.3
0.0004780290.000370026
Output for 5.4.2
0.0004751680.000378132
Output for 5.4.1
0.0004589560.000369072
Output for 5.4.0
0.0007557870.000669003
Output for 5.3.29
0.0005409720.000437975
Output for 5.3.28
0.0004398820.000370979
Output for 5.3.27
0.0006918910.000429153
Output for 5.3.26
0.0005381110.000438929
Output for 5.3.25
0.0005381110.000453949
Output for 5.3.24
0.0005311970.000501156
Output for 5.3.23
0.0005018710.000409842
Output for 5.3.22
0.0005359650.000422955
Output for 5.3.21
0.0006380080.000515938
Output for 5.3.20
0.0006051060.000484943
Output for 5.3.19
0.0006160740.000510931
Output for 5.3.18
0.0006179810.000532150
Output for 5.3.17
0.0004298690.000349045
Output for 5.3.16
0.0006291870.000533104
Output for 5.3.15
0.0006039140.000462055
Output for 5.3.14
0.0005390640.000439167
Output for 5.3.13
0.0003809930.000272989
Output for 5.3.12
0.0004980560.000273943
Output for 5.3.11
0.0006310940.000519037
Output for 5.3.10
0.0004959110.000404119
Output for 5.3.9
0.0005309580.000442028
Output for 5.3.8
0.0008761880.000998974
Output for 5.3.7
0.0005841260.000481844
Output for 5.3.6
0.0006070140.000458956
Output for 5.3.5
0.0005478860.000451803
Output for 5.3.4
0.0005970000.000514030
Output for 5.3.3
0.0004210470.000339031
Output for 5.3.2
0.0004689690.000385046
Output for 5.3.1
0.0005629060.000468016
Output for 5.3.0
0.0004279610.000326157
Output for 5.2.17
0.0005278590.000428200
Output for 5.2.16
0.0005290510.000416994
Output for 5.2.15
0.0005059240.000397921
Output for 5.2.14
0.0003430840.000286102
Output for 5.2.13
0.0005948540.000458002
Output for 5.2.12
0.0006101130.000488997
Output for 5.2.11
0.0005099770.000440121
Output for 5.2.10
0.0006091590.000478029
Output for 5.2.9
0.0005640980.000443935
Output for 5.2.8
0.0005879400.000457048
Output for 5.2.7
0.0005841260.000455141
Output for 5.2.6
0.0003788470.000324011
Output for 5.2.5
0.0005660060.000461102
Output for 5.2.4
0.0005500320.000459909
Output for 5.2.3
0.0004758830.000386953
Output for 5.2.2
0.0004260540.000350952
Output for 5.2.1
0.0005729200.000450134
Output for 5.2.0
0.0004799370.000386000
Output for 5.1.6
0.0005660060.000495911
Output for 5.1.5
0.0005581380.000455856
Output for 5.1.4
0.0006198880.000496864
Output for 5.1.3
0.0006148820.000550985
Output for 5.1.2
0.0005609990.000465870
Output for 5.1.1
0.0004119870.000360012
Output for 5.1.0
0.0003230570.000249147
Output for 5.0.5
0.0005137920.000477076
Output for 5.0.4
0.0009419920.000695944
Output for 5.0.3
0.0006079670.000535965
Output for 5.0.2
0.0004041190.000415802
Output for 5.0.1
0.0007789130.000634909
Output for 5.0.0
0.0005970000.000412226
Output for 4.4.9
0.0008170000.000694000
Output for 4.4.8
0.0004040000.000326000
Output for 4.4.7
0.0008170000.000751000
Output for 4.4.6
0.0006250000.000555000
Output for 4.4.5
0.0009260000.000701000
Output for 4.4.4
0.0008110000.000641000
Output for 4.4.3
0.0004950000.000417000
Output for 4.4.2
0.0004060000.000331000
Output for 4.4.1
0.0008640000.000703000
Output for 4.4.0
0.0006200000.000521000
Output for 4.3.11
0.0005330000.000522000
Output for 4.3.10
0.0004200000.000344000
Output for 4.3.9
0.0006900000.000535000
Output for 4.3.8
0.0007470000.000623000
Output for 4.3.7
0.0007690000.000624000
Output for 4.3.6
0.0006040000.000487000
Output for 4.3.5
0.0008280000.000650000
Output for 4.3.4
0.0005160000.000403000
Output for 4.3.3
0.0007320000.000597000
Output for 4.3.2
0.0007980000.000651000
Output for 4.3.1
0.0007370000.000626000
Output for 4.3.0
0.0008820000.000726000