3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function GeneratePassword ($length,$chars) { $res = array(); $char_length = strlen($chars); for($i = 0; $i < $length; $i++) { $res[] = $chars[rand(0,$char_length)]; } return implode('', $res); } echo GeneratePassword(10, 'asdafdfgsaffhdhsd');
Output for 7.1.0
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 sdhdffdf
Output for 7.0.14
fsgahaafgd
Output for 7.0.12
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 agsfssdfs
Output for 7.0.6
dfdgfddafa
Output for 7.0.5
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 ffsdfsdgf
Output for 7.0.4
sfgdfdafds
Output for 7.0.3
aahfaafhdh
Output for 7.0.2
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 fssdfag
Output for 7.0.1
dffffdffhs
Output for 7.0.0
dddsfhfdss
Output for hhvm-3.12.0
ddsaghdhd
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.28
fhadhsdass
Output for 5.6.21
adsdhdhaha
Output for 5.6.20
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 fashahssf
Output for 5.6.19
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 dfsaaadsf
Output for 5.6.18
shfhffffhd
Output for 5.6.17
faadhdhaad
Output for 5.6.16
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 aafsffd
Output for 5.6.15
hffaahsffa
Output for 5.6.14
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 fddafssda
Output for 5.6.13
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 ahfadffad
Output for 5.6.12
dsdgfshdfd
Output for 5.6.11
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 dfsffsad
Output for 5.6.10
hsadfffaad
Output for 5.6.9
fdsdsssdha
Output for 5.6.8
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 hghsgdfa
Output for 5.5.35
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 ddsdaffda
Output for 5.5.34
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 sdfdfasgf
Output for 5.5.33
dsfdfhsgsd
Output for 5.5.32
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 sasdgahfd
Output for 5.5.31
gdfafsdhad
Output for 5.5.30
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 safhhfsh
Output for 5.5.29
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 fddsddsfd
Output for 5.5.28
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 fgdhsgfdf
Output for 5.5.27
ssaaafhsdf
Output for 5.5.26
fhhaahfdas
Output for 5.5.25
dagahdgdas
Output for 5.5.24
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 fdhhsfaa
Output for 5.4.45
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 sdfdhsah
Output for 5.4.44
daahhahdsf
Output for 5.4.43
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 shssasfhd
Output for 5.4.42
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 daffsadff
Output for 5.4.41
sfffsdafsd
Output for 5.4.40
sfhfassffa
Output for 5.4.39
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 dsgssfh
Output for 5.4.38
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 sddsahfdh
Output for 5.4.37
hghsgsdsaa
Output for 5.4.36
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 dsdafsfda
Output for 5.4.35
dasaffaffa
Output for 5.4.34
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 dsshhdhfs
Output for 5.4.32
dfhaaagsfh
Output for 5.4.31
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 dffssdsf
Output for 5.4.30
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 dfdsdafaa
Output for 5.4.29
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 hdfhahfd
Output for 5.4.28
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 ahadssfdf
Output for 5.4.27
ghhfdfffda
Output for 5.4.26
sdsdshdfsa
Output for 5.4.25
hahsshdsgf
Output for 5.4.24
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 shsgfgasf
Output for 5.4.23
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 sffsaddsh
Output for 5.4.22
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 fsdhadffg
Output for 5.4.21
ddaadhdddd
Output for 5.4.20
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 agfsggfdd
Output for 5.4.19
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 adggfafg
Output for 5.4.18
afhggfssds
Output for 5.4.17
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 hsfgfsshh
Output for 5.4.16
gssahdasdf
Output for 5.4.15
fdsddhaadd
Output for 5.4.14
daaafdgshh
Output for 5.4.13
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 ffhgdfd
Output for 5.4.12
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 ffhdafshs
Output for 5.4.11
fsdfdshddd
Output for 5.4.10
ssahdffffd
Output for 5.4.9
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 fdgssafa
Output for 5.4.8
hdafdaghfg
Output for 5.4.7
sffagdafha
Output for 5.4.6
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 sdfsdfhff
Output for 5.4.5
sddfffasaa
Output for 5.4.4
dfdsdhddfs
Output for 5.4.3
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 aaddfdsf
Output for 5.4.2
sdadddsfga
Output for 5.4.1
hfhddahfff
Output for 5.4.0
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 dfahfadss
Output for 5.3.29
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 ffsshhss
Output for 5.3.28
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 dasfaffdd
Output for 5.3.27
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 fdasgaag
Output for 5.3.26
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 dssdadhsf
Output for 5.3.25
fhdhgasdda
Output for 5.3.24
agshgdhfaa
Output for 5.3.23
dhfdfdhfdd
Output for 5.3.22
fasafafafg
Output for 5.3.21
hdsadfdhfa
Output for 5.3.20
gdhdaadadg
Output for 5.3.19
fsssahaddf
Output for 5.3.18
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 hsdadsds
Output for 5.3.17
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 hsdfddffa
Output for 5.3.16
hdsfsafdfh
Output for 5.3.15
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 dfdfsdafd
Output for 5.3.14
dfsadafhfh
Output for 5.3.13
gdahdddasa
Output for 5.3.12
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 hddghfsda
Output for 5.3.11
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 addhfadsd
Output for 5.3.10
fdfshdadha
Output for 5.3.9
sgdaadasdh
Output for 5.3.8
dssfdassfd
Output for 5.3.7
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 ffhgasgfs
Output for 5.3.6
shfgfsadsh
Output for 5.3.5
shdsdadafs
Output for 5.3.4
fdddaashdh
Output for 5.3.3
ffdfdffgdf
Output for 5.3.2
hhdddffdsh
Output for 5.3.1
adasafsfga
Output for 5.3.0
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 fsahfhdg
Output for 5.2.17
aahfaffasd
Output for 5.2.16
dffaasffhf
Output for 5.2.15
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 fdffshssf
Output for 5.2.14
aasfssdsaf
Output for 5.2.13
ashhfgfdgf
Output for 5.2.12
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 dddaddsah
Output for 5.2.11
ddsfsdfddd
Output for 5.2.10
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 shdfhadha
Output for 5.2.9
sadhsaadhh
Output for 5.2.8
sfadfddddd
Output for 5.2.7
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 ddaadhhf
Output for 5.2.6
ggdfadshff
Output for 5.2.5
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 hshfaasdh
Output for 5.2.4
hfadfffhfa
Output for 5.2.3
fdfdhsfdhs
Output for 5.2.2
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 assdffafg
Output for 5.2.1
ssfssfdsgf
Output for 5.2.0
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 sfsadfasa
Output for 5.1.6
sasfsafghd
Output for 5.1.5
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 dsfgfdaf
Output for 5.1.4
afadffdddh
Output for 5.1.3
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 fdffgghda
Output for 5.1.2
hdfsaffsgd
Output for 5.1.1
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 gasgdfgah
Output for 5.1.0
ddfhasfhdf
Output for 5.0.5
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 adsafhsds
Output for 5.0.4
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 fggdfffdh
Output for 5.0.3
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 ffsasdhs
Output for 5.0.2
ddaafadsfd
Output for 5.0.1
sffffdgasd
Output for 5.0.0
fffsdhafas
Output for 4.4.9
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 ddgfasdgf
Output for 4.4.8
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 shgdddddf
Output for 4.4.7
ffhsshhffg
Output for 4.4.6
afdsdfhhaf
Output for 4.4.5
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 dddasfdf
Output for 4.4.4
dfdsssffad
Output for 4.4.3
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 daafgaadf
Output for 4.4.2
faddhhgsaf
Output for 4.4.1
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 hfaffafa
Output for 4.4.0
sgafasdghd
Output for 4.3.11
adaaddadss
Output for 4.3.10
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 fsadfdsaa
Output for 4.3.9
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 fsasgfffa
Output for 4.3.8
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 dhhasddff
Output for 4.3.7
fhsaddgafd
Output for 4.3.6
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 hfhaafdad
Output for 4.3.5
ssfaafffaa
Output for 4.3.4
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 gdfhddsaa
Output for 4.3.3
Notice: Uninitialized string offset: 17 in /in/8kpo0 on line 11 dddhfddhs
Output for 4.3.2
asdsfhaafs
Output for 4.3.1
dfgffhafsf
Output for 4.3.0
asdsffsssf