3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'abcdef'; $shuffled = str_shuffle($str); // This will echo something like: bfdaec echo $shuffled; ?>
Output for 7.1.0
adbefc
Output for 5.4.35, 7.0.14
efadcb
Output for 5.3.17, 7.0.11
fbdeca
Output for 7.0.10
facebd
Output for 7.0.9
dfbaec
Output for 4.3.1, 7.0.8
dfebac
Output for 7.0.7
dbcefa
Output for 7.0.6
dbfaec
Output for 7.0.5
adbfce
Output for 7.0.4
bafecd
Output for 7.0.3
eafcdb
Output for 7.0.2
fbcdea
Output for 7.0.1
cbefad
Output for 7.0.0
fcdbae
Output for 5.6.28
afebcd
Output for 5.6.26
efbcad
Output for 5.6.25
fcbaed
Output for 5.6.24
fbaecd
Output for 5.6.23
fadbce
Output for 5.6.22
ceadfb
Output for 5.6.21
ecadfb
Output for 5.6.8, 5.6.20
efdbac
Output for 5.6.19
dcfeab
Output for 5.1.5, 5.6.18
eadcbf
Output for 5.6.17
fdebca
Output for 5.0.5, 5.6.16
dfcaeb
Output for 5.6.15
cbaefd
Output for 5.6.14
dfceba
Output for 5.6.13
bacdef
Output for 5.6.12
cdefab
Output for 5.6.11
abfced
Output for 5.6.10
cdabfe
Output for 5.6.9
acbedf
Output for 5.6.7
eacbdf
Output for 5.6.6
adcbef
Output for 5.6.5
beadfc
Output for 5.6.4
cfbaed
Output for 5.6.3
becdaf
Output for 5.6.2
dbcfea
Output for 5.6.1
cdbefa
Output for 5.6.0
fdeabc
Output for 5.5.38
bdafec
Output for 5.5.37
cbadfe
Output for 5.5.36
afdceb
Output for 5.2.7, 5.5.35
cbfdea
Output for 5.5.34
dfeacb
Output for 5.5.33
edcbfa
Output for 5.5.32
fcadbe
Output for 5.5.31
deafcb
Output for 5.5.30
dfbeca
Output for 5.5.29
eabdfc
Output for 5.5.28
cdaebf
Output for 5.5.27
deacfb
Output for 5.3.22, 5.5.26
bafcde
Output for 5.5.25
cfadeb
Output for 5.5.24
adcebf
Output for 5.5.23
fdeacb
Output for 5.5.22
fbceda
Output for 5.5.21
ecdfab
Output for 5.5.20
dabecf
Output for 5.5.19
fcaebd
Output for 5.5.18
deabcf
Output for 5.2.8, 5.5.16
febdac
Output for 5.5.15
abdfce
Output for 5.5.14
aecfbd
Output for 5.5.13
acfebd
Output for 5.5.12
cbdafe
Output for 5.5.11
fbaced
Output for 5.5.10
bdfcea
Output for 5.5.9
ecbdfa
Output for 5.5.8
fabecd
Output for 5.5.7
dfabce
Output for 5.5.6
dbecaf
Output for 5.5.5
cabefd
Output for 5.5.4
dfeabc
Output for 5.5.3
badfec
Output for 5.5.2
aedfbc
Output for 5.5.1
fabedc
Output for 5.5.0
cfbeda
Output for 5.4.45
afecdb
Output for 5.4.44
cfaebd
Output for 5.4.43
cbdaef
Output for 5.4.42
efdabc
Output for 5.3.1, 5.4.41
afbced
Output for 5.4.40
afcdeb
Output for 5.4.39
fcebad
Output for 5.4.38
eacdbf
Output for 5.4.37
bfdcea
Output for 5.4.36
aefbcd
Output for 5.2.17, 5.4.34
bcaedf
Output for 5.4.32
befcad
Output for 5.2.9, 5.4.31
fbdcae
Output for 5.3.0, 5.4.30
bedcfa
Output for 5.4.29
dcbafe
Output for 5.4.28
fbedac
Output for 5.4.27
faebdc
Output for 5.4.26
dcfbae
Output for 5.4.25
acfbde
Output for 5.4.24
abdecf
Output for 5.4.21, 5.4.23
fadbec
Output for 5.4.22
fadebc
Output for 5.4.20
fbadce
Output for 5.4.19
facdeb
Output for 5.3.8, 5.4.18
aedcbf
Output for 5.4.17
fecbad
Output for 5.4.16
cfabed
Output for 5.4.15
dabfce
Output for 5.4.14
fdaebc
Output for 5.4.13
acebdf
Output for 5.4.12
bdfeac
Output for 5.4.11
abcdef
Output for 5.4.10
fcbade
Output for 5.4.9
aefdcb
Output for 5.4.8
adbcef
Output for 5.4.7
bacefd
Output for 5.4.6
cadfbe
Output for 5.4.5
afdbec
Output for 5.4.4
cbeadf
Output for 5.4.3
fbdace
Output for 5.4.2
afbcde
Output for 5.4.1
efcadb
Output for 5.4.0
cebdfa
Output for 5.3.29
cdbfea
Output for 5.3.28
ceadbf
Output for 5.3.27
fcabed
Output for 5.3.26
cfabde
Output for 5.3.25
ecdabf
Output for 5.3.24
dfcbea
Output for 5.3.23
dafcbe
Output for 5.3.21
dacebf
Output for 5.3.20
bedafc
Output for 5.3.19
adcfbe
Output for 5.3.18
bcedaf
Output for 5.3.16
decabf
Output for 5.3.15
bdacef
Output for 5.2.2, 5.3.14
facbde
Output for 5.3.13
deacbf
Output for 5.3.12
bdfcae
Output for 5.3.11
ebfdac
Output for 5.3.10
abcfed
Output for 5.3.9
bdface
Output for 5.3.7
abecdf
Output for 5.3.6
afedcb
Output for 5.3.5
ebcadf
Output for 5.3.4
bfcaed
Output for 5.3.3
bfaedc
Output for 5.3.2
abecfd
Output for 5.2.16
baedcf
Output for 5.2.15
ecfadb
Output for 5.2.14
cbedaf
Output for 5.2.13
dafebc
Output for 5.0.0, 5.2.12
ebafcd
Output for 5.1.0, 5.2.11
befdac
Output for 5.2.10
ebacfd
Output for 5.2.6
eafcbd
Output for 5.2.5
dbaecf
Output for 5.2.4
edfcab
Output for 5.2.3
aefcdb
Output for 5.2.1
fcedab
Output for 5.2.0
dbcfae
Output for 5.1.6
fceabd
Output for 5.1.4
fabcde
Output for 5.1.3
cebfda
Output for 5.1.2
bfedca
Output for 5.1.1
cdafbe
Output for 5.0.4
cabdfe
Output for 5.0.3
bdefca
Output for 5.0.2
dfecba
Output for 5.0.1
efbcda
Output for 4.4.9
aefcbd
Output for 4.4.8
defacb
Output for 4.4.7
ceabdf
Output for 4.4.6
dfbeac
Output for 4.4.5
dbfcae
Output for 4.4.4
fdacbe
Output for 4.4.3
dacbef
Output for 4.4.2
debafc
Output for 4.4.1
fdcabe
Output for 4.4.0
afebdc
Output for 4.3.11
ecdafb
Output for 4.3.10
abfedc
Output for 4.3.9
cfadbe
Output for 4.3.8
cbfead
Output for 4.3.7
fdbcea
Output for 4.3.6
aebfdc
Output for 4.3.5
efdbca
Output for 4.3.3 - 4.3.4
aecdbf
Output for 4.3.2
abdfec
Output for 4.3.0
eacbfd