3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function randomString($length=10,$symbols=false) { $grabbag = "abcdefghijklmnopqrstuvwxyz0123456789"; if ($symbols) { $grabbag .= '!@#$%^&*()_+{}-=[]|\\:";\'<,>.?/~`'; } $string = ''; $len = strlen($grabbag)-1; while ($length--) { $char = $grabbag[rand(0,$len)]; if (rand(0,1)) { $char = strtoupper($char); } $string .= $char; } return $string; } echo randomString(20,true);
Output for 7.1.0
jFO1D<*b^o?uq5|=6$?V
Output for 7.0.14
[21nU(?TKwf?^v/UITo>
Output for 7.0.6
'7@|%k^b:NgW6;RpFT-|
Output for 7.0.5
{1~P5@=x#{9")aKUB)M[
Output for 7.0.4
n;{-U@fVW^p6}98;T+;l
Output for 7.0.3
a?D}{E?1x6cz_=fx#Un3
Output for 7.0.2
\g/`]Lu{,]5=\})`#~\M
Output for 7.0.1
4%;|_i#Sk.0NZc-gU$b;
Output for 7.0.0
MJ0+1-O|2Y''[L~j6<"$
Output for hhvm-3.12.0
3~*=7V0W<Hc!C#UAE{o/
Output for hhvm-3.10.0
S!/@1TK@~`53[N^Q]8}4
Output for 5.6.28
#81mz]\I#m-@A,8x0D=m
Output for 5.6.21
}#n=5?~oXWx7ad;G=U].
Output for 5.6.20
?78btLx9he"0a=yanT#A
Output for 5.6.19
|2&+(0~5/=3f'S13D,1f
Output for 5.6.18
A?<A`>>]@7mp>e:T@%Zd
Output for 5.6.17
20NL=0/$O1;%z)10Fe}i
Output for 5.6.16
$Y"5e7nHO]uBV-27#*\G
Output for 5.6.15
C(pI<^>%O#89C"-Z`}Pd
Output for 5.6.14
5$i<D(2*C*TC[|yJN2:1
Output for 5.6.13
%\S&h40]7V,6+9^?&26~
Output for 5.6.12
,m<l~84O+g/(n=Z9X^37
Output for 5.6.11
n<7c;cz-'Q_yt~'>!;Z5
Output for 5.6.10
86B<dCBo=~?H2X0V3q6)
Output for 5.6.9
;+:L'[39^oX82i{^5(Sj
Output for 5.6.8
?6GF<#T;b'^_|O<-1=H5
Output for 5.6.7
;-DoKAj$4s3K*}[Z{4H"
Output for 5.6.6
;T3+T!};fw2.jI8rK/L>
Output for 5.6.5
4|;W2;8[5gi2^88)<R[&
Output for 5.6.4
'~4@Z<J5t<E=i_bB]%{s
Output for 5.6.3
*E{1[{=H`l"[7t)hv"=|
Output for 5.6.2
a%v2E)Ym6DB|=-*8o8$N
Output for 5.6.1
vt&%+f/Y-9z|\?vO!.Y?
Output for 5.6.0
^U{b//^*`J~4N91d!-Z}
Output for 5.5.35
I49_1~DbmZR~j*^TI6\;
Output for 5.5.34
[{RMqO`FK;>7};bB$!7]
Output for 5.5.33
&ND+`2(*5\|[w!v<(.[C
Output for 5.5.32
v)+V]+b?/4Zq@2P!=/f4
Output for 5.5.31
)e){0h)`5mx-})hWw"+y
Output for 5.5.30
A~_07,@N?k=;<4\7bPK{
Output for 5.5.29
'|Lsi*>!*\8D{Oi1&4`k
Output for 5.5.28
`6'lj-|s\Nzo_Y9DA^!D
Output for 5.5.27
%H<l*^l\=&q2;0z_-;?H
Output for 5.5.26
4H;9&]S,/z|3U{/2{XM=
Output for 5.5.25
1o/+QA0#8jIa>,z>_Q03
Output for 5.5.24
e~(7$0@@p/t8v..rbS?*
Output for 5.5.23
zNOIK5^0IM?]S8=bdal~
Output for 5.5.22
=/{}{"{Ef&i$+y=@*:QT
Output for 5.5.21
@68p0p/2("eNR|)!b$#)
Output for 5.5.20
_9('q~:S\20,pS=6c[S8
Output for 5.5.19
|b[+(@y){9191b^\"{>#
Output for 5.5.18
2.0=*(%(l}qx]S:/Bg)/
Output for 5.5.16
.8QHll"<PF$n>}q>z(Bm
Output for 5.5.15
"q080qwy-7[a-\$@!!`p
Output for 5.5.14
?!;>7#79O_;[@W";+:"[
Output for 5.5.13
{gg/*`;@=owp&#2y*T7+
Output for 5.5.12
{4_&8^:3J53e0Es8;JS(
Output for 5.5.11
|"\/0XF%-^)>a<wze&SP
Output for 5.5.10
$\`j'049@BR<o)s@{2<J
Output for 5.5.9
]q-"6^~S-78)7v+-">![
Output for 5.5.8
Z$-}^)&<1W}p$JS\$'TW
Output for 5.5.7
u=sr06Biyb-tyW`*b,*7
Output for 5.5.6
/8!;4{';mF[.9$(:m}D8
Output for 5.5.5
I;>:5V)O;l;!?@$O"Xs}
Output for 5.5.4
@9{62_$m)Y8u)[#05jC]
Output for 5.5.3
68$9]1][IA]CC]~)5#~.
Output for 5.5.2
G<H_M3~??20kl2CfK+#~
Output for 5.5.1
oa\2{Uk\`.Zxw9R:F?g9
Output for 5.5.0
\\e#1]sG(B~*D|AFD}a[
Output for 5.4.45
.FFLy~135^>VjtSo*'a1
Output for 5.4.44
.TN8]W!+<l91~h]})5]|
Output for 5.4.43
NH$%J)Rc2>_o3p:ee9n&
Output for 5.4.42
#:`WR=>O3%z6hD%s[$Q7
Output for 5.4.41
.~7pM;(u:ik*2|=)2S5I
Output for 5.4.40
RcLO]TZ6Qo;8n{>ano#v
Output for 5.4.39
,14V9ciz/.e7>]99"+zE
Output for 5.4.38
,=O4e5=6<d6#W7{%:=et
Output for 5.4.37
,X4/:'=aPRm5:(-G@ry;
Output for 5.4.36
T_2/lT[s5}~;$&&H`?==
Output for 5.4.35
A4[[,i-2\z@e9($.$9$z
Output for 5.4.34
:{F/_vh`,vBN'&D2-~:0
Output for 5.4.32
}:_2x/+Ex_+TbyOT2+>h
Output for 5.4.31
t*\5k|He%.F(-{>!xg~|
Output for 5.4.30
_=O*Z\{)[TjJ#Nw/2JUW
Output for 5.4.29
x*P-2%NZ\`|f<H-b&;X.
Output for 5.4.28
]%[<>#n!v@dF,{ypX|F`
Output for 5.4.27
0R6T*':4'z`&4#"bx:g]
Output for 5.4.26
IR\?S<4F3T];8)}M<2(U
Output for 5.4.25
S0H6se_m_]?;~e@70d'y
Output for 5.4.24
-x/K0-;%1C(J>`1k*M.l
Output for 5.4.23
Dt=i@|c:7$N4$%;4"FeF
Output for 5.4.22
IL'K]t~a:^!A(1$]+V1o
Output for 5.4.21
';}^,"))\K7L%4_@(,07
Output for 5.4.20
"#4U?Vn[<>!]>nZ)(1>[
Output for 5.4.19
|ZMi):s1"TI(,Qi7Q+)9
Output for 5.4.18
:%<2rE;-`!o$?[N@d3V'
Output for 5.4.17
ec4}T&\z_Py4l{f{M!(L
Output for 5.4.16
q(m?`y8>o34J\#VC\Kf|
Output for 5.4.15
eqn0X*.vU.T19~mpyW^L
Output for 5.4.14
][7.E$]4|R6`>q5"5=0o
Output for 5.4.13
C~=#]%J_px_5n>M/UpW%
Output for 5.4.12
f%3c"=IJ{a9,^,<|a=(6
Output for 5.4.11
a4t9Ws>i$Ux<\}~QVI\5
Output for 5.4.10
+j|2:7>2m^f<E54`f5.%
Output for 5.4.9
9IQ5Yu78/,`K]3@-}+@S
Output for 5.4.8
^{7,nh47C#4|C}+e`eN{
Output for 5.4.7
@r/y]"NIY*`@65[;s%43
Output for 5.4.6
I~S{#/R'`L7%m)+G01\7
Output for 5.4.5
"M*}Hv~p+Ybc<+ps|bN#
Output for 5.4.4
~Y!\j//>1\csE{'Hh7t2
Output for 5.4.3
q.]hm;&*Q?Ox=SDyp6W6
Output for 5.4.2
`(_35h)/s"0v7/-=@a_<
Output for 5.4.1
,]<5~t8,!/:nyP'Q)OHz
Output for 5.4.0
R{<-`1b1,@Z4Z5w^/2x\
Output for 5.3.29
W9^,`Z:.+]6924q"i$"R
Output for 5.3.28
/l|b@YkscETl_%-X;-!,
Output for 5.3.27
m[L|9^z6w.7~HJAq`}>3
Output for 5.3.26
(C,~)&Y@_5L{'di[X0(4
Output for 5.3.25
6b3,>1)+=r$.-I>4b@h"
Output for 5.3.24
$q^p"E@>.Pi:{(m.jChL
Output for 5.3.23
7M,g#%]8AK}f95`ta7J?
Output for 5.3.22
S#Xu='th189I4!m[q#/*
Output for 5.3.21
wrw".#e7|WRhk$TQ,c\1
Output for 5.3.20
?d:V2[\]V&~?P:1^40#]
Output for 5.3.19
o_;#zhG>V|`Sxs1Y]!bl
Output for 5.3.18
"$cx|#-^/D\<<Zt^:!%p
Output for 5.3.17
'G&#e_AB/)@GlQ.B9}5O
Output for 5.3.16
=r-Hk\j$&?7):4Wp^nf'
Output for 5.3.15
Rl+/u=DJygg3({T&7"E\
Output for 5.3.14
}o;%[_u@+$/7F@$d~}tu
Output for 5.3.13
%`H2K"D7S9#](n,e[T.l
Output for 5.3.12
bkK?S(`4]%9^U9Ko'8yT
Output for 5.3.11
-G8F(u^dP8-"\7'0^ni"
Output for 5.3.10
c\})+Q{-/y9,zc~\A8'N
Output for 5.3.9
I5a}<>c$S)JamKJ1X5b2
Output for 5.3.8
K16>Im3}g9!Q.X`${?O%
Output for 5.3.7
5#t9++.]K0;C0@8&z5*5
Output for 5.3.6
_b2$|1<XN"q,(]O8:p5%
Output for 5.3.5
y}><H2&.2h0}w7q"=~Uz
Output for 5.3.4
7V2DNOk7vJ-W~@j?#&B%
Output for 5.3.3
<+{~6a0+>]pw)X6[0p6~
Output for 5.3.2
L/m;U,5k7@+%[/<;2AE@
Output for 5.3.1
%.<%S$F275yr&RW44r\^
Output for 5.3.0
Os_4+_g%"L<bru(U:O]j
Output for 5.2.17
4O?&f)P2z2+e|P=^["tr
Output for 5.2.16
U%o'O.njhk?JL(AgXX>l
Output for 5.2.15
^'#He3-Sfy`s7!;jeS6R
Output for 5.2.14
&`X#hnjWU%{|+~iJ'-_:
Output for 5.2.13
cuY3t'@%[wFpq,`'2D\+
Output for 5.2.12
xW1^;~@6^ojPZ`$TB'&3
Output for 5.2.11
wM/A)7a>$]=x_8W?-#Q&
Output for 5.2.10
;*t!X)@KwH;"]yd,QD,u
Output for 5.2.9
5(y>N"}<&?,^@B$<}3%8
Output for 5.2.8
_GQ\hu&";=3`\\>K_J'Q
Output for 5.2.7
:m8)"\_Hf{'_]*]#1ET^
Output for 5.2.6
#95OM4=&\/:l}(b8vPy_
Output for 5.2.5
&(;`>-`Fex+1UHg`B[B2
Output for 5.2.4
4_i7'J"A(T|b<^(@e])K
Output for 5.2.3
*(5H$P%<x`v(i:m]q%B#
Output for 5.2.2
l:|%J2]RWb`sb9g7|+:&
Output for 5.2.1
R4|{Va)5I<43S\"%|?]w
Output for 5.2.0
@!(g/Ip9]jT%3>##8two
Output for 5.1.6
Kr|=i4{%;&_@DEqfs*{)
Output for 5.1.5
Uc?Z|S(4%""1#&zV'Ep^
Output for 5.1.4
M&#@i#)OA|e`X_=O<p(2
Output for 5.1.3
J9]?Sn.g+X^]1<F/zjo?
Output for 5.1.2
^;HyhH-54R)(j`@=(&N<
Output for 5.1.1
0A#b`6aA@^C0&k|i/Lc[
Output for 5.1.0
qH0,yl/JDk#r$1*]F\H]
Output for 5.0.5
M&d=yIKNk}='wp@2*;R<
Output for 5.0.4
j86{+/Z<&:12E!S%n@s_
Output for 5.0.3
_"p-t'u,5O64w<_.*AE?
Output for 5.0.2
M5@4)la{$5(4$t2UFN~$
Output for 5.0.1
,&3/9{[jZ]1U)~f'?%MU
Output for 5.0.0
-fot4G\rSPeW11<?f:q+
Output for 4.4.9
q*5p|i&?{6g\Y=+(k:[)
Output for 4.4.8
11t7/)&'g5*^"2;[-}*|
Output for 4.4.7
T_j]P3"yN=3}.09;9Y}I
Output for 4.4.6
2@A+}>ps9F8SMq/^}J\M
Output for 4.4.5
:I7_"d'${-_C`q8f9k2:
Output for 4.4.4
hV0;yawa~Hi?+|5<jX9:
Output for 4.4.3
9,]HQp.l0n-`Kf?(NIq(
Output for 4.4.2
-7G\7kb?Q+:V]E_d.|IC
Output for 4.4.1
p|W$3/,5'<,>1?-!v|?y
Output for 4.4.0
0S_gxo~,bF"dibqYC4X>
Output for 4.3.11
2o0{Y>q8'Lj?L0#Kr4af
Output for 4.3.10
KW>{K-c2Lr\c[:#&640!
Output for 4.3.9
GA#S6lo2WL4~w!Wav1S)
Output for 4.3.8
4lt)'EQiQ*hTf6'(8[c-
Output for 4.3.7
:,t_u}%8i/S:42U9e&:d
Output for 4.3.6
!2z!@jx;Rx72'`M;:_(l
Output for 4.3.5
#uY4X\~46&*~P;'h`;gf
Output for 4.3.4
8}Df({p(xWi.?"fW'5}w
Output for 4.3.3
<D*3kXchO)""p"|=8yI7
Output for 4.3.2
Fe"-\Y(\[TE(Z+0e(t\~
Output for 4.3.1
~J<)%tiW=|q,ONee]48=
Output for 4.3.0
^/:7'_`;r~J7#@y;(6L?