3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = microtime(true); for ($i = 0; $i < 1000; $i++) strtr('React/Controller/Website/User', '/', '_'); printf('%.09f', microtime(true) - $s); echo "\n"; $s = microtime(true); for ($i = 0; $i < 1000; $i++) str_replace('/', '_', 'React/Controller/Website/User'); printf('%.09f', microtime(true) - $s);
Output for 7.4.0
0.000154018 0.000302076
Output for 7.3.12
0.000232935 0.000447989
Output for 7.3.11
0.000148058 0.000303030
Output for 7.3.10
0.000117064 0.000211954
Output for 7.3.9
0.000094891 0.000221968
Output for 7.3.8
0.000124931 0.000220776
Output for 7.3.7
0.000169992 0.000375986
Output for 7.3.6
0.000114918 0.000280857
Output for 7.3.5
0.000094891 0.000211954
Output for 7.3.4
0.000174999 0.000346899
Output for 7.3.3
0.000108004 0.000213146
Output for 7.3.2
0.000102043 0.000197172
Output for 7.3.1
0.000206947 0.000374079
Output for 7.3.0
0.000167847 0.000302076
Output for 7.2.25
0.000171900 0.000322104
Output for 7.2.24
0.000155926 0.000310183
Output for 7.2.23
0.000132084 0.000319004
Output for 7.2.22
0.000099182 0.000234127
Output for 7.2.21
0.000142813 0.000296116
Output for 7.2.20
0.000106096 0.000220060
Output for 7.2.19
0.000264883 0.000427961
Output for 7.2.18
0.000146151 0.000304937
Output for 7.2.17
0.000195026 0.000427961
Output for 7.2.16
0.000104904 0.000225782
Output for 7.2.15
0.000132799 0.000262022
Output for 7.2.14
0.000180960 0.000466108
Output for 7.2.13
0.000098944 0.000231981
Output for 7.2.12
0.000141859 0.000294924
Output for 7.2.11
0.000133991 0.000277042
Output for 7.2.10
0.000210047 0.000435829
Output for 7.2.9
0.000192165 0.000409126
Output for 7.2.8
0.000113010 0.000233173
Output for 7.2.7
0.000188828 0.000406981
Output for 7.2.6
0.000123978 0.000226974
Output for 7.2.5
0.000144958 0.000329971
Output for 7.2.4
0.000198126 0.000339985
Output for 7.2.3
0.000107050 0.000221968
Output for 7.2.2
0.000177145 0.000422001
Output for 7.2.1
0.000101805 0.000221014
Output for 7.2.0
0.000142813 0.000275135
Output for 7.1.33
0.000164986 0.000308990
Output for 7.1.32
0.000195980 0.000284910
Output for 7.1.31
0.000285149 0.000504017
Output for 7.1.30
0.000194073 0.000365973
Output for 7.1.29
0.000246048 0.000418186
Output for 7.1.28
0.000191212 0.000325203
Output for 7.1.27
0.000167847 0.000294924
Output for 7.1.26
0.000159979 0.000280142
Output for 7.1.25
0.000142097 0.000267982
Output for 7.1.24
0.000143051 0.000304937
Output for 7.1.23
0.000288963 0.000475168
Output for 7.1.22
0.000149012 0.000252008
Output for 7.1.21
0.000151873 0.000315905
Output for 7.1.20
0.000253916 0.000487089
Output for 7.1.19
0.000137806 0.000256062
Output for 7.1.18
0.000144958 0.000273943
Output for 7.1.17
0.000269890 0.000530958
Output for 7.1.16
0.000174999 0.000327826
Output for 7.1.15
0.000133038 0.000252008
Output for 7.1.14
0.000137091 0.000266075
Output for 7.1.13
0.000143051 0.000269890
Output for 7.1.12
0.000143051 0.000244141
Output for 7.1.11
0.000327826 0.000653028
Output for 7.1.10
0.000136137 0.000246048
Output for 7.1.9
0.000328064 0.000581980
Output for 7.1.8
0.000138998 0.000265837
Output for 7.1.7
0.000143051 0.000255108
Output for 7.1.6
0.000302076 0.000262976
Output for 7.1.5
0.000182867 0.000269890
Output for 7.1.4
0.000210047 0.000244856
Output for 7.1.3
0.000267029 0.000511169
Output for 7.1.2
0.000160933 0.000284910
Output for 7.1.1
0.000203848 0.000394106
Output for 7.1.0
0.000181913 0.000326872
Output for 7.0.33
0.000143051 0.000250101
Output for 7.0.32
0.000337124 0.000575066
Output for 7.0.31
0.000145197 0.000256062
Output for 7.0.30
0.000226974 0.000417948
Output for 7.0.29
0.000131130 0.000262976
Output for 7.0.28
0.000136852 0.000256062
Output for 7.0.27
0.000213861 0.000355959
Output for 7.0.26
0.000182867 0.000373125
Output for 7.0.25
0.000360012 0.000741005
Output for 7.0.24
0.000237942 0.000385046
Output for 7.0.23
0.000272989 0.000524044
Output for 7.0.22
0.000210047 0.000401020
Output for 7.0.21
0.000231028 0.000499964
Output for 7.0.20
0.000143051 0.000257015
Output for 7.0.19
0.000304937 0.000598192
Output for 7.0.18
0.000133991 0.000257015
Output for 7.0.17
0.000393867 0.000397921
Output for 7.0.16
0.000138998 0.000247002
Output for 7.0.15
0.000164032 0.000284910
Output for 7.0.14
0.000179052 0.000332832
Output for 7.0.13
0.000362158 0.000246048
Output for 7.0.12
0.000135899 0.000267982
Output for 7.0.11
0.000187159 0.000369072
Output for 7.0.10
0.000241041 0.000261068
Output for 7.0.9
0.000263929 0.000497818
Output for 7.0.8
0.000219822 0.000426054
Output for 7.0.7
0.000138998 0.000252008
Output for 7.0.6
0.000272989 0.000521898
Output for 7.0.5
0.000185966 0.000351906
Output for 7.0.4
0.000185013 0.000360012
Output for 7.0.3
0.000175953 0.000308037
Output for 7.0.2
0.000208139 0.000397921
Output for 7.0.1
0.000135899 0.000257969
Output for 7.0.0
0.000146866 0.000258207
Output for 5.6.40
0.000432014 0.000478983
Output for 5.6.39
0.000718117 0.000801086
Output for 5.6.38
0.000565052 0.000584126
Output for 5.6.37
0.000634193 0.000663042
Output for 5.6.36
0.000832796 0.000915051
Output for 5.6.35
0.000449896 0.000452042
Output for 5.6.34
0.000766993 0.000798941
Output for 5.6.33
0.000987053 0.000802994
Output for 5.6.32
0.000433207 0.000467062
Output for 5.6.31
0.000512123 0.000458956
Output for 5.6.30
0.001070023 0.000449896
Output for 5.6.29
0.001150846 0.001158953
Output for 5.6.28
0.000549078 0.000591040
Output for 5.6.27
0.000447989 0.000452995
Output for 5.6.26
0.000440836 0.000456095
Output for 5.6.25
0.000435114 0.000450134
Output for 5.6.24
0.000855923 0.000859976
Output for 5.6.23
0.000428915 0.000449181
Output for 5.6.22
0.000430107 0.000454903
Output for 5.6.21
0.000425816 0.000469923
Output for 5.6.20
0.000467062 0.000458002
Output for 5.6.19
0.000688791 0.000663996
Output for 5.6.18
0.000715017 0.000756979
Output for 5.6.17
0.000426054 0.000453949
Output for 5.6.16
0.000715017 0.000667095
Output for 5.6.15
0.000494003 0.000519991
Output for 5.6.14
0.000621080 0.000653028
Output for 5.6.13
0.000443935 0.000462055
Output for 5.6.12
0.000902891 0.000964880
Output for 5.6.11
0.000658035 0.000465155
Output for 5.6.10
0.000425816 0.000453949
Output for 5.6.9
0.000593185 0.000687838
Output for 5.6.8
0.000607967 0.000454903
Output for 5.6.7
0.000622034 0.000512838
Output for 5.6.6
0.001224995 0.000999928
Output for 5.6.5
0.000457048 0.000487089
Output for 5.6.4
0.000436068 0.000451088
Output for 5.6.3
0.000451803 0.000484943
Output for 5.6.2
0.000452995 0.000468969
Output for 5.6.1
0.000977993 0.001095057
Output for 5.6.0
0.000457048 0.000470161
Output for 5.5.38
0.000825882 0.000905037
Output for 5.5.37
0.000787020 0.000846863
Output for 5.5.36
0.000501871 0.000526905
Output for 5.5.35
0.000698090 0.000680923
Output for 5.5.34
0.000709057 0.000492096
Output for 5.5.33
0.000854015 0.000898123
Output for 5.5.32
0.000821114 0.000859976
Output for 5.5.31
0.000710964 0.000697851
Output for 5.5.30
0.001028061 0.000892878
Output for 5.5.29
0.000957012 0.001008034
Output for 5.5.28
0.000466824 0.000485897
Output for 5.5.27
0.000571012 0.000546932
Output for 5.5.26
0.000540018 0.000458956
Output for 5.5.25
0.000493050 0.000527859
Output for 5.5.24
0.001163960 0.000452042
Output for 5.5.23
0.000630140 0.000655890
Output for 5.5.22
0.001039982 0.001053810
Output for 5.5.21
0.000503063 0.000519037
Output for 5.5.20
0.000838041 0.000751019
Output for 5.5.19
0.000610113 0.000586033
Output for 5.5.18
0.000591040 0.000455141
Output for 5.5.17
0.000566006 0.000572920
Output for 5.5.16
0.000684023 0.000521898
Output for 5.5.15
0.000812054 0.000909090
Output for 5.5.14
0.000722885 0.000735044
Output for 5.5.13
0.000664949 0.000854015
Output for 5.5.12
0.000433922 0.000462055
Output for 5.5.11
0.000509024 0.000518084
Output for 5.5.10
0.000444174 0.000466108
Output for 5.5.9
0.000435114 0.000460148
Output for 5.5.8
0.001075983 0.001119852
Output for 5.5.7
0.000427008 0.000461102
Output for 5.5.6
0.000446796 0.000483990
Output for 5.5.5
0.000441074 0.000472069
Output for 5.5.4
0.000550032 0.000566006
Output for 5.5.3
0.000830889 0.000869036
Output for 5.5.2
0.000442028 0.000458002
Output for 5.5.1
0.000431776 0.000481129
Output for 5.5.0
0.000925064 0.001003027
Output for 5.4.45
0.001539946 0.000701904
Output for 5.4.44
0.000710011 0.000706911
Output for 5.4.43
0.000446796 0.000470161
Output for 5.4.42
0.000853062 0.000879049
Output for 5.4.41
0.001162767 0.001243114
Output for 5.4.40
0.000445127 0.000450850
Output for 5.4.39
0.001062870 0.000459909
Output for 5.4.38
0.000639915 0.000660896
Output for 5.4.37
0.000481129 0.000508070
Output for 5.4.36
0.000702143 0.000669956
Output for 5.4.35
0.001091003 0.001210928
Output for 5.4.34
0.000452995 0.000510931
Output for 5.4.33
0.001172066 0.001298904
Output for 5.4.32
0.000715017 0.000712872
Output for 5.4.31
0.001101017 0.000718117
Output for 5.4.30
0.000714064 0.000765085
Output for 5.4.29
0.000674963 0.000902176
Output for 5.4.28
0.000608921 0.000638008
Output for 5.4.27
0.000452042 0.001106024
Output for 5.4.26
0.000977039 0.000761032
Output for 5.4.25
0.001148939 0.000617981
Output for 5.4.24
0.000836134 0.000900030
Output for 5.4.23
0.000638008 0.000648975
Output for 5.4.22
0.000550985 0.000555992
Output for 5.4.21
0.000496149 0.000571012
Output for 5.4.20
0.001138926 0.000633001
Output for 5.4.19
0.001034975 0.001110077
Output for 5.4.18
0.001097918 0.001183987
Output for 5.4.17
0.001202106 0.000877857
Output for 5.4.16
0.001010895 0.001139879
Output for 5.4.15
0.000814915 0.000705004
Output for 5.4.14
0.000597954 0.000487089
Output for 5.4.13
0.000709057 0.000685930
Output for 5.4.12
0.000465870 0.000499010
Output for 5.4.11
0.032026052 0.001388073
Output for 5.4.10
0.028528929 0.001016140
Output for 5.4.9
0.042090893 0.001116991
Output for 5.4.8
0.011773825 0.000589132
Output for 5.4.7
0.023136139 0.000891209
Output for 5.4.6
0.038527012 0.001313925
Output for 5.4.5
0.067748070 0.001196146
Output for 5.4.4
0.036978006 0.001282930
Output for 5.4.3
0.033179998 0.001183987
Output for 5.4.2
0.037703037 0.001245022
Output for 5.4.1
0.000924110 0.000945091
Output for 5.4.0
0.033455849 0.000872850
Output for 5.3.29
0.001244068 0.001459837
Output for 5.3.28
0.001426220 0.001551151
Output for 5.3.27
0.000802994 0.000923157
Output for 5.3.26
0.000860214 0.000935078
Output for 5.3.25
0.000881195 0.001015902
Output for 5.3.24
0.001346111 0.001446009
Output for 5.3.23
0.000596046 0.000699997
Output for 5.3.22
0.000582218 0.000555038
Output for 5.3.21
0.000481129 0.000550985
Output for 5.3.20
0.000749111 0.000828981
Output for 5.3.19
0.001526117 0.001569033
Output for 5.3.18
0.001361132 0.000578880
Output for 5.3.17
0.000661135 0.000751019
Output for 5.3.16
0.000938177 0.000989199
Output for 5.3.15
0.001213074 0.001363993
Output for 5.3.14
0.000582218 0.000692129
Output for 5.3.13
0.000763178 0.000895023
Output for 5.3.12
0.000735998 0.000578880
Output for 5.3.11
0.000761986 0.000847101
Output for 5.3.10
0.000727177 0.000844955
Output for 5.3.9
0.000549078 0.000639915
Output for 5.3.8
0.001391172 0.001577854
Output for 5.3.7
0.000575066 0.000718117
Output for 5.3.6
0.001145124 0.001300097
Output for 5.3.5
0.001394033 0.000682116
Output for 5.3.4
0.000873089 0.001111031
Output for 5.3.3
0.000599146 0.000742912
Output for 5.3.2
0.001210213 0.001342058
Output for 5.3.1
0.000627041 0.000818014
Output for 5.3.0
0.001008034 0.001129866
Output for 5.2.17
0.000586987 0.000464916
Output for 5.2.16
0.000478983 0.000364780
Output for 5.2.15
0.000589848 0.000491858
Output for 5.2.14
0.000612020 0.000483036
Output for 5.2.13
0.000580072 0.000469923
Output for 5.2.12
0.000538826 0.000429869
Output for 5.2.11
0.000541925 0.000492096
Output for 5.2.10
0.000475883 0.000418901
Output for 5.2.9
0.000594854 0.000473022
Output for 5.2.8
0.000451088 0.000349045
Output for 5.2.7
0.000415087 0.000301838
Output for 5.2.6
0.000513077 0.000414133
Output for 5.2.5
0.000620127 0.000638008
Output for 5.2.4
0.000526905 0.000431061
Output for 5.2.3
0.000358105 0.000288010
Output for 5.2.2
0.000552893 0.000468969
Output for 5.2.1
0.000586987 0.000456095
Output for 5.2.0
0.000759840 0.000496149
Output for 5.1.6
0.000553131 0.000471115
Output for 5.1.5
0.000508070 0.000413895
Output for 5.1.4
0.000620127 0.000494003
Output for 5.1.3
0.000594139 0.000507116
Output for 5.1.2
0.000542879 0.000442982
Output for 5.1.1
0.000540972 0.000488043
Output for 5.1.0
0.000556946 0.000432014
Output for 5.0.5
0.000406981 0.000372171
Output for 5.0.4
0.000649929 0.000576019
Output for 5.0.3
0.000390053 0.000349045
Output for 5.0.2
0.000421047 0.000359058
Output for 5.0.1
0.000563145 0.000494003
Output for 5.0.0
0.000460863 0.000354052
Output for 4.4.9
0.000807000 0.000635000
Output for 4.4.8
0.000446000 0.000398000
Output for 4.4.7
0.000404000 0.000329000
Output for 4.4.6
0.000904000 0.000748000
Output for 4.4.5
0.000650000 0.000522000
Output for 4.4.4
0.000662000 0.000563000
Output for 4.4.3
0.000910000 0.000710000
Output for 4.4.2
0.000751000 0.000618000
Output for 4.4.1
0.000791000 0.000645000
Output for 4.4.0
0.000494000 0.000384000
Output for 4.3.11
0.000531000 0.000407000
Output for 4.3.10
0.000402000 0.000315000
Output for 4.3.9
0.000394000 0.000326000
Output for 4.3.8
0.000400000 0.000364000
Output for 4.3.7
0.000648000 0.000325000
Output for 4.3.6
0.000620000 0.000529000
Output for 4.3.5
0.000402000 0.000314000
Output for 4.3.4
0.000380000 0.000309000
Output for 4.3.3
0.000382000 0.000320000
Output for 4.3.2
0.000538000 0.000337000
Output for 4.3.1
0.000390000 0.000322000
Output for 4.3.0
0.000376000 0.000302000

preferences:
91.53 ms | 851 KiB | 5 Q