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"); echo $target_path; ?>
Output for 7.1.0
upload/vd2z94k4md.
Output for 7.0.14
upload/f7mahi24as.
Output for 7.0.10
upload/7tvug6g1dx.
Output for 7.0.9
upload/1zhejqwqdi.
Output for 7.0.8
upload/fjpyu7s2jc.
Output for 7.0.7
upload/xsebujqeut.
Output for 7.0.6
upload/zdifuhexns.
Output for 7.0.5
upload/5znvvdy9mf.
Output for 7.0.4
upload/1mo31f9geu.
Output for 7.0.3
upload/sknk5lwdhw.
Output for 7.0.2
upload/1gru55x8za.
Output for 7.0.1
upload/vkrn8sww2e.
Output for 7.0.0
upload/6trwe5fyu7.
Output for hhvm-3.12.0
upload/jtjffqzio5.
Output for hhvm-3.10.0
upload/y8pu89uahm.
Output for 5.6.28
upload/tv3y19texd.
Output for 5.6.25
upload/gnwqk04wp6.
Output for 5.6.24
upload/sqdsl7x19p.
Output for 5.6.23
upload/fo6x9ujgbc.
Output for 5.6.22
upload/9w80kddkbn.
Output for 5.6.21
upload/lo2wlpzonr.
Output for 5.6.20
upload/c8xkznd642.
Output for 5.6.19
upload/gbrg2wee4b.
Output for 5.6.18
upload/4hmynzl0ac.
Output for 5.6.17
upload/bezwpais2t.
Output for 5.6.16
upload/vq0hfie1lm.
Output for 5.6.15
upload/1agxsp71w6.
Output for 5.6.14
upload/xhasnwhp1c.
Output for 5.6.13
upload/zb31lfmf0j.
Output for 5.6.12
upload/um18510u6t.
Output for 5.6.11
upload/m5vqdxd37q.
Output for 5.6.10
upload/pshsgxzkyv.
Output for 5.6.9
upload/8av5v7z8e8.
Output for 5.6.8
upload/f0rn7wriae.
Output for 5.6.7
upload/ibfspwpih1.
Output for 5.6.6
upload/j6rc6v2l6c.
Output for 5.6.5
upload/tjip3ezayn.
Output for 5.6.4
upload/pzjs453pli.
Output for 5.6.3
upload/yd4xwm4dro.
Output for 5.6.2
upload/vnwzgjkswd.
Output for 5.6.1
upload/5kxg6h7rul.
Output for 5.6.0
upload/ofn7qy4anz.
Output for 5.5.38
upload/b4k6d3b2i3.
Output for 5.5.37
upload/l57ngzzoyk.
Output for 5.5.36
upload/sykhfjb88f.
Output for 5.5.35
upload/y9j0vrjlp3.
Output for 5.5.34
upload/wvgpzldy55.
Output for 5.5.33
upload/9lr5u6528d.
Output for 5.5.32
upload/smmhdmx16l.
Output for 5.5.31
upload/98d3ns4i0r.
Output for 5.5.30
upload/o3fw8vmplk.
Output for 5.5.29
upload/x691s9r1jn.
Output for 5.5.28
upload/7ncmr1le90.
Output for 5.5.27
upload/ophfa21vfk.
Output for 5.5.26
upload/04s9mg0sri.
Output for 5.5.25
upload/fcf1386ozs.
Output for 5.5.24
upload/7boz23x314.
Output for 5.5.23
upload/vfb64oiuye.
Output for 5.5.22
upload/gedfnnwrwu.
Output for 5.5.21
upload/em0usvx1q0.
Output for 5.5.20
upload/eyjba2ayxp.
Output for 5.5.19
upload/lr80bhin54.
Output for 5.5.18
upload/z8a4zzos73.
Output for 5.5.16
upload/p1qderctgh.
Output for 5.5.15
upload/hfuyrtmut7.
Output for 5.5.14
upload/dbgwxsrvqp.
Output for 5.5.13
upload/zw4bysk84u.
Output for 5.5.12
upload/kcyk7wbkop.
Output for 5.5.11
upload/suczoi5gz1.
Output for 5.5.10
upload/19tylvzqv7.
Output for 5.5.9
upload/0gwfjazhf9.
Output for 5.5.8
upload/yiuvfp42pn.
Output for 5.5.7
upload/dd49nnlgsi.
Output for 5.5.6
upload/nxfb822mw2.
Output for 5.5.5
upload/5demkopeyd.
Output for 5.5.4
upload/4gme947l5h.
Output for 5.5.3
upload/mr8jb2k70t.
Output for 5.5.2
upload/kessqox595.
Output for 5.5.1
upload/oe8b5lcpfy.
Output for 5.5.0
upload/o5a0w8ebj7.
Output for 5.4.45
upload/4j4jlhgfp5.
Output for 5.4.44
upload/tnjupl3lvf.
Output for 5.4.43
upload/13rg0r4vpo.
Output for 5.4.42
upload/enre4ky9v5.
Output for 5.4.41
upload/ltlvstp39q.
Output for 5.4.40
upload/kvknjxkf3r.
Output for 5.4.39
upload/5yo7rlpgmv.
Output for 5.4.38
upload/sy1vvasn0a.
Output for 5.4.37
upload/cq56sk0d97.
Output for 5.4.36
upload/g3dotvjiwk.
Output for 5.4.35
upload/gqstdrtveq.
Output for 5.4.34
upload/at41r54b2v.
Output for 5.4.32
upload/v3x14jedj7.
Output for 5.4.31
upload/ydsaslulh7.
Output for 5.4.30
upload/4ro0rpv2q8.
Output for 5.4.29
upload/7apvklh0ve.
Output for 5.4.28
upload/d3bxkj97ln.
Output for 5.4.27
upload/6yzxfodkmg.
Output for 5.4.26
upload/uggie9m0ex.
Output for 5.4.25
upload/uqcfzclrez.
Output for 5.4.24
upload/8k28d9clj4.
Output for 5.4.23
upload/apt71xjjdi.
Output for 5.4.22
upload/wqmajlf1km.
Output for 5.4.21
upload/0r6zkutrr9.
Output for 5.4.20
upload/nfcg9m8s0p.
Output for 5.4.19
upload/30ovkrmj04.
Output for 5.4.18
upload/dgfjmz5ruz.
Output for 5.4.17
upload/gxfxodptul.
Output for 5.4.16
upload/2npees5fe2.
Output for 5.4.15
upload/k80t1b13dd.
Output for 5.4.14
upload/4qqiw4eswu.
Output for 5.4.13
upload/u4dnd39l0u.
Output for 5.4.12
upload/he41aws0xs.
Output for 5.4.11
upload/b46f0x288y.
Output for 5.4.10
upload/cxuu1qozms.
Output for 5.4.9
upload/mcml1n3kxl.
Output for 5.4.8
upload/wxt0gpsbq0.
Output for 5.4.7
upload/igm2if9gud.
Output for 5.4.6
upload/5emhup4xfa.
Output for 5.4.5
upload/y0x7flv1mr.
Output for 5.4.4
upload/nu37swf54w.
Output for 5.4.3
upload/s10pwo2k81.
Output for 5.4.2
upload/9ll0ehfm6y.
Output for 5.4.1
upload/45t6lbafkr.
Output for 5.4.0
upload/zq1ufn2wft.
Output for 5.3.29
upload/lb86uo4pe8.
Output for 5.3.28
upload/v5xzkwd96z.
Output for 5.3.27
upload/tlpmcnq7vn.
Output for 5.3.26
upload/aqz22t5jmf.
Output for 5.3.25
upload/cokq3rn5hh.
Output for 5.3.24
upload/f58v3cluel.
Output for 5.3.23
upload/h2g8es93l0.
Output for 5.3.22
upload/1351o2i2rh.
Output for 5.3.21
upload/6lm1qlmha8.
Output for 5.3.20
upload/z1bneniuei.
Output for 5.3.19
upload/qvr83hjrhy.
Output for 5.3.18
upload/cmnphwyzhn.
Output for 5.3.17
upload/dmqnxafhft.
Output for 5.3.16
upload/pxb94cxgpg.
Output for 5.3.15
upload/wf6qvb7fdp.
Output for 5.3.14
upload/iemgms1cfe.
Output for 5.3.13
upload/b4itk5csrf.
Output for 5.3.12
upload/ykyay1bhzj.
Output for 5.3.11
upload/gzypaf1div.
Output for 5.3.10
upload/yphjw503k7.
Output for 5.3.9
upload/q3970oayfi.
Output for 5.3.8
upload/lirot2h8q3.
Output for 5.3.7
upload/b5c4x34isc.
Output for 5.3.6
upload/zzj1h5itmo.
Output for 5.3.5
upload/rq1jro4mh2.
Output for 5.3.4
upload/e59tdrzr8m.
Output for 5.3.3
upload/p4xf1ss5hm.
Output for 5.3.2
upload/kecpxx6ucu.
Output for 5.3.1
upload/faj9h12o59.
Output for 5.3.0
upload/ywsbkcuru6.
Output for 5.2.17
upload/2k2e5f9lrn.
Output for 5.2.16
upload/gknq8pretw.
Output for 5.2.15
upload/1idptzj554.
Output for 5.2.14
upload/empj8kwadu.
Output for 5.2.13
upload/3wjtetj5vs.
Output for 5.2.12
upload/ne1np1ocww.
Output for 5.2.11
upload/evtsi2bcfo.
Output for 5.2.10
upload/mtagwo7opv.
Output for 5.2.9
upload/54yocvvulp.
Output for 5.2.8
upload/s5wu7yhhsz.
Output for 5.2.7
upload/q7vwqt85ql.
Output for 5.2.6
upload/pac18hmusy.
Output for 5.2.5
upload/0ls9ykzmrd.
Output for 5.2.4
upload/rqpr1n2mjn.
Output for 5.2.3
upload/zx0v54atvq.
Output for 5.2.2
upload/ad1ngivd22.
Output for 5.2.1
upload/c99yclqw5b.
Output for 5.2.0
upload/4p5173sbac.
Output for 5.1.6
upload/dex3uqr4jm.
Output for 5.1.5
upload/0ewh292h1q.
Output for 5.1.4
upload/82anm4gic4.
Output for 5.1.3
upload/nmy982dtnc.
Output for 5.1.2
upload/r7agqx4ug4.
Output for 5.1.1
upload/k5nrn1jg6d.
Output for 5.1.0
upload/r904uvpaed.
Output for 5.0.5
upload/uqquifegid.
Output for 5.0.4
upload/ysp1l2zlny.
Output for 5.0.3
upload/axc1jb1712.
Output for 5.0.2
upload/jkvdbl5fu6.
Output for 5.0.1
upload/olrjtvlsbk.
Output for 5.0.0
upload/qtwuy9vmm2.
Output for 4.4.9
upload/b9f0b7u9w4.
Output for 4.4.8
upload/ubhz31yml9.
Output for 4.4.7
upload/7p02xa3faz.
Output for 4.4.6
upload/j5gbmpdyiz.
Output for 4.4.5
upload/02bt7jtay8.
Output for 4.4.4
upload/7ze7fkojmx.
Output for 4.4.3
upload/zw7atabtyp.
Output for 4.4.2
upload/x41tfuszrs.
Output for 4.4.1
upload/2c02k6lh7l.
Output for 4.4.0
upload/0lmhf6pt1z.
Output for 4.3.11
upload/2bkqimjw3r.
Output for 4.3.10
upload/g77ka6f06v.
Output for 4.3.9
upload/i5is4ge392.
Output for 4.3.8
upload/wesuldk7ne.
Output for 4.3.7
upload/xon6nlul0e.
Output for 4.3.6
upload/jv5x707wtr.
Output for 4.3.5
upload/5gm9zyyxu5.
Output for 4.3.4
upload/c9dpnz6z4r.
Output for 4.3.3
upload/akd78detdu.
Output for 4.3.2
upload/bz1ucjo24m.
Output for 4.3.0 - 4.3.1

Process exited with code 139.