3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function genRandomString() { $length = 10; $characters = "0123456789abcdefghijklmnopqrstuvwxyz"; $string = ""; for ($p = 0; $p < $length; $p++) { $string .= $characters[mt_rand(0, strlen($characters)-1)]; } return $string; } function makeRandomPath($dir, $ext) { do { $path = $dir."/".genRandomString().".".$ext; } while(file_exists($path)); return $path; } function makeRandomPathFromFilename($dir, $fn) { $ext = pathinfo($fn, PATHINFO_EXTENSION); echo $ext . '\n'; return makeRandomPath($dir, $ext); } $target_path = makeRandomPathFromFilename("upload", "test.php./../../../../../../../etc/passwd.ff"); echo $target_path; ?>
Output for 7.1.0
ff\nupload/714ha7jv30.ff
Output for 7.0.14
ff\nupload/luovwz1nyt.ff
Output for 7.0.7
ff\nupload/hrbuug05nr.ff
Output for 7.0.6
ff\nupload/r05c9f199r.ff
Output for 7.0.5
ff\nupload/4zo579deix.ff
Output for 7.0.4
ff\nupload/cc9zvdgxb7.ff
Output for 7.0.3
ff\nupload/i90lwonh81.ff
Output for 7.0.2
ff\nupload/3p3eln7qsk.ff
Output for 7.0.1
ff\nupload/ez6087wgi5.ff
Output for 7.0.0
ff\nupload/zfm1uwhhg1.ff
Output for hhvm-3.12.0
ff\nupload/t3b3finh9c.ff
Output for hhvm-3.10.0
ff\nupload/cttj7qc7fk.ff
Output for 5.6.28
ff\nupload/xh5unrvh3u.ff
Output for 5.6.22
ff\nupload/z31km1woez.ff
Output for 5.6.21
ff\nupload/il83sa4qpk.ff
Output for 5.6.20
ff\nupload/7zznclotjo.ff
Output for 5.6.19
ff\nupload/q3smz160yw.ff
Output for 5.6.18
ff\nupload/fufg1cv4ni.ff
Output for 5.6.17
ff\nupload/z5b8t9jbi9.ff
Output for 5.6.16
ff\nupload/j3qfveeuv0.ff
Output for 5.6.15
ff\nupload/piaq8cy8ad.ff
Output for 5.6.14
ff\nupload/h2t4mrk9nc.ff
Output for 5.6.13
ff\nupload/112e0ba1fc.ff
Output for 5.6.12
ff\nupload/q8725gmk4i.ff
Output for 5.6.11
ff\nupload/3x02ouuvd3.ff
Output for 5.6.10
ff\nupload/e5v1o0n3ts.ff
Output for 5.6.9
ff\nupload/2h1dtv081h.ff
Output for 5.6.8
ff\nupload/qzmpizuof6.ff
Output for 5.6.7
ff\nupload/879083bdpb.ff
Output for 5.6.6
ff\nupload/dvqwywkdeo.ff
Output for 5.6.5
ff\nupload/p4xxiou68r.ff
Output for 5.6.4
ff\nupload/0l0b69rofh.ff
Output for 5.6.3
ff\nupload/jhd6e0q2ir.ff
Output for 5.6.2
ff\nupload/gjdn665hbe.ff
Output for 5.6.1
ff\nupload/lho1v7us2j.ff
Output for 5.6.0
ff\nupload/b4oiwn2xwb.ff
Output for 5.5.36
ff\nupload/98tq8aoy70.ff
Output for 5.5.35
ff\nupload/786t3mels2.ff
Output for 5.5.34
ff\nupload/ip7t85h20z.ff
Output for 5.5.33
ff\nupload/k1e8ncez7u.ff
Output for 5.5.32
ff\nupload/lz2hze7ylw.ff
Output for 5.5.31
ff\nupload/yqg23w8ngj.ff
Output for 5.5.30
ff\nupload/inwl8du1ii.ff
Output for 5.5.29
ff\nupload/hyzpto6w5d.ff
Output for 5.5.28
ff\nupload/tyyk8anigf.ff
Output for 5.5.27
ff\nupload/r9qcwba1mx.ff
Output for 5.5.26
ff\nupload/xu9bvbcfj2.ff
Output for 5.5.25
ff\nupload/h8fqxhuf05.ff
Output for 5.5.24
ff\nupload/09nd7nlxrq.ff
Output for 5.5.23
ff\nupload/3xcd7uut5c.ff
Output for 5.5.22
ff\nupload/zm439qkxwp.ff
Output for 5.5.21
ff\nupload/tazd9t4vwe.ff
Output for 5.5.20
ff\nupload/slgx5gp7e8.ff
Output for 5.5.19
ff\nupload/qwye1a0aol.ff
Output for 5.5.18
ff\nupload/li9ddfd6o1.ff
Output for 5.5.16
ff\nupload/8x384fuje2.ff
Output for 5.5.15
ff\nupload/grx5973iii.ff
Output for 5.5.14
ff\nupload/bb6oqj5v1z.ff
Output for 5.5.13
ff\nupload/2foxixaxbo.ff
Output for 5.5.12
ff\nupload/yegy1zq1yv.ff
Output for 5.5.11
ff\nupload/rrsrqt8swz.ff
Output for 5.5.10
ff\nupload/8y80arqmg9.ff
Output for 5.5.9
ff\nupload/l8j9whbnms.ff
Output for 5.5.8
ff\nupload/9tdvkyyszq.ff
Output for 5.5.7
ff\nupload/w1fg89jucj.ff
Output for 5.5.6
ff\nupload/y0y3b1p572.ff
Output for 5.5.5
ff\nupload/okpshxpthy.ff
Output for 5.5.4
ff\nupload/9bkngzdt66.ff
Output for 5.5.3
ff\nupload/q3f4y61ouc.ff
Output for 5.5.2
ff\nupload/sox6u7mwwd.ff
Output for 5.5.1
ff\nupload/xx3n5ux6lv.ff
Output for 5.5.0
ff\nupload/w8m7p41vcx.ff
Output for 5.4.45
ff\nupload/zo9kuvckfr.ff
Output for 5.4.44
ff\nupload/shtvo9a5av.ff
Output for 5.4.43
ff\nupload/syj7gv4ugj.ff
Output for 5.4.42
ff\nupload/eixgxhq8gy.ff
Output for 5.4.41
ff\nupload/7zlkq1zel4.ff
Output for 5.4.40
ff\nupload/32ca3aes19.ff
Output for 5.4.39
ff\nupload/55n1htgivu.ff
Output for 5.4.38
ff\nupload/o87r76cz6g.ff
Output for 5.4.37
ff\nupload/dvut0zax7p.ff
Output for 5.4.36
ff\nupload/fw2vmyunoo.ff
Output for 5.4.35
ff\nupload/j9qbef49yh.ff
Output for 5.4.34
ff\nupload/zb3tponsnp.ff
Output for 5.4.32
ff\nupload/nvdkudf725.ff
Output for 5.4.31
ff\nupload/4oiki01tm6.ff
Output for 5.4.30
ff\nupload/hgeav2pxtw.ff
Output for 5.4.29
ff\nupload/cdfh41o7yd.ff
Output for 5.4.28
ff\nupload/2cjbv44qif.ff
Output for 5.4.27
ff\nupload/vflgsuvodj.ff
Output for 5.4.26
ff\nupload/t6nn08sagf.ff
Output for 5.4.25
ff\nupload/848x09bf02.ff
Output for 5.4.24
ff\nupload/eeoayeoq29.ff
Output for 5.4.23
ff\nupload/4zpuvg0vng.ff
Output for 5.4.22
ff\nupload/oq84318dl9.ff
Output for 5.4.21
ff\nupload/a4re2ytuiq.ff
Output for 5.4.20
ff\nupload/qwljdte8rv.ff
Output for 5.4.19
ff\nupload/vbp3lhzlxt.ff
Output for 5.4.18
ff\nupload/9djh1peilz.ff
Output for 5.4.17
ff\nupload/acuwpufoht.ff
Output for 5.4.16
ff\nupload/5jfvbg3hdd.ff
Output for 5.4.15
ff\nupload/sva476cgds.ff
Output for 5.4.14
ff\nupload/coxntmzg62.ff
Output for 5.4.13
ff\nupload/fsl7fxd32z.ff
Output for 5.4.12
ff\nupload/pha28ne5if.ff
Output for 5.4.11
ff\nupload/zk7qb9hu2e.ff
Output for 5.4.10
ff\nupload/x432p1pnmm.ff
Output for 5.4.9
ff\nupload/lnbqlt0ele.ff
Output for 5.4.8
ff\nupload/ruj890abqa.ff
Output for 5.4.7
ff\nupload/rcdr6n0cgk.ff
Output for 5.4.6
ff\nupload/k2m4h5hl7e.ff
Output for 5.4.5
ff\nupload/69o5kfol13.ff
Output for 5.4.4
ff\nupload/es42wn3hv3.ff
Output for 5.4.3
ff\nupload/mkzskuk58l.ff
Output for 5.4.2
ff\nupload/bz1k7c3bdy.ff
Output for 5.4.1
ff\nupload/9to6dq8u7n.ff
Output for 5.4.0
ff\nupload/l0jkl1v6ts.ff
Output for 5.3.29
ff\nupload/4kumkcqdnw.ff
Output for 5.3.28
ff\nupload/9hiag2b2q7.ff
Output for 5.3.27
ff\nupload/9gdvh02ihh.ff
Output for 5.3.26
ff\nupload/us0v8xe5op.ff
Output for 5.3.25
ff\nupload/599mcmlw5z.ff
Output for 5.3.24
ff\nupload/vtq0g56p2k.ff
Output for 5.3.23
ff\nupload/5eu4fjtyyi.ff
Output for 5.3.22
ff\nupload/4ii4u8wr4d.ff
Output for 5.3.21
ff\nupload/vkajgjzhwy.ff
Output for 5.3.20
ff\nupload/7i3mscp44c.ff
Output for 5.3.19
ff\nupload/u7lo64h2xg.ff
Output for 5.3.18
ff\nupload/p28yvezcfk.ff
Output for 5.3.17
ff\nupload/ibis8rc1s6.ff
Output for 5.3.16
ff\nupload/0ltvp9ast5.ff
Output for 5.3.15
ff\nupload/uo0hf731no.ff
Output for 5.3.14
ff\nupload/3sc0la2bk3.ff
Output for 5.3.13
ff\nupload/jn3bjsfgbi.ff
Output for 5.3.12
ff\nupload/6qfq6wrcz6.ff
Output for 5.3.11
ff\nupload/av9167d3tf.ff
Output for 5.3.10
ff\nupload/8014pl7q3j.ff
Output for 5.3.9
ff\nupload/rujy8znp9h.ff
Output for 5.3.8
ff\nupload/0v35nkklpm.ff
Output for 5.3.7
ff\nupload/u696juxuvl.ff
Output for 5.3.6
ff\nupload/ahb7wjmdj8.ff
Output for 5.3.5
ff\nupload/5s10lqeaiu.ff
Output for 5.3.4
ff\nupload/mud38s5g1f.ff
Output for 5.3.3
ff\nupload/t7whn2rewx.ff
Output for 5.3.2
ff\nupload/mha3ezityf.ff
Output for 5.3.1
ff\nupload/ohp52dxyh0.ff
Output for 5.3.0
ff\nupload/fm007og6i4.ff
Output for 5.2.17
ff\nupload/rlfxyy5sz7.ff
Output for 5.2.16
ff\nupload/xngo7i6lln.ff
Output for 5.2.15
ff\nupload/y3hmnv9coy.ff
Output for 5.2.14
ff\nupload/f18a40ltcg.ff
Output for 5.2.13
ff\nupload/m3nv56h12g.ff
Output for 5.2.12
ff\nupload/ccvtyc2x1x.ff
Output for 5.2.11
ff\nupload/uiscjcosho.ff
Output for 5.2.10
ff\nupload/x99mxsapxx.ff
Output for 5.2.9
ff\nupload/7vl0nfi7z2.ff
Output for 5.2.8
ff\nupload/kkrt6ynqb1.ff
Output for 5.2.7
ff\nupload/do8ax43brl.ff
Output for 5.2.6
ff\nupload/kepb5shbtv.ff
Output for 5.2.5
ff\nupload/3qle0tcpw1.ff
Output for 5.2.4
ff\nupload/m4sgk7ps35.ff
Output for 5.2.3
ff\nupload/ggz4trvqz8.ff
Output for 5.2.2
ff\nupload/k24jiuv68a.ff
Output for 5.2.1
ff\nupload/ksbr9o0g7i.ff
Output for 5.2.0
ff\nupload/6fnaocfqb4.ff
Output for 5.1.6
ff\nupload/yqvsqulikx.ff
Output for 5.1.5
ff\nupload/k862kdfkrf.ff
Output for 5.1.4
ff\nupload/nbok4s4j18.ff
Output for 5.1.3
ff\nupload/7er60oiov4.ff
Output for 5.1.2
ff\nupload/ry483bdfta.ff
Output for 5.1.1
ff\nupload/ii9axyrlrw.ff
Output for 5.1.0
ff\nupload/24krn2esk4.ff
Output for 5.0.5
ff\nupload/qwnnpz6xnf.ff
Output for 5.0.4
ff\nupload/sbhlmd7xbs.ff
Output for 5.0.3
ff\nupload/f860047x7j.ff
Output for 5.0.2
ff\nupload/pvyohb7fau.ff
Output for 5.0.1
ff\nupload/fn5a60m9ey.ff
Output for 5.0.0
ff\nupload/1xpuhp7vny.ff
Output for 4.4.9
ff\nupload/wemnsm5v7o.ff
Output for 4.4.8
ff\nupload/xt9fm54823.ff
Output for 4.4.7
ff\nupload/39jxyyhlwz.ff
Output for 4.4.6
ff\nupload/64h1tdsivw.ff
Output for 4.4.5
ff\nupload/81klf8sx13.ff
Output for 4.4.4
ff\nupload/7hyziynb0a.ff
Output for 4.4.3
ff\nupload/cr4ckx3dxb.ff
Output for 4.4.2
ff\nupload/4icqpwbqvq.ff
Output for 4.4.1
ff\nupload/c1ysz1u76y.ff
Output for 4.4.0
ff\nupload/vw8ileogrl.ff
Output for 4.3.11
ff\nupload/r74tzse9yd.ff
Output for 4.3.10
ff\nupload/0tqsg4nckg.ff
Output for 4.3.9
ff\nupload/ax88q6gags.ff
Output for 4.3.8
ff\nupload/3w8tmtsmrl.ff
Output for 4.3.7
ff\nupload/cich9ouiop.ff
Output for 4.3.6
ff\nupload/xsd0iqbpql.ff
Output for 4.3.5
ff\nupload/rlhdkzftgg.ff
Output for 4.3.4
ff\nupload/s5ndduidy1.ff
Output for 4.3.3
ff\nupload/xigqnan1ch.ff
Output for 4.3.2
ff\nupload/htw05sadum.ff
Output for 4.3.0 - 4.3.1

Process exited with code 139.