3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo random_code(10) ; function random_code($length) { //This function will get you a randon code. The length will be based on "$length" $keys = array_merge(range(0,9), range('a', 'z')); for($i=0; $i < $length; $i++) { $key .= $keys[array_rand($keys)]; } return $key; } ?>
Output for 7.1.0
Notice: Undefined variable: key in /in/mCgkk on line 10 0wo40roc4v
Output for 7.0.14
Notice: Undefined variable: key in /in/mCgkk on line 10 2ayccb8fgh
Output for 7.0.10
Notice: Undefined variable: key in /in/mCgkk on line 10 80j2bvx130
Output for 7.0.9
Notice: Undefined variable: key in /in/mCgkk on line 10 pp9t9ne3oz
Output for 7.0.8
Notice: Undefined variable: key in /in/mCgkk on line 10 0glly7joa9
Output for 7.0.7
Notice: Undefined variable: key in /in/mCgkk on line 10 adaelp9se2
Output for 7.0.6
Notice: Undefined variable: key in /in/mCgkk on line 10 h0iw1zeprg
Output for 7.0.5
Notice: Undefined variable: key in /in/mCgkk on line 10 o50hkn0vjv
Output for 7.0.4
Notice: Undefined variable: key in /in/mCgkk on line 10 vvoumy44uv
Output for 7.0.3
Notice: Undefined variable: key in /in/mCgkk on line 10 yt7hm6c5rx
Output for 7.0.2
Notice: Undefined variable: key in /in/mCgkk on line 10 v8ekg3w4dc
Output for 7.0.1
Notice: Undefined variable: key in /in/mCgkk on line 10 sks5l2jqng
Output for 7.0.0
Notice: Undefined variable: key in /in/mCgkk on line 10 1ozk7hdcqv
Output for hhvm-3.12.0
hpk23nve3e
Output for hhvm-3.10.0
9myndz44ka
Output for 5.6.28
Notice: Undefined variable: key in /in/mCgkk on line 10 e20ewcx379
Output for 5.6.25
Notice: Undefined variable: key in /in/mCgkk on line 10 6qchjjlvne
Output for 5.6.24
Notice: Undefined variable: key in /in/mCgkk on line 10 n88mi5rkay
Output for 5.6.23
Notice: Undefined variable: key in /in/mCgkk on line 10 c042athlxu
Output for 5.6.22
Notice: Undefined variable: key in /in/mCgkk on line 10 tacntiqqk1
Output for 5.6.21
Notice: Undefined variable: key in /in/mCgkk on line 10 3bdr2l9bw7
Output for 5.6.20
Notice: Undefined variable: key in /in/mCgkk on line 10 qja3pfzq1d
Output for 5.6.19
Notice: Undefined variable: key in /in/mCgkk on line 10 1se16o0sr4
Output for 5.6.18
Notice: Undefined variable: key in /in/mCgkk on line 10 aoshxpppwp
Output for 5.6.17
Notice: Undefined variable: key in /in/mCgkk on line 10 t96g1lkk3h
Output for 5.6.16
Notice: Undefined variable: key in /in/mCgkk on line 10 bx3j3hp28o
Output for 5.6.15
Notice: Undefined variable: key in /in/mCgkk on line 10 u9g1sqc08i
Output for 5.6.14
Notice: Undefined variable: key in /in/mCgkk on line 10 t31l97doi8
Output for 5.6.13
Notice: Undefined variable: key in /in/mCgkk on line 10 vuc1h40z3z
Output for 5.6.12
Notice: Undefined variable: key in /in/mCgkk on line 10 kj6jjaw0kr
Output for 5.6.11
Notice: Undefined variable: key in /in/mCgkk on line 10 lzw05lrj9h
Output for 5.6.10
Notice: Undefined variable: key in /in/mCgkk on line 10 ky9xyuu9xs
Output for 5.6.9
Notice: Undefined variable: key in /in/mCgkk on line 10 qlkn9143hg
Output for 5.6.8
Notice: Undefined variable: key in /in/mCgkk on line 10 23bhv1njy6
Output for 5.6.7
Notice: Undefined variable: key in /in/mCgkk on line 10 tjshb3f50n
Output for 5.6.6
Notice: Undefined variable: key in /in/mCgkk on line 10 zu99xfdbxp
Output for 5.6.5
Notice: Undefined variable: key in /in/mCgkk on line 10 wcvx3eyfkd
Output for 5.6.4
Notice: Undefined variable: key in /in/mCgkk on line 10 4e3vwfhbtr
Output for 5.6.3
Notice: Undefined variable: key in /in/mCgkk on line 10 uqxlcfl6xp
Output for 5.6.2
Notice: Undefined variable: key in /in/mCgkk on line 10 55c82k4scl
Output for 5.6.1
Notice: Undefined variable: key in /in/mCgkk on line 10 sfbpgsw5bk
Output for 5.6.0
Notice: Undefined variable: key in /in/mCgkk on line 10 016ta0kqz1
Output for 5.5.38
Notice: Undefined variable: key in /in/mCgkk on line 10 dvkfigdkd7
Output for 5.5.37
Notice: Undefined variable: key in /in/mCgkk on line 10 86it5vhmlo
Output for 5.5.36
Notice: Undefined variable: key in /in/mCgkk on line 10 mnofflhv7p
Output for 5.5.35
Notice: Undefined variable: key in /in/mCgkk on line 10 arp6zkwssv
Output for 5.5.34
Notice: Undefined variable: key in /in/mCgkk on line 10 cdlikwxn0k
Output for 5.5.33
Notice: Undefined variable: key in /in/mCgkk on line 10 q5e345y2kn
Output for 5.5.32
Notice: Undefined variable: key in /in/mCgkk on line 10 ur7ebuc99n
Output for 5.5.31
Notice: Undefined variable: key in /in/mCgkk on line 10 r2dmoatrqi
Output for 5.5.30
Notice: Undefined variable: key in /in/mCgkk on line 10 t0qvlje5bl
Output for 5.5.29
Notice: Undefined variable: key in /in/mCgkk on line 10 fg8l4hv373
Output for 5.5.28
Notice: Undefined variable: key in /in/mCgkk on line 10 rsa3mg5wuw
Output for 5.5.27
Notice: Undefined variable: key in /in/mCgkk on line 10 hs6sbh3tv0
Output for 5.5.26
Notice: Undefined variable: key in /in/mCgkk on line 10 5fl7yrfh2f
Output for 5.5.25
Notice: Undefined variable: key in /in/mCgkk on line 10 j0730w4pdo
Output for 5.5.24
Notice: Undefined variable: key in /in/mCgkk on line 10 5j4i19dh50
Output for 5.5.23
Notice: Undefined variable: key in /in/mCgkk on line 10 o1wu2fyvui
Output for 5.5.22
Notice: Undefined variable: key in /in/mCgkk on line 10 4rfjc2h8el
Output for 5.5.21
Notice: Undefined variable: key in /in/mCgkk on line 10 2fzdea8726
Output for 5.5.20
Notice: Undefined variable: key in /in/mCgkk on line 10 54035zq8tz
Output for 5.5.19
Notice: Undefined variable: key in /in/mCgkk on line 10 q84j2m0sov
Output for 5.5.18
Notice: Undefined variable: key in /in/mCgkk on line 10 3jewxaslpr
Output for 5.5.16
Notice: Undefined variable: key in /in/mCgkk on line 10 8mv40fwshm
Output for 5.5.15
Notice: Undefined variable: key in /in/mCgkk on line 10 4rtgth6oka
Output for 5.5.14
Notice: Undefined variable: key in /in/mCgkk on line 10 yhvtiigyw7
Output for 5.5.13
Notice: Undefined variable: key in /in/mCgkk on line 10 2pj56hruo2
Output for 5.5.12
Notice: Undefined variable: key in /in/mCgkk on line 10 wf84zbb7bj
Output for 5.5.11
Notice: Undefined variable: key in /in/mCgkk on line 10 qo4ic09pva
Output for 5.5.10
Notice: Undefined variable: key in /in/mCgkk on line 10 x87el73cvr
Output for 5.5.9
Notice: Undefined variable: key in /in/mCgkk on line 10 7i7ynatrw9
Output for 5.5.8
Notice: Undefined variable: key in /in/mCgkk on line 10 aansteo8we
Output for 5.5.7
Notice: Undefined variable: key in /in/mCgkk on line 10 dyvezi5011
Output for 5.5.6
Notice: Undefined variable: key in /in/mCgkk on line 10 zaglp1058j
Output for 5.5.5
Notice: Undefined variable: key in /in/mCgkk on line 10 2i4msaz9y1
Output for 5.5.4
Notice: Undefined variable: key in /in/mCgkk on line 10 qykpkubqbe
Output for 5.5.3
Notice: Undefined variable: key in /in/mCgkk on line 10 s8o1yun6gk
Output for 5.5.2
Notice: Undefined variable: key in /in/mCgkk on line 10 8oofdekv91
Output for 5.5.1
Notice: Undefined variable: key in /in/mCgkk on line 10 s30cfb2vu3
Output for 5.5.0
Notice: Undefined variable: key in /in/mCgkk on line 10 dgj859ctyl
Output for 5.4.45
Notice: Undefined variable: key in /in/mCgkk on line 10 rwpeplfpce
Output for 5.4.44
Notice: Undefined variable: key in /in/mCgkk on line 10 kpvvywezko
Output for 5.4.43
Notice: Undefined variable: key in /in/mCgkk on line 10 eqec2ehm01
Output for 5.4.42
Notice: Undefined variable: key in /in/mCgkk on line 10 nes5ea90xg
Output for 5.4.41
Notice: Undefined variable: key in /in/mCgkk on line 10 k7jo1twrte
Output for 5.4.40
Notice: Undefined variable: key in /in/mCgkk on line 10 o3vxwfph2y
Output for 5.4.39
Notice: Undefined variable: key in /in/mCgkk on line 10 fm6hmu9qoi
Output for 5.4.38
Notice: Undefined variable: key in /in/mCgkk on line 10 6rev6swja3
Output for 5.4.37
Notice: Undefined variable: key in /in/mCgkk on line 10 s2bj5rk05q
Output for 5.4.36
Notice: Undefined variable: key in /in/mCgkk on line 10 8bcywjdzc6
Output for 5.4.35
Notice: Undefined variable: key in /in/mCgkk on line 10 kz288dp7ei
Output for 5.4.34
Notice: Undefined variable: key in /in/mCgkk on line 10 ilni8zwejb
Output for 5.4.32
Notice: Undefined variable: key in /in/mCgkk on line 10 gyd0rzw8o8
Output for 5.4.31
Notice: Undefined variable: key in /in/mCgkk on line 10 en1er1ltim
Output for 5.4.30
Notice: Undefined variable: key in /in/mCgkk on line 10 h9w5cc5t3l
Output for 5.4.29
Notice: Undefined variable: key in /in/mCgkk on line 10 s2yj0a9wym
Output for 5.4.28
Notice: Undefined variable: key in /in/mCgkk on line 10 5wl0fmnuy8
Output for 5.4.27
Notice: Undefined variable: key in /in/mCgkk on line 10 hsraj8op5z
Output for 5.4.26
Notice: Undefined variable: key in /in/mCgkk on line 10 s1g82hq21i
Output for 5.4.25
Notice: Undefined variable: key in /in/mCgkk on line 10 fh92t91lbl
Output for 5.4.24
Notice: Undefined variable: key in /in/mCgkk on line 10 iue8119tgn
Output for 5.4.23
Notice: Undefined variable: key in /in/mCgkk on line 10 ye75wy06kn
Output for 5.4.22
Notice: Undefined variable: key in /in/mCgkk on line 10 aoct1c0v8q
Output for 5.4.21
Notice: Undefined variable: key in /in/mCgkk on line 10 0z2jayvw77
Output for 5.4.20
Notice: Undefined variable: key in /in/mCgkk on line 10 w8ntwh5hxb
Output for 5.4.19
Notice: Undefined variable: key in /in/mCgkk on line 10 290mpa09vw
Output for 5.4.18
Notice: Undefined variable: key in /in/mCgkk on line 10 6rmhmzbkvv
Output for 5.4.17
Notice: Undefined variable: key in /in/mCgkk on line 10 o14op65anx
Output for 5.4.16
Notice: Undefined variable: key in /in/mCgkk on line 10 vcshz9oo8g
Output for 5.4.15
Notice: Undefined variable: key in /in/mCgkk on line 10 ngtirnb59p
Output for 5.4.14
Notice: Undefined variable: key in /in/mCgkk on line 10 10pywptinx
Output for 5.4.13
Notice: Undefined variable: key in /in/mCgkk on line 10 gh6rltwoyb
Output for 5.4.12
Notice: Undefined variable: key in /in/mCgkk on line 10 pim578fmwi
Output for 5.4.11
Notice: Undefined variable: key in /in/mCgkk on line 10 te8t21z4aa
Output for 5.4.10
Notice: Undefined variable: key in /in/mCgkk on line 10 jxpj5jrcdq
Output for 5.4.9
Notice: Undefined variable: key in /in/mCgkk on line 10 xkq4c93sxs
Output for 5.4.8
Notice: Undefined variable: key in /in/mCgkk on line 10 rp6m5yhqqg
Output for 5.4.7
Notice: Undefined variable: key in /in/mCgkk on line 10 qfsld9ob51
Output for 5.4.6
Notice: Undefined variable: key in /in/mCgkk on line 10 ob0vqwc7hj
Output for 5.4.5
Notice: Undefined variable: key in /in/mCgkk on line 10 zr3cfmk2fc
Output for 5.4.4
Notice: Undefined variable: key in /in/mCgkk on line 10 vjim0qw2q7
Output for 5.4.3
Notice: Undefined variable: key in /in/mCgkk on line 10 lf9hueqpn7
Output for 5.4.2
Notice: Undefined variable: key in /in/mCgkk on line 10 zo857xk094
Output for 5.4.1
Notice: Undefined variable: key in /in/mCgkk on line 10 v1mjv4wmmi
Output for 5.4.0
Notice: Undefined variable: key in /in/mCgkk on line 10 kpsw7pf1rc
Output for 5.3.29
Notice: Undefined variable: key in /in/mCgkk on line 10 asb6h9nta7
Output for 5.3.28
Notice: Undefined variable: key in /in/mCgkk on line 10 8r3n76v57a
Output for 5.3.27
Notice: Undefined variable: key in /in/mCgkk on line 10 nbkmdrevqi
Output for 5.3.26
Notice: Undefined variable: key in /in/mCgkk on line 10 ramfz5ovh8
Output for 5.3.25
Notice: Undefined variable: key in /in/mCgkk on line 10 4e8v9ol2q0
Output for 5.3.24
Notice: Undefined variable: key in /in/mCgkk on line 10 tio97bzbeh
Output for 5.3.23
Notice: Undefined variable: key in /in/mCgkk on line 10 fklkrxnmqo
Output for 5.3.22
Notice: Undefined variable: key in /in/mCgkk on line 10 bj4eg1nd1h
Output for 5.3.21
Notice: Undefined variable: key in /in/mCgkk on line 10 2xhydhpfyb
Output for 5.3.20
Notice: Undefined variable: key in /in/mCgkk on line 10 cykpq986a7
Output for 5.3.19
Notice: Undefined variable: key in /in/mCgkk on line 10 eqhfb257j2
Output for 5.3.18
Notice: Undefined variable: key in /in/mCgkk on line 10 tg4t68ypvb
Output for 5.3.17
Notice: Undefined variable: key in /in/mCgkk on line 10 qy4my5afw1
Output for 5.3.16
Notice: Undefined variable: key in /in/mCgkk on line 10 njk52zq1rk
Output for 5.3.15
Notice: Undefined variable: key in /in/mCgkk on line 10 507ofcw6zh
Output for 5.3.14
Notice: Undefined variable: key in /in/mCgkk on line 10 f53n17epvs
Output for 5.3.13
Notice: Undefined variable: key in /in/mCgkk on line 10 u5wrea12s3
Output for 5.3.12
Notice: Undefined variable: key in /in/mCgkk on line 10 ulqkmfppex
Output for 5.3.11
Notice: Undefined variable: key in /in/mCgkk on line 10 w2zl3xc7sa
Output for 5.3.10
Notice: Undefined variable: key in /in/mCgkk on line 10 xey3cweavf
Output for 5.3.9
Notice: Undefined variable: key in /in/mCgkk on line 10 9n473eodyi
Output for 5.3.8
Notice: Undefined variable: key in /in/mCgkk on line 10 w8g4521qbn
Output for 5.3.7
Notice: Undefined variable: key in /in/mCgkk on line 10 7dm29rnf35
Output for 5.3.6
Notice: Undefined variable: key in /in/mCgkk on line 10 r05ivzcbz1
Output for 5.3.5
Notice: Undefined variable: key in /in/mCgkk on line 10 b976h077iz
Output for 5.3.4
Notice: Undefined variable: key in /in/mCgkk on line 10 s2yrxue0n2
Output for 5.3.3
Notice: Undefined variable: key in /in/mCgkk on line 10 qbj5a8nsji
Output for 5.3.2
Notice: Undefined variable: key in /in/mCgkk on line 10 rebhyzvgs9
Output for 5.3.1
Notice: Undefined variable: key in /in/mCgkk on line 10 swh8ake1ok
Output for 5.3.0
Notice: Undefined variable: key in /in/mCgkk on line 10 e9iskc4n79
Output for 5.2.17
Notice: Undefined variable: key in /in/mCgkk on line 10 a3am881z2w
Output for 5.2.16
Notice: Undefined variable: key in /in/mCgkk on line 10 50c95yyp89
Output for 5.2.15
Notice: Undefined variable: key in /in/mCgkk on line 10 o0rchhi7ui
Output for 5.2.14
Notice: Undefined variable: key in /in/mCgkk on line 10 cve2jy8ny6
Output for 5.2.13
Notice: Undefined variable: key in /in/mCgkk on line 10 6btqmk8lif
Output for 5.2.12
Notice: Undefined variable: key in /in/mCgkk on line 10 65spfrylrp
Output for 5.2.11
Notice: Undefined variable: key in /in/mCgkk on line 10 5g0nl5jf9v
Output for 5.2.10
Notice: Undefined variable: key in /in/mCgkk on line 10 nup8as0v9u
Output for 5.2.9
Notice: Undefined variable: key in /in/mCgkk on line 10 oc481bqd16
Output for 5.2.8
Notice: Undefined variable: key in /in/mCgkk on line 10 wr8othnft5
Output for 5.2.7
Notice: Undefined variable: key in /in/mCgkk on line 10 sk7dc4nyeu
Output for 5.2.6
Notice: Undefined variable: key in /in/mCgkk on line 10 puaety7c9s
Output for 5.2.5
Notice: Undefined variable: key in /in/mCgkk on line 10 h4ducpvqxl
Output for 5.2.4
Notice: Undefined variable: key in /in/mCgkk on line 10 bplvj2lhb1
Output for 5.2.3
Notice: Undefined variable: key in /in/mCgkk on line 10 nt6khjciy4
Output for 5.2.2
Notice: Undefined variable: key in /in/mCgkk on line 10 sbobvpbt9g
Output for 5.2.1
Notice: Undefined variable: key in /in/mCgkk on line 10 9b79ldbekr
Output for 5.2.0
Notice: Undefined variable: key in /in/mCgkk on line 10 3pn8hwdnz6
Output for 5.1.6
Notice: Undefined variable: key in /in/mCgkk on line 10 mkh7eds5zb
Output for 5.1.5
Notice: Undefined variable: key in /in/mCgkk on line 10 weypt6t4ht
Output for 5.1.4
Notice: Undefined variable: key in /in/mCgkk on line 10 6win8pd5u7
Output for 5.1.3
Notice: Undefined variable: key in /in/mCgkk on line 10 ywbn324cbs
Output for 5.1.2
Notice: Undefined variable: key in /in/mCgkk on line 10 5r2wi6vc3r
Output for 5.1.1
Notice: Undefined variable: key in /in/mCgkk on line 10 z3rjmzmqa0
Output for 5.1.0
Notice: Undefined variable: key in /in/mCgkk on line 10 rk8k1zd404
Output for 5.0.5
Notice: Undefined variable: key in /in/mCgkk on line 10 y7l0dw7hip
Output for 5.0.4
Notice: Undefined variable: key in /in/mCgkk on line 10 ro6txiacvg
Output for 5.0.3
Notice: Undefined variable: key in /in/mCgkk on line 10 cihjhye2oe
Output for 5.0.2
Notice: Undefined variable: key in /in/mCgkk on line 10 y91nv04urg
Output for 5.0.1
Notice: Undefined variable: key in /in/mCgkk on line 10 eyn24yb8am
Output for 5.0.0
Notice: Undefined variable: key in /in/mCgkk on line 10 zcy7q02egh
Output for 4.4.9
Notice: Undefined variable: key in /in/mCgkk on line 10 sgr2x8vt5p
Output for 4.4.8
Notice: Undefined variable: key in /in/mCgkk on line 10 lkikct7v32
Output for 4.4.7
Notice: Undefined variable: key in /in/mCgkk on line 10 fwqw2zymwj
Output for 4.4.6
Notice: Undefined variable: key in /in/mCgkk on line 10 wqinzqgdj1
Output for 4.4.5
Notice: Undefined variable: key in /in/mCgkk on line 10 2hih6tjykc
Output for 4.4.4
Notice: Undefined variable: key in /in/mCgkk on line 10 vzw56hcfdx
Output for 4.4.3
Notice: Undefined variable: key in /in/mCgkk on line 10 c31wkokq4d
Output for 4.4.2
Notice: Undefined variable: key in /in/mCgkk on line 10 34dx7ixytb
Output for 4.4.1
Notice: Undefined variable: key in /in/mCgkk on line 10 h00kbgq229
Output for 4.4.0
Notice: Undefined variable: key in /in/mCgkk on line 10 pkjk67tw0l
Output for 4.3.11
Notice: Undefined variable: key in /in/mCgkk on line 10 tdcawixf15
Output for 4.3.10
Notice: Undefined variable: key in /in/mCgkk on line 10 4j0232di8g
Output for 4.3.9
Notice: Undefined variable: key in /in/mCgkk on line 10 8xxxen9bz7
Output for 4.3.8
Notice: Undefined variable: key in /in/mCgkk on line 10 eibllyh29s
Output for 4.3.7
Notice: Undefined variable: key in /in/mCgkk on line 10 z6aihnt73z
Output for 4.3.6
Notice: Undefined variable: key in /in/mCgkk on line 10 cprqmc309w
Output for 4.3.5
Notice: Undefined variable: key in /in/mCgkk on line 10 pzw9bhn32k
Output for 4.3.3 - 4.3.4
Notice: Undefined variable: key in /in/mCgkk on line 10 kr8dwvp9ln
Output for 4.3.2
Notice: Undefined variable: key in /in/mCgkk on line 10 crky8fbkl3
Output for 4.3.1
Notice: Undefined variable: key in /in/mCgkk on line 10 bzpyq9bq7f
Output for 4.3.0
Notice: Undefined variable: key in /in/mCgkk on line 10 seplx1ar2w