3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function get_rand_str($len){ $result=''; $chars=preg_split('//','abcdef0123456789'); for($i=0;$i<$len;$i++) $result.=$chars[rand(0,count($chars)-1)]; return $result; } echo get_rand_str(12);
Output for 7.1.0
4ed6b4d030
Output for 7.0.14
fdcb06a6b48
Output for 7.0.10
d2d74391519
Output for 7.0.9
5faeb3cee8
Output for 7.0.8
f5073333ed90
Output for 7.0.7
bcfe1fe1e1
Output for 7.0.6
f64e29e51
Output for 7.0.5
0fa5a9278db
Output for 7.0.4
f12bba340f2
Output for 7.0.3
3540f9c2f8bd
Output for 7.0.2
9ab1d1c88e
Output for 7.0.1
5162a7aa76
Output for 7.0.0
b852f15877
Output for hhvm-3.12.0
8bfc38c15998
Output for hhvm-3.10.0
1204163
Output for 5.6.28
0a42217272d8
Output for 5.6.25
88c86155ce84
Output for 5.6.24
1bcf0ad3025
Output for 5.6.23
63b2f93ab30b
Output for 5.6.22
3c84b79021
Output for 5.6.21
b92835
Output for 5.6.20
4764be1dbb
Output for 5.6.19
248266d6d82e
Output for 5.6.18
79ae7e8b2e
Output for 5.6.17
98ba103a9c
Output for 5.6.16
c62e44af58
Output for 5.6.15
f6aec78969
Output for 5.6.14
5709fa42c52e
Output for 5.6.13
afff61d4bd5
Output for 5.6.12
786ed9959e9
Output for 5.6.11
5dfa8a57175
Output for 5.6.10
12e47f64c635
Output for 5.6.9
cb11d74c27a
Output for 5.6.8
790471c8fb9
Output for 5.6.7
8d7a321c1
Output for 5.6.6
5f69f7b125
Output for 5.6.5
31e02e76e
Output for 5.6.4
7f3af72d99
Output for 5.6.3
3d2f120419d6
Output for 5.6.2
6e1ef7fe24a1
Output for 5.6.1
ed6cef5a9c
Output for 5.6.0
9a94ce668
Output for 5.5.38
bc0ff9ace6
Output for 5.5.37
394d1dd409d1
Output for 5.5.36
013d1854c5e
Output for 5.5.35
f91d2651578
Output for 5.5.34
220090bcf1
Output for 5.5.33
498d8c1ff6a
Output for 5.5.32
f352dde83
Output for 5.5.31
b0eddb1f4c
Output for 5.5.30
0bcbfced57d
Output for 5.5.29
ce3799b7ec4
Output for 5.5.28
64c2ddcb6e9
Output for 5.5.27
14f82cfa499
Output for 5.5.26
6820eab952f8
Output for 5.5.25
550c200a52
Output for 5.5.24
f1f317e6f66
Output for 5.5.23
4e5f98597b9
Output for 5.5.22
d8a3b95e4c
Output for 5.5.21
be3c731a1c
Output for 5.5.20
4bd7ca67ac5
Output for 5.5.19
c579239eb5f
Output for 5.5.18
3eb13efa76
Output for 5.5.16
96f8468
Output for 5.5.15
b1d57ef7c54
Output for 5.5.14
0515ccc40aa
Output for 5.5.13
909c009b770
Output for 5.5.12
8fed79b986
Output for 5.5.11
3f8d1c57410
Output for 5.5.10
c6707079
Output for 5.5.9
6c89a9e4a
Output for 5.5.8
3479fcc20f
Output for 5.5.7
e8f3113ac
Output for 5.5.6
7ce71e0af
Output for 5.5.5
5e617ad371d
Output for 5.5.4
0d6631c868
Output for 5.5.3
4552238bd7
Output for 5.5.2
b97b3543cd
Output for 5.5.1
92e0c2cb98
Output for 5.5.0
eb87d892f501
Output for 5.4.45
c693b32
Output for 5.4.44
0a180474a8a
Output for 5.4.43
8ffc7585d4f
Output for 5.4.42
24d6d12b
Output for 5.4.41
835d9a573
Output for 5.4.40
527d347ae0
Output for 5.4.39
d723a16e8e4
Output for 5.4.38
acc0102d
Output for 5.4.37
65877483f915
Output for 5.4.36
59730c599
Output for 5.4.35
f6e6384be1f1
Output for 5.4.34
970cb0492cb
Output for 5.4.32
3672673f4160
Output for 5.4.31
e381341d53
Output for 5.4.30
34e1c565c4c5
Output for 5.4.29
ef3332a65c6
Output for 5.4.28
457bd4981e3
Output for 5.4.27
594404759b
Output for 5.4.26
da590908e93
Output for 5.4.25
7e6e941367e
Output for 5.4.24
fbc876ccebf
Output for 5.4.23
5c5e7cacaf35
Output for 5.4.22
8a34455359
Output for 5.4.21
098f75a18a6
Output for 5.4.20
6a5b1995c
Output for 5.4.19
c00539624ea
Output for 5.4.18
3bf7f29c826
Output for 5.4.17
6d659ce8db9
Output for 5.4.16
f862623aa40
Output for 5.4.15
e48cdd0f8f1
Output for 5.4.14
32bf0f3cedf
Output for 5.4.13
b26ba3af558e
Output for 5.4.12
8f93b1d26164
Output for 5.4.11
ca244d347b85
Output for 5.4.10
1154456804b
Output for 5.4.9
0fa337f5a3
Output for 5.4.8
dfd248dfc1e8
Output for 5.4.7
df8cc7b5d1
Output for 5.4.6
8d8d49a0837
Output for 5.4.5
8f384fe9f57
Output for 5.4.4
6749ceefe
Output for 5.4.3
99a53233143
Output for 5.4.2
f1484fed42
Output for 5.4.1
85920a2a
Output for 5.4.0
96d5e5d21e7
Output for 5.3.29
e8f873c4b0c
Output for 5.3.28
bb9a73ef
Output for 5.3.27
f6054bdbff88
Output for 5.3.26
60783019c5a
Output for 5.3.25
9f1ccd315f
Output for 5.3.24
f6bb972d0
Output for 5.3.23
e803fc0e9fd
Output for 5.3.22
b9bc54add
Output for 5.3.21
c72702b01fb7
Output for 5.3.20
c61e75c721e
Output for 5.3.19
9d54f0972147
Output for 5.3.18
ec8f52a18a
Output for 5.3.17
b540aed9cc7c
Output for 5.3.16
3df11ec70
Output for 5.3.15
7dd78cf0102
Output for 5.3.14
22f016d0bb
Output for 5.3.13
db8242cb7e
Output for 5.3.12
6bb1b0133c0
Output for 5.3.11
48f9f63a7f
Output for 5.3.10
58c83b70f07
Output for 5.3.9
66cc11b73d4
Output for 5.3.8
850161db3f
Output for 5.3.7
c2eaa2c6ed3a
Output for 5.3.6
3a2ea79f31b0
Output for 5.3.5
3948f2ac14c
Output for 5.3.4
64324e2831
Output for 5.3.3
3b7cce13ecd
Output for 5.3.2
96379200a3c
Output for 5.3.1
de82f25b0d74
Output for 5.3.0
2873da4247b
Output for 5.2.17
b08d4aab33b
Output for 5.2.16
40d9d75988f
Output for 5.2.15
8982e911b57
Output for 5.2.14
ad52968413a
Output for 5.2.13
c932a137afbb
Output for 5.2.12
89d1d0c5e9
Output for 5.2.11
1fa3090aac7
Output for 5.2.10
9748c0f5c23f
Output for 5.2.9
76cbc9cb7430
Output for 5.2.8
8e326247881
Output for 5.2.7
c1a81ccb86
Output for 5.2.6
fd15e5b4b
Output for 5.2.5
3cff29ecc9d
Output for 5.2.4
8de53872984
Output for 5.2.3
338122fb4ad
Output for 5.2.2
3a1d62705b81
Output for 5.2.1
3145900b50
Output for 5.2.0
d68a1de05e
Output for 5.1.6
735effa026
Output for 5.1.5
9b4f4e0943b4
Output for 5.1.4
e72b3d7af9
Output for 5.1.3
3fcba812f0e
Output for 5.1.2
917bcbb6c39
Output for 5.1.1
324ffc970e31
Output for 5.1.0
26a14888fd0
Output for 5.0.5
f78e6935682d
Output for 5.0.4
2366a9772798
Output for 5.0.3
9eb88cdc1163
Output for 5.0.2
c39b5244143e
Output for 5.0.1
e299239dfd8
Output for 5.0.0
744d9ec3a268
Output for 4.4.9
97cba78a60
Output for 4.4.8
e0fd5693e6b0
Output for 4.4.7
01bfd966c962
Output for 4.4.6
7266708271
Output for 4.4.5
e54ac82bd60
Output for 4.4.4
fc718bf6292
Output for 4.4.3
b3f4c27681
Output for 4.4.2
d495c30c
Output for 4.4.1
5841e835ec
Output for 4.4.0
9e1a0e257c5
Output for 4.3.11
ca86c923910a
Output for 4.3.10
da15786a31
Output for 4.3.9
73d639707d
Output for 4.3.8
23949b84a039
Output for 4.3.7
9c70aa1fc
Output for 4.3.6
181a8821f8c5
Output for 4.3.5
303cad98c85
Output for 4.3.4
425364bf
Output for 4.3.3
71b5471c146
Output for 4.3.2
594aa1047
Output for 4.3.1
1c4262ae638
Output for 4.3.0
901ccc7e5c9