3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<? function generate_password( $length = 8 ) { $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_-=+;:,.?"; $password = substr( str_shuffle( $chars ), 0, $length ); return $password; } echo generate_password(); ?>
Output for 7.1.0
PC6l;@MV
Output for 7.0.14
p-A.NWmz
Output for 7.0.6
x7:8idcT
Output for 7.0.5
X6xr35&Z
Output for 7.0.4
xnOte9.a
Output for 7.0.3
$&=L5GA:
Output for 7.0.2
D=oK6uhz
Output for 7.0.1
-5(3xQi0
Output for 7.0.0
6N1GZe$;
Output for 5.6.28
VodW!($C
Output for 5.6.21
&TR)65BG
Output for 5.6.20
*.8NdK0X
Output for 5.6.19
.v-uhZ*H
Output for 5.6.18
#:YHIUVb
Output for 5.6.17
.s%ky:tg
Output for 5.6.16
6TF0?z4:
Output for 5.6.15
gfyG!WC@
Output for 5.6.14
HpCfJSzV
Output for 5.6.13
S%GE.Cp1
Output for 5.6.12
H*!R).s0
Output for 5.6.11
@4)YpXaM
Output for 5.6.10
5Nb3A:R(
Output for 5.6.9
r,Tk*V3h
Output for 5.6.8
&HX_bA4?
Output for 5.6.7
eglI83m^
Output for 5.5.35
+)oEB6GU
Output for 5.5.34
a9b*mK%6
Output for 5.5.33
EDJaNFym
Output for 5.5.32
V83g%OiH
Output for 5.5.31
Iyp*)YW5
Output for 5.5.30
nv^BmCF$
Output for 5.5.29
ijWD8l1w
Output for 5.5.28
?q1*4MFR
Output for 5.5.27
r5;,IS!k
Output for 5.5.26
3VTDnj=:
Output for 5.5.25
voW3Gq&Z
Output for 5.5.24
Qg:*T7$l
Output for 5.4.45
kFZL,6y?
Output for 5.4.44
_lgDTUx1
Output for 5.4.43
&7I2,G*#
Output for 5.4.42
QPpR7NI!
Output for 5.4.41
b-?_zO;%
Output for 5.4.40
ko$*C?W@
Output for 5.4.39
ITX&h_na
Output for 5.4.38
k4ldPj^n
Output for 5.4.37
_F&y+6o5
Output for 5.4.36
O8$2siw*
Output for 5.4.35
cMV*68L%
Output for 5.4.34
cCv5DK+9
Output for 5.4.32
z!7#CtPj
Output for 5.4.31
*pLuxm$J
Output for 5.4.30
!kNj-5qz
Output for 5.4.29
I0HmBaY,
Output for 5.4.28
81_v3QOF
Output for 5.4.27
UC+yEF@I
Output for 5.4.26
BA0$qVOb
Output for 5.4.25
Mine;3ys
Output for 5.4.24
+,bJO9tA
Output for 5.4.23
Mgwt4(?+
Output for 5.4.22
2znNwOyd
Output for 5.4.21
&TlkLfA9
Output for 5.4.20
Dd.eb*?9
Output for 5.4.19
0CIkpN5A
Output for 5.4.18
Hp#5mGV;
Output for 5.4.17
lgA-7pYq
Output for 5.4.16
H0nE93uG
Output for 5.4.15
fz)KTovh
Output for 5.4.14
qXcl1Mr@
Output for 5.4.13
M9L8NdB#
Output for 5.4.12
OyK9bc1#
Output for 5.4.11
$l4yjH1D
Output for 5.4.10
h^9y8w7r
Output for 5.4.9
uNW1%?o^
Output for 5.4.8
lLSaNtx-
Output for 5.4.7
#qh6c45-
Output for 5.4.6
JIPz+=aF
Output for 5.4.5
dU9WjXLf
Output for 5.4.4
V4;_AlZU
Output for 5.4.3
dpa=-9Py
Output for 5.4.2
eZ1DSpK_
Output for 5.4.1
)6F,HO(e
Output for 5.4.0
^)6cN&RQ
Output for 4.3.0 - 5.3.29
<? function generate_password( $length = 8 ) { $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_-=+;:,.?"; $password = substr( str_shuffle( $chars ), 0, $length ); return $password; } echo generate_password(); ?>