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); echo "<br>"; $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.000121832<br>0.000195980
Output for 7.0.14
0.000130892<br>0.000230074
Output for 7.0.6
0.000077963<br>0.000141144
Output for 7.0.5
0.000069857<br>0.000129223
Output for 7.0.4
0.000094891<br>0.000161886
Output for 7.0.3
0.000088930<br>0.000113964
Output for 7.0.2
0.000072956<br>0.000121832
Output for 7.0.1
0.000096083<br>0.000150919
Output for 7.0.0
0.000076056<br>0.000123024
Output for 5.6.28
0.000583172<br>0.000457048
Output for 5.6.21
0.000410080<br>0.000365019
Output for 5.6.20
0.000334978<br>0.000287056
Output for 5.6.19
0.000445127<br>0.000362873
Output for 5.6.18
0.000277042<br>0.000221014
Output for 5.6.17
0.000406027<br>0.000323057
Output for 5.6.16
0.000263929<br>0.000222921
Output for 5.6.15
0.000365973<br>0.000300169
Output for 5.6.14
0.000275135<br>0.000250101
Output for 5.6.13
0.000324965<br>0.000269175
Output for 5.6.12
0.000419855<br>0.000336885
Output for 5.6.11
0.000461817<br>0.000354052
Output for 5.6.10
0.000350952<br>0.000288010
Output for 5.6.9
0.000432968<br>0.000345945
Output for 5.6.8
0.000302076<br>0.000262022
Output for 5.5.35
0.000277996<br>0.000235081
Output for 5.5.34
0.000460148<br>0.000382185
Output for 5.5.33
0.000318050<br>0.000257969
Output for 5.5.32
0.000795126<br>0.000640869
Output for 5.5.31
0.000427008<br>0.000322104
Output for 5.5.30
0.000529051<br>0.000398159
Output for 5.5.29
0.000425100<br>0.000344038
Output for 5.5.28
0.000390053<br>0.000308037
Output for 5.5.27
0.000369072<br>0.000293970
Output for 5.5.26
0.000378847<br>0.000329018
Output for 5.5.25
0.000468016<br>0.000450850
Output for 5.5.24
0.000422955<br>0.000347137
Output for 5.4.45
0.000354052<br>0.000301838
Output for 5.4.44
0.000440121<br>0.000363827
Output for 5.4.43
0.000436068<br>0.000321150
Output for 5.4.42
0.000442028<br>0.000380993
Output for 5.4.41
0.000346184<br>0.000280857
Output for 5.4.40
0.000514984<br>0.000413895
Output for 5.4.39
0.000497818<br>0.000380993
Output for 5.4.38
0.000494003<br>0.000401020
Output for 5.4.37
0.000430107<br>0.000375032
Output for 5.4.36
0.000895023<br>0.000805855
Output for 5.4.35
0.000511885<br>0.000427961
Output for 5.4.34
0.000383854<br>0.000298023
Output for 5.4.32
0.000602007<br>0.000519037
Output for 5.4.31
0.000527859<br>0.000435829
Output for 5.4.30
0.000419140<br>0.000375986
Output for 5.4.29
0.000361919<br>0.000321150
Output for 5.4.28
0.000362873<br>0.000308990
Output for 5.4.27
0.000491858<br>0.000404119
Output for 5.4.26
0.000491142<br>0.000391006
Output for 5.4.25
0.000424147<br>0.000345945
Output for 5.4.24
0.000424147<br>0.000343084
Output for 5.4.23
0.000386000<br>0.000334024
Output for 5.4.22
0.000497103<br>0.000403881
Output for 5.4.21
0.000343084<br>0.000303984
Output for 5.4.20
0.000488043<br>0.000396013
Output for 5.4.19
0.000293016<br>0.000253916
Output for 5.4.18
0.000488043<br>0.000433922
Output for 5.4.17
0.000433207<br>0.000390053
Output for 5.4.16
0.000482082<br>0.000403881
Output for 5.4.15
0.000442028<br>0.000270844
Output for 5.4.14
0.000401974<br>0.000315905
Output for 5.4.13
0.000464916<br>0.000395060
Output for 5.4.12
0.000507832<br>0.000413895
Output for 5.4.11
0.000460148<br>0.000375986
Output for 5.4.10
0.000407934<br>0.000326872
Output for 5.4.9
0.000449896<br>0.000356913
Output for 5.4.8
0.000301123<br>0.000238180
Output for 5.4.7
0.000466108<br>0.000386953
Output for 5.4.6
0.000430107<br>0.000389099
Output for 5.4.5
0.000519037<br>0.000455856
Output for 5.4.4
0.000520945<br>0.000396967
Output for 5.4.3
0.000403166<br>0.000335932
Output for 5.4.2
0.000378847<br>0.000298023
Output for 5.4.1
0.000383139<br>0.000314951
Output for 5.4.0
0.000434160<br>0.000391006
Output for 5.3.29
0.000527859<br>0.000410080
Output for 5.3.28
0.000366211<br>0.000308990
Output for 5.3.27
0.000538111<br>0.000447989
Output for 5.3.26
0.000483036<br>0.000422955
Output for 5.3.25
0.000317812<br>0.000269175
Output for 5.3.24
0.000506163<br>0.000464916
Output for 5.3.23
0.000392914<br>0.000331879
Output for 5.3.22
0.000590086<br>0.000466824
Output for 5.3.21
0.000447035<br>0.000318050
Output for 5.3.20
0.000602007<br>0.000443935
Output for 5.3.19
0.000372171<br>0.000297070
Output for 5.3.18
0.000617027<br>0.000461102
Output for 5.3.17
0.000552893<br>0.000506878
Output for 5.3.16
0.000524998<br>0.000422955
Output for 5.3.15
0.000566959<br>0.000467062
Output for 5.3.14
0.000499964<br>0.000401020
Output for 5.3.13
0.000559807<br>0.000381947
Output for 5.3.12
0.000519037<br>0.000353098
Output for 5.3.11
0.000580072<br>0.000410080
Output for 5.3.10
0.000661135<br>0.000521183
Output for 5.3.9
0.000581980<br>0.000480890
Output for 5.3.8
0.000432968<br>0.000360012
Output for 5.3.7
0.000585079<br>0.000463963
Output for 5.3.6
0.000633001<br>0.000475883
Output for 5.3.5
0.000614166<br>0.000486851
Output for 5.3.4
0.000540972<br>0.000422001
Output for 5.3.3
0.000559807<br>0.000432014
Output for 5.3.2
0.000587940<br>0.000466108
Output for 5.3.1
0.000450850<br>0.000377893
Output for 5.3.0
0.000638008<br>0.000472069
Output for 5.2.17
0.000327110<br>0.000288010
Output for 5.2.16
0.000705004<br>0.000575066
Output for 5.2.15
0.000337124<br>0.000283957
Output for 5.2.14
0.000333071<br>0.000284910
Output for 5.2.13
0.000586987<br>0.000477791
Output for 5.2.12
0.000552893<br>0.000468969
Output for 5.2.11
0.000334024<br>0.000300884
Output for 5.2.10
0.000637054<br>0.000531912
Output for 5.2.9
0.000617981<br>0.000499010
Output for 5.2.8
0.000595093<br>0.000457048
Output for 5.2.7
0.000548840<br>0.000458002
Output for 5.2.6
0.000608921<br>0.000526905
Output for 5.2.5
0.000365019<br>0.000345945
Output for 5.2.4
0.000585794<br>0.000391006
Output for 5.2.3
0.000581980<br>0.000489950
Output for 5.2.2
0.000630856<br>0.000523090
Output for 5.2.1
0.000542879<br>0.000436068
Output for 5.2.0
0.000505924<br>0.000461817
Output for 5.1.6
0.000337124<br>0.000299931
Output for 5.1.5
0.000509024<br>0.000413895
Output for 5.1.4
0.000560045<br>0.000440836
Output for 5.1.3
0.000316143<br>0.000271082
Output for 5.1.2
0.000328064<br>0.000265121
Output for 5.1.1
0.000308037<br>0.000273943
Output for 5.1.0
0.000509977<br>0.000409842
Output for 5.0.5
0.000725031<br>0.000652075
Output for 5.0.4
0.000678778<br>0.000605106
Output for 5.0.3
0.000525951<br>0.000450134
Output for 5.0.2
0.000530005<br>0.000501871
Output for 5.0.1
0.000753164<br>0.000593185
Output for 5.0.0
0.000490189<br>0.000438929
Output for 4.4.9
0.000644000<br>0.000512000
Output for 4.4.8
0.000842000<br>0.000671000
Output for 4.4.7
0.000880000<br>0.000789000
Output for 4.4.6
0.000724000<br>0.000567000
Output for 4.4.5
0.000589000<br>0.000469000
Output for 4.4.4
0.000626000<br>0.000477000
Output for 4.4.3
0.000618000<br>0.000480000
Output for 4.4.2
0.000468000<br>0.000391000
Output for 4.4.1
0.000400000<br>0.000326000
Output for 4.4.0
0.000423000<br>0.000331000
Output for 4.3.11
0.000591000<br>0.000452000
Output for 4.3.10
0.000495000<br>0.000396000
Output for 4.3.9
0.000596000<br>0.000490000
Output for 4.3.8
0.000710000<br>0.000599000
Output for 4.3.7
0.000815000<br>0.000721000
Output for 4.3.6
0.000540000<br>0.000431000
Output for 4.3.5
0.000551000<br>0.000460000
Output for 4.3.4
0.000706000<br>0.000567000
Output for 4.3.3
0.000806000<br>0.000669000
Output for 4.3.2
0.000890000<br>0.000705000
Output for 4.3.1
0.000704000<br>0.000552000
Output for 4.3.0
0.000710000<br>0.000527000