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; return makeRandomPath($dir, $ext); } $target_path = makeRandomPathFromFilename("upload", "test.php./../../../../../../../etc/passwd.ff"); echo $target_path; ?>
Output for 7.1.0
ffupload/yunt26r8uj.ff
Output for 7.0.14
ffupload/dle8raqws6.ff
Output for 7.0.10
ffupload/a2wulif923.ff
Output for 7.0.9
ffupload/qao0tuv8ht.ff
Output for 7.0.8
ffupload/vp5pem6s33.ff
Output for 7.0.7
ffupload/z1h9sqo26j.ff
Output for 7.0.6
ffupload/gnvq93uj3n.ff
Output for 7.0.5
ffupload/9mw0zge8h9.ff
Output for 7.0.4
ffupload/oxohts6obd.ff
Output for 7.0.3
ffupload/g5f75n6aui.ff
Output for 7.0.2
ffupload/2uj4cy4n7z.ff
Output for 7.0.1
ffupload/waal2jnike.ff
Output for 7.0.0
ffupload/2tytb2d3cy.ff
Output for hhvm-3.12.0
ffupload/jqcxsrd6fr.ff
Output for hhvm-3.10.0
ffupload/p2kyvlqgf4.ff
Output for 5.6.28
ffupload/10zfp06hbu.ff
Output for 5.6.25
ffupload/jr0waor24o.ff
Output for 5.6.24
ffupload/pccadkehur.ff
Output for 5.6.23
ffupload/8ra4pmgz0k.ff
Output for 5.6.22
ffupload/ejmdfmhxqj.ff
Output for 5.6.21
ffupload/n75wx8d10y.ff
Output for 5.6.20
ffupload/32iux2xjcn.ff
Output for 5.6.19
ffupload/y3fualychm.ff
Output for 5.6.18
ffupload/gox3o2ldth.ff
Output for 5.6.17
ffupload/ltjp3631cd.ff
Output for 5.6.16
ffupload/9sx4x5cnbl.ff
Output for 5.6.15
ffupload/qqjbi1f983.ff
Output for 5.6.14
ffupload/rtn88v4tu5.ff
Output for 5.6.13
ffupload/5aov2f1h0z.ff
Output for 5.6.12
ffupload/99kdsko3by.ff
Output for 5.6.11
ffupload/u4lqwry8zh.ff
Output for 5.6.10
ffupload/itxh1z4nuy.ff
Output for 5.6.9
ffupload/nfe37sje9d.ff
Output for 5.6.8
ffupload/yl06ge84rg.ff
Output for 5.6.7
ffupload/yv4l79jyjf.ff
Output for 5.6.6
ffupload/28wwoi1x8p.ff
Output for 5.6.5
ffupload/p9ycik5j48.ff
Output for 5.6.4
ffupload/7ryb7tkxjn.ff
Output for 5.6.3
ffupload/cpvo8dnsbz.ff
Output for 5.6.2
ffupload/tap8siftwf.ff
Output for 5.6.1
ffupload/h5onw5deet.ff
Output for 5.6.0
ffupload/45knkveba2.ff
Output for 5.5.38
ffupload/fso9ayvj3g.ff
Output for 5.5.37
ffupload/wm04x7a1h1.ff
Output for 5.5.36
ffupload/hcoqnjk0ae.ff
Output for 5.5.35
ffupload/b5lr28wero.ff
Output for 5.5.34
ffupload/0si3wg4hmy.ff
Output for 5.5.33
ffupload/5br6id3ncp.ff
Output for 5.5.32
ffupload/e37qb43wrg.ff
Output for 5.5.31
ffupload/83syeavfjz.ff
Output for 5.5.30
ffupload/gumfivo2lu.ff
Output for 5.5.29
ffupload/xt4nhh9nj9.ff
Output for 5.5.28
ffupload/72j2ln2sno.ff
Output for 5.5.27
ffupload/qunutju97u.ff
Output for 5.5.26
ffupload/6btdnum3nb.ff
Output for 5.5.25
ffupload/ql740ypmas.ff
Output for 5.5.24
ffupload/swdxlcqbq2.ff
Output for 5.5.23
ffupload/58hfy5s19g.ff
Output for 5.5.22
ffupload/t8z9qlwtdg.ff
Output for 5.5.21
ffupload/1grzz4klxn.ff
Output for 5.5.20
ffupload/p8pdaej4sv.ff
Output for 5.5.19
ffupload/k0rit2kgxj.ff
Output for 5.5.18
ffupload/ps9sm9engj.ff
Output for 5.5.16
ffupload/4d1eu5ef8c.ff
Output for 5.5.15
ffupload/6afesb81q6.ff
Output for 5.5.14
ffupload/9ms4p8r7jk.ff
Output for 5.5.13
ffupload/g524jk660p.ff
Output for 5.5.12
ffupload/tlupd1sp2y.ff
Output for 5.5.11
ffupload/2kv02xfqp8.ff
Output for 5.5.10
ffupload/se1k054pb6.ff
Output for 5.5.9
ffupload/u29rq0s6y8.ff
Output for 5.5.8
ffupload/u3bsnmlo8j.ff
Output for 5.5.7
ffupload/njz6rmfkxc.ff
Output for 5.5.6
ffupload/8j506c79xl.ff
Output for 5.5.5
ffupload/kq9rolp1e7.ff
Output for 5.5.4
ffupload/yt2zj7eo24.ff
Output for 5.5.3
ffupload/2c846pkaxy.ff
Output for 5.5.2
ffupload/v4anx0vvqu.ff
Output for 5.5.1
ffupload/11aqi4ozob.ff
Output for 5.5.0
ffupload/xkqi0u9iwn.ff
Output for 5.4.45
ffupload/3rp0lcqarf.ff
Output for 5.4.44
ffupload/5v7gj5yo8o.ff
Output for 5.4.43
ffupload/ds9wzbjlh4.ff
Output for 5.4.42
ffupload/eltwlrlnnf.ff
Output for 5.4.41
ffupload/fwf0u9h5h5.ff
Output for 5.4.40
ffupload/nt5phcjlkv.ff
Output for 5.4.39
ffupload/0n147lod4x.ff
Output for 5.4.38
ffupload/w4vioscwxy.ff
Output for 5.4.37
ffupload/zkfhwvc47b.ff
Output for 5.4.36
ffupload/oez7sbjb28.ff
Output for 5.4.35
ffupload/ara15et77a.ff
Output for 5.4.34
ffupload/6httbg7bwe.ff
Output for 5.4.32
ffupload/jokmrzq095.ff
Output for 5.4.31
ffupload/g79qk4xwr6.ff
Output for 5.4.30
ffupload/36m8msccja.ff
Output for 5.4.29
ffupload/uyoxdeh8om.ff
Output for 5.4.28
ffupload/kydrhupc3o.ff
Output for 5.4.27
ffupload/ombyuhk50q.ff
Output for 5.4.26
ffupload/3fmse8zqee.ff
Output for 5.4.25
ffupload/arb4ajqgqm.ff
Output for 5.4.24
ffupload/45snke3gm0.ff
Output for 5.4.23
ffupload/jadelqgpd0.ff
Output for 5.4.22
ffupload/k8j1vsmhjn.ff
Output for 5.4.21
ffupload/pmqoxklwes.ff
Output for 5.4.20
ffupload/yqgoqh70pv.ff
Output for 5.4.19
ffupload/n2jmqzd0wp.ff
Output for 5.4.18
ffupload/5y9xysxspb.ff
Output for 5.4.17
ffupload/elylbmyu8s.ff
Output for 5.4.16
ffupload/y6z5ckq1rb.ff
Output for 5.4.15
ffupload/s3arwjrzaf.ff
Output for 5.4.14
ffupload/rxyg90a65c.ff
Output for 5.4.13
ffupload/7bu9x9qgwe.ff
Output for 5.4.12
ffupload/6oyh6kmt1u.ff
Output for 5.4.11
ffupload/pdhdl90vjw.ff
Output for 5.4.10
ffupload/rl9l4bhkz6.ff
Output for 5.4.9
ffupload/6hzev1clng.ff
Output for 5.4.8
ffupload/nha4hr3lz2.ff
Output for 5.4.7
ffupload/rglh029d8v.ff
Output for 5.4.6
ffupload/sz7h1m2o2u.ff
Output for 5.4.5
ffupload/jg9d4dqc00.ff
Output for 5.4.4
ffupload/n4i0m0yd5k.ff
Output for 5.4.3
ffupload/ibfzwlgc6y.ff
Output for 5.4.2
ffupload/uhhppxqxnr.ff
Output for 5.4.1
ffupload/yqxhp6n6hy.ff
Output for 5.4.0
ffupload/861qzc2ie2.ff
Output for 5.3.29
ffupload/7mm6j01s6y.ff
Output for 5.3.28
ffupload/yy49a8katz.ff
Output for 5.3.27
ffupload/cqqiz7x68k.ff
Output for 5.3.26
ffupload/lh5nk854yr.ff
Output for 5.3.25
ffupload/47p7ezbwyu.ff
Output for 5.3.24
ffupload/ac5o99rj8h.ff
Output for 5.3.23
ffupload/6spkse9z1t.ff
Output for 5.3.22
ffupload/s4ygbju5iq.ff
Output for 5.3.21
ffupload/g9mkq26mds.ff
Output for 5.3.20
ffupload/tm0sbvp2gi.ff
Output for 5.3.19
ffupload/8fu9c5jmsr.ff
Output for 5.3.18
ffupload/hmlob3p9m2.ff
Output for 5.3.17
ffupload/rwusk6aehu.ff
Output for 5.3.16
ffupload/0j7rhoi4dt.ff
Output for 5.3.15
ffupload/520jyodv6i.ff
Output for 5.3.14
ffupload/ep9tzxsprg.ff
Output for 5.3.13
ffupload/662pgow2ij.ff
Output for 5.3.12
ffupload/k39jwkmyfm.ff
Output for 5.3.11
ffupload/ewhj7upu7b.ff
Output for 5.3.10
ffupload/6c2jazctix.ff
Output for 5.3.9
ffupload/rt1x7qjm94.ff
Output for 5.3.8
ffupload/efpx69g107.ff
Output for 5.3.7
ffupload/pu98msbq9r.ff
Output for 5.3.6
ffupload/lq7098g9m3.ff
Output for 5.3.5
ffupload/3w8z6y7dca.ff
Output for 5.3.4
ffupload/p57r0yio60.ff
Output for 5.3.3
ffupload/450s8dttap.ff
Output for 5.3.2
ffupload/jqkcaddm9c.ff
Output for 5.3.1
ffupload/29cyet25ka.ff
Output for 5.3.0
ffupload/3d6i8olxj2.ff
Output for 5.2.17
ffupload/xvzhwjysm8.ff
Output for 5.2.16
ffupload/bg88jzbvvv.ff
Output for 5.2.15
ffupload/3hbaplsrd0.ff
Output for 5.2.14
ffupload/qmrd24o6er.ff
Output for 5.2.13
ffupload/yxo1acmll9.ff
Output for 5.2.12
ffupload/jgqbvvyx6a.ff
Output for 5.2.11
ffupload/fb7ww7ly80.ff
Output for 5.2.10
ffupload/on2zxehg0g.ff
Output for 5.2.9
ffupload/3xhoqd1nys.ff
Output for 5.2.8
ffupload/6r766hf50q.ff
Output for 5.2.7
ffupload/mbflc2ezqv.ff
Output for 5.2.6
ffupload/i485lj26p8.ff
Output for 5.2.5
ffupload/fm4ypbu7po.ff
Output for 5.2.4
ffupload/32hjqvfld3.ff
Output for 5.2.3
ffupload/un4dgzqehh.ff
Output for 5.2.2
ffupload/u7oc3agync.ff
Output for 5.2.1
ffupload/hitb8a1iuc.ff
Output for 5.2.0
ffupload/sf0v2u9dfq.ff
Output for 5.1.6
ffupload/9iud1r0tgr.ff
Output for 5.1.5
ffupload/86w8gemd41.ff
Output for 5.1.4
ffupload/4o9me1ptgv.ff
Output for 5.1.3
ffupload/52csyh51ip.ff
Output for 5.1.2
ffupload/l1pa84bk19.ff
Output for 5.1.1
ffupload/tbhq14601z.ff
Output for 5.1.0
ffupload/r2xfn975cw.ff
Output for 5.0.5
ffupload/42lisxc3b4.ff
Output for 5.0.4
ffupload/bpb1uv2vsd.ff
Output for 5.0.3
ffupload/aly9vr95kf.ff
Output for 5.0.2
ffupload/hpo5u7magt.ff
Output for 5.0.1
ffupload/81qfqn2eep.ff
Output for 5.0.0
ffupload/6f2bg7f43w.ff
Output for 4.4.9
ffupload/jri1xhhzzt.ff
Output for 4.4.8
ffupload/kbf9khy4ao.ff
Output for 4.4.7
ffupload/asszihrqxh.ff
Output for 4.4.6
ffupload/quepxuqtu6.ff
Output for 4.4.5
ffupload/ck395nguso.ff
Output for 4.4.4
ffupload/eompnaw6dq.ff
Output for 4.4.3
ffupload/4bawexiqwv.ff
Output for 4.4.2
ffupload/8txalw55yr.ff
Output for 4.4.1
ffupload/n4mtu1cp4p.ff
Output for 4.4.0
ffupload/qvvoyctvad.ff
Output for 4.3.11
ffupload/hqc2mknaua.ff
Output for 4.3.10
ffupload/gi0z1jvxh5.ff
Output for 4.3.9
ffupload/3uln6i16t6.ff
Output for 4.3.8
ffupload/0h03i7ovk1.ff
Output for 4.3.7
ffupload/fyc6sfnyeu.ff
Output for 4.3.6
ffupload/bxpookbrkc.ff
Output for 4.3.5
ffupload/rdwwsie9du.ff
Output for 4.3.4
ffupload/adtlsj47i0.ff
Output for 4.3.3
ffupload/ni1afx9yqv.ff
Output for 4.3.2
ffupload/64djvldvwd.ff
Output for 4.3.0 - 4.3.1

Process exited with code 139.