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 upload/suvz8xoujj.ff
Output for 7.0.14
ff upload/s2z63haj2e.ff
Output for 7.0.12
ff upload/hrndh0v76p.ff
Output for 7.0.6
ff upload/nu5rx1da69.ff
Output for 7.0.5
ff upload/d3nq4i6jt9.ff
Output for 7.0.4
ff upload/vsg1h4w4cg.ff
Output for 7.0.3
ff upload/81rzcc5ro7.ff
Output for 7.0.2
ff upload/lxhbzmfot9.ff
Output for 7.0.1
ff upload/6997f0wjzf.ff
Output for 7.0.0
ff upload/ptit7vhgwv.ff
Output for 5.6.28
ff upload/0gpbjgol60.ff
Output for 5.6.21
ff upload/z4lbyp5ryg.ff
Output for 5.6.20
ff upload/sk62obex0q.ff
Output for 5.6.19
ff upload/kcq8aqyr34.ff
Output for 5.6.18
ff upload/a0tpp4hqly.ff
Output for 5.6.17
ff upload/45fnwl3h0m.ff
Output for 5.6.16
ff upload/s9r2vsnelm.ff
Output for 5.6.15
ff upload/2k75gd31mc.ff
Output for 5.6.14
ff upload/pn4vi84gqf.ff
Output for 5.6.13
ff upload/isviulwhev.ff
Output for 5.6.12
ff upload/b6puk9zcpd.ff
Output for 5.6.11
ff upload/2k45xoirbj.ff
Output for 5.6.10
ff upload/dj7ha3h3ie.ff
Output for 5.6.9
ff upload/ehc9ipa9a1.ff
Output for 5.6.8
ff upload/w57llso2wg.ff
Output for 5.5.35
ff upload/69lnm2j0b2.ff
Output for 5.5.34
ff upload/7tuwfklgym.ff
Output for 5.5.33
ff upload/j7s5v84w83.ff
Output for 5.5.32
ff upload/ap1279hg2t.ff
Output for 5.5.31
ff upload/iouxp883bj.ff
Output for 5.5.30
ff upload/7xcrtl3t8o.ff
Output for 5.5.29
ff upload/ad5lgt3kr3.ff
Output for 5.5.28
ff upload/0krlfdei9i.ff
Output for 5.5.27
ff upload/ri88oahqaz.ff
Output for 5.5.26
ff upload/lh29h24mus.ff
Output for 5.5.25
ff upload/3er6jlqq6w.ff
Output for 5.5.24
ff upload/3zl04buglh.ff
Output for 5.4.45
ff upload/4k9gci4xaf.ff
Output for 5.4.44
ff upload/azbcaqdbgo.ff
Output for 5.4.43
ff upload/ha2iunf8fh.ff
Output for 5.4.42
ff upload/uo5qw22n3f.ff
Output for 5.4.41
ff upload/uhikiq5mhf.ff
Output for 5.4.40
ff upload/nrgjvihlh8.ff
Output for 5.4.39
ff upload/gxpc93ugjz.ff
Output for 5.4.38
ff upload/tr2p21moik.ff
Output for 5.4.37
ff upload/cyvwbqoghv.ff
Output for 5.4.36
ff upload/c9lfymjtxw.ff
Output for 5.4.35
ff upload/gwnidgpcs7.ff
Output for 5.4.34
ff upload/tl4xw28gul.ff
Output for 5.4.32
ff upload/gxudrdpxzp.ff
Output for 5.4.31
ff upload/7xcwy1kuvx.ff
Output for 5.4.30
ff upload/5f1b8x7owb.ff
Output for 5.4.29
ff upload/5mobgdofzx.ff
Output for 5.4.28
ff upload/zjeexve1er.ff
Output for 5.4.27
ff upload/13om4ytx39.ff
Output for 5.4.26
ff upload/21zqcv2igw.ff
Output for 5.4.25
ff upload/18o009j701.ff
Output for 5.4.24
ff upload/yz37x7uoar.ff
Output for 5.4.23
ff upload/zx631gp0cj.ff
Output for 5.4.22
ff upload/hptjjluy36.ff
Output for 5.4.21
ff upload/aqsjr1all9.ff
Output for 5.4.20
ff upload/v269rpuqzh.ff
Output for 5.4.19
ff upload/1qa3hvy6iq.ff
Output for 5.4.18
ff upload/lsh5gcvgft.ff
Output for 5.4.17
ff upload/6pxyjw3t3e.ff
Output for 5.4.16
ff upload/a4xzhavq6s.ff
Output for 5.4.15
ff upload/vbamlplrqm.ff
Output for 5.4.14
ff upload/sdeetp4vbq.ff
Output for 5.4.13
ff upload/206mcg8gle.ff
Output for 5.4.12
ff upload/2a3alo5up3.ff
Output for 5.4.11
ff upload/qcla2gize8.ff
Output for 5.4.10
ff upload/1vgqvkyl3t.ff
Output for 5.4.9
ff upload/nfkj2m8jjl.ff
Output for 5.4.8
ff upload/4rsxvm4ff9.ff
Output for 5.4.7
ff upload/bmx971ppnj.ff
Output for 5.4.6
ff upload/2f28xhxdjj.ff
Output for 5.4.5
ff upload/2phrt2yipu.ff
Output for 5.4.4
ff upload/bm0h5chx7h.ff
Output for 5.4.3
ff upload/jl41q9pu6f.ff
Output for 5.4.2
ff upload/i2kgn8oogz.ff
Output for 5.4.1
ff upload/jwxlkvr2pt.ff
Output for 5.4.0
ff upload/a0okim3wgr.ff
Output for 5.3.29
ff upload/sdwn0r7mwg.ff
Output for 5.3.28
ff upload/x2e4795rv2.ff
Output for 5.3.27
ff upload/2y5pf6h0c6.ff
Output for 5.3.26
ff upload/l0klvd4k5i.ff
Output for 5.3.25
ff upload/f40lnsjfoy.ff
Output for 5.3.24
ff upload/zwa8ntodtl.ff
Output for 5.3.23
ff upload/ig6zx1n41m.ff
Output for 5.3.22
ff upload/ymo2ulmo5h.ff
Output for 5.3.21
ff upload/kf6652cqz3.ff
Output for 5.3.20
ff upload/f7wv4cq2gf.ff
Output for 5.3.19
ff upload/ejemuxjl8w.ff
Output for 5.3.18
ff upload/zkuxaglfmz.ff
Output for 5.3.17
ff upload/e0tgczvaul.ff
Output for 5.3.16
ff upload/m6ag85xfsm.ff
Output for 5.3.15
ff upload/he7swust65.ff
Output for 5.3.14
ff upload/4gf5mgm1za.ff
Output for 5.3.13
ff upload/adrxb65gp3.ff
Output for 5.3.12
ff upload/njtczw50ci.ff
Output for 5.3.11
ff upload/5m95xg58cs.ff
Output for 5.3.10
ff upload/x1dhn1fgm3.ff
Output for 5.3.9
ff upload/wly7lun7l2.ff
Output for 5.3.8
ff upload/6sy0w7c1xr.ff
Output for 5.3.7
ff upload/7zr3l1ffg6.ff
Output for 5.3.6
ff upload/roy8gjaif3.ff
Output for 5.3.5
ff upload/6g9vv6thh4.ff
Output for 5.3.4
ff upload/e2ntz2ep1j.ff
Output for 5.3.3
ff upload/6e4jz3l1dl.ff
Output for 5.3.2
ff upload/7ogamcjdfl.ff
Output for 5.3.1
ff upload/8j54rcr7ru.ff
Output for 5.3.0
ff upload/9yhcmr35tf.ff
Output for 5.2.17
ff upload/69at8vdo6q.ff
Output for 5.2.16
ff upload/d38ut35hxw.ff
Output for 5.2.15
ff upload/raw3me2lxx.ff
Output for 5.2.14
ff upload/5gcv44l3ra.ff
Output for 5.2.13
ff upload/iaea3xy2gd.ff
Output for 5.2.12
ff upload/th6mi6u19q.ff
Output for 5.2.11
ff upload/gvw31ch3nc.ff
Output for 5.2.10
ff upload/ypmj66nzdy.ff
Output for 5.2.9
ff upload/95zdfjvpx5.ff
Output for 5.2.8
ff upload/dyubj54y1x.ff
Output for 5.2.7
ff upload/3mqek5b8x3.ff
Output for 5.2.6
ff upload/6l00phz69z.ff
Output for 5.2.5
ff upload/3rmb5n2p84.ff
Output for 5.2.4
ff upload/nqrh62dwa6.ff
Output for 5.2.3
ff upload/3w4qz8dxhp.ff
Output for 5.2.2
ff upload/moycznzsvy.ff
Output for 5.2.1
ff upload/0rmghctw60.ff
Output for 5.2.0
ff upload/eflyrm4tne.ff
Output for 5.1.6
ff upload/cle66qc1vr.ff
Output for 5.1.5
ff upload/mkvhndetp5.ff
Output for 5.1.4
ff upload/2n7lpxgj0h.ff
Output for 5.1.3
ff upload/loo6h2ur70.ff
Output for 5.1.2
ff upload/z9yfaq5m6c.ff
Output for 5.1.1
ff upload/u1fx1yyb7u.ff
Output for 5.1.0
ff upload/d4698uu7sl.ff
Output for 5.0.5
ff upload/enl4uglyvi.ff
Output for 5.0.4
ff upload/sbp7elm1o8.ff
Output for 5.0.3
ff upload/g0tyrzvqua.ff
Output for 5.0.2
ff upload/2pg17cj6ru.ff
Output for 5.0.1
ff upload/fompgcrfir.ff
Output for 5.0.0
ff upload/fx6r7lfb14.ff
Output for 4.4.9
ff upload/ogd3ttzeoh.ff
Output for 4.4.8
ff upload/l2ujj6899t.ff
Output for 4.4.7
ff upload/iwldx583lr.ff
Output for 4.4.6
ff upload/a9a5lk7j5w.ff
Output for 4.4.5
ff upload/al7ncilxfp.ff
Output for 4.4.4
ff upload/48neysey3i.ff
Output for 4.4.3
ff upload/5zax5r4co2.ff
Output for 4.4.2
ff upload/bpb9vp8m8q.ff
Output for 4.4.1
ff upload/aoate0q8z1.ff
Output for 4.4.0
ff upload/z345frarre.ff
Output for 4.3.11
ff upload/77h4seeqq7.ff
Output for 4.3.10
ff upload/nuexrypgw5.ff
Output for 4.3.9
ff upload/5r5pc2vuyn.ff
Output for 4.3.8
ff upload/h3755v9h9n.ff
Output for 4.3.7
ff upload/0z38sgg97j.ff
Output for 4.3.6
ff upload/19v5rqar2v.ff
Output for 4.3.5
ff upload/aizznhy774.ff
Output for 4.3.4
ff upload/kmyfvjfwbw.ff
Output for 4.3.3
ff upload/8zs80j31us.ff
Output for 4.3.2
ff upload/6by9hrvo3o.ff
Output for 4.3.0 - 4.3.1

Process exited with code 139.