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"); echo $target_path; ?>
Output for 7.1.0
upload/6wfw5m1sar.
Output for 7.0.14
upload/6lkq1ml1hx.
Output for 7.0.12
upload/9iinq620q1.
Output for 7.0.6
upload/3lqk0vdpgt.
Output for 7.0.5
upload/e5zv4ifjuq.
Output for 7.0.4
upload/1y4qlz5vnj.
Output for 7.0.3
upload/dnrfdiidar.
Output for 7.0.2
upload/gjcu4m49nl.
Output for 7.0.1
upload/60ibmk9qgm.
Output for 7.0.0
upload/fpqp6lpks5.
Output for hhvm-3.12.0
upload/rdh2opsfnf.
Output for hhvm-3.10.0
upload/87dlqpauhk.
Output for 5.6.28
upload/mw18co5rem.
Output for 5.6.21
upload/we8vaq7osp.
Output for 5.6.20
upload/vvopfvyjdx.
Output for 5.6.19
upload/l4znn8w4zl.
Output for 5.6.18
upload/ct1e0s735m.
Output for 5.6.17
upload/h8897pcavq.
Output for 5.6.16
upload/0jjlhubijz.
Output for 5.6.15
upload/b4n5aq98rp.
Output for 5.6.14
upload/zzj3dfxcqq.
Output for 5.6.13
upload/jhu053oe23.
Output for 5.6.12
upload/6f7fsfmp6r.
Output for 5.6.11
upload/7js76yjdf0.
Output for 5.6.10
upload/fttuct481u.
Output for 5.6.9
upload/03nfvapil5.
Output for 5.6.8
upload/6n0w28hlcy.
Output for 5.6.7
upload/temu7s0w1q.
Output for 5.5.35
upload/ilakm6f5sw.
Output for 5.5.34
upload/ri0swgpy59.
Output for 5.5.33
upload/u71yximlu7.
Output for 5.5.32
upload/407bie3q7f.
Output for 5.5.31
upload/txm6guqb6t.
Output for 5.5.30
upload/mr9qrctorq.
Output for 5.5.29
upload/y78kxcdgyb.
Output for 5.5.28
upload/hmteiyqukr.
Output for 5.5.27
upload/29qjlzuniw.
Output for 5.5.26
upload/gknofpdayl.
Output for 5.5.25
upload/z9eskcv0wa.
Output for 5.5.24
upload/rs8mz304pv.
Output for 5.4.45
upload/p26ynfdxpo.
Output for 5.4.44
upload/khpwmhi1og.
Output for 5.4.43
upload/hkhdp9zg2z.
Output for 5.4.42
upload/wo9v4xxftu.
Output for 5.4.41
upload/9qkkbezmdy.
Output for 5.4.40
upload/ewyqlue8za.
Output for 5.4.39
upload/xifpn5dn9i.
Output for 5.4.38
upload/nidper8tdq.
Output for 5.4.37
upload/njg9r7auuu.
Output for 5.4.36
upload/wclzoj8b8w.
Output for 5.4.35
upload/e99jrcobs1.
Output for 5.4.34
upload/yuuwxlut1m.
Output for 5.4.32
upload/eqwamgdmoi.
Output for 5.4.31
upload/px448pqhqg.
Output for 5.4.30
upload/3s2gs9ivog.
Output for 5.4.29
upload/7l0pz64ml2.
Output for 5.4.28
upload/qe9yeztau9.
Output for 5.4.27
upload/dtstj933n2.
Output for 5.4.26
upload/kbml8bexg3.
Output for 5.4.25
upload/do9ow2oco3.
Output for 5.4.24
upload/gx5q0mzbug.
Output for 5.4.23
upload/r5buc2w40i.
Output for 5.4.22
upload/c8ltqix16w.
Output for 5.4.21
upload/ly7wwcceha.
Output for 5.4.20
upload/eihoh8huh2.
Output for 5.4.19
upload/gybsb12epb.
Output for 5.4.18
upload/8zh9ijghmy.
Output for 5.4.17
upload/y2bfmj8b3c.
Output for 5.4.16
upload/2uq7ounqmv.
Output for 5.4.15
upload/h6inyx47r5.
Output for 5.4.14
upload/vpwspe6wg5.
Output for 5.4.13
upload/mcu6eotb57.
Output for 5.4.12
upload/k3wre22vh1.
Output for 5.4.11
upload/px6hk79m0t.
Output for 5.4.10
upload/ua9rtssjuc.
Output for 5.4.9
upload/hs7g8jxrg5.
Output for 5.4.8
upload/ii3qv3x5rd.
Output for 5.4.7
upload/4kb033yao9.
Output for 5.4.6
upload/ne9d3kvujj.
Output for 5.4.5
upload/hvrvx1iba1.
Output for 5.4.4
upload/e7m5qf4xdt.
Output for 5.4.3
upload/mdmg89tkjw.
Output for 5.4.2
upload/obnd7pfuco.
Output for 5.4.1
upload/frag96hy2x.
Output for 5.4.0
upload/56av181egf.
Output for 5.3.29
upload/jy7xhxtezb.
Output for 5.3.28
upload/8lqsj4iidx.
Output for 5.3.27
upload/43yucooy41.
Output for 5.3.26
upload/uhtu8jqx03.
Output for 5.3.25
upload/kedlljr1y4.
Output for 5.3.24
upload/blznwul0s3.
Output for 5.3.23
upload/05ac0k0lq0.
Output for 5.3.22
upload/lqh656cch0.
Output for 5.3.21
upload/igtdpqqug0.
Output for 5.3.20
upload/4n9t7ip2lq.
Output for 5.3.19
upload/bhk947w33u.
Output for 5.3.18
upload/gmi3h9asyq.
Output for 5.3.17
upload/6wrev7v2o8.
Output for 5.3.16
upload/cvkn3cm4k9.
Output for 5.3.15
upload/ufd7yt63qm.
Output for 5.3.14
upload/qhb6tpj2m7.
Output for 5.3.13
upload/8bx0f2b5uo.
Output for 5.3.12
upload/v794ev0873.
Output for 5.3.11
upload/e5utiuheae.
Output for 5.3.10
upload/ir7i9k9hwd.
Output for 5.3.9
upload/qx4v60ur0r.
Output for 5.3.8
upload/t454n9pwmk.
Output for 5.3.7
upload/mwcgiyex6r.
Output for 5.3.6
upload/jkeqi1g3rr.
Output for 5.3.5
upload/l40agjujyk.
Output for 5.3.4
upload/c633gnq2fi.
Output for 5.3.3
upload/49tgd55fl0.
Output for 5.3.2
upload/z3r271w4b8.
Output for 5.3.1
upload/nghdi0vd80.
Output for 5.3.0
upload/gp4wjbhhs7.
Output for 5.2.17
upload/q8daqhoea6.
Output for 5.2.16
upload/sneascri61.
Output for 5.2.15
upload/bj2fh1crgy.
Output for 5.2.14
upload/a40ms80bvt.
Output for 5.2.13
upload/gxm0xkye01.
Output for 5.2.12
upload/g47kp1zmmx.
Output for 5.2.11
upload/tpslf8xdt3.
Output for 5.2.10
upload/tfyh03fjaf.
Output for 5.2.9
upload/iigkkz99wv.
Output for 5.2.8
upload/nrmsz2ixrs.
Output for 5.2.7
upload/b48rtt6kpk.
Output for 5.2.6
upload/7rhawum15z.
Output for 5.2.5
upload/620hwwehev.
Output for 5.2.4
upload/5ms868w29t.
Output for 5.2.3
upload/0de8b6v36v.
Output for 5.2.2
upload/srlx2xscv4.
Output for 5.2.1
upload/w8j98g8wnz.
Output for 5.2.0
upload/78wphkd7u5.
Output for 5.1.6
upload/p4pzzowtyf.
Output for 5.1.5
upload/8wft3cv8bg.
Output for 5.1.4
upload/77fcil7vk3.
Output for 5.1.3
upload/zkp7iw9m4w.
Output for 5.1.2
upload/gcz6vjyk97.
Output for 5.1.1
upload/uman3xov1n.
Output for 5.1.0
upload/6l39v50oda.
Output for 5.0.5
upload/x3zuzqmttu.
Output for 5.0.4
upload/ek7utio4e5.
Output for 5.0.3
upload/dm2qt3lq91.
Output for 5.0.2
upload/7lc9dwd7bg.
Output for 5.0.1
upload/2puhxcgle9.
Output for 5.0.0
upload/xw60xysyyp.
Output for 4.4.9
upload/us5gc9cyjt.
Output for 4.4.8
upload/jz3nqr94m2.
Output for 4.4.7
upload/av55svlk53.
Output for 4.4.6
upload/btgoap8p3k.
Output for 4.4.5
upload/vsxges60mr.
Output for 4.4.4
upload/qm9vpyuf2d.
Output for 4.4.3
upload/athpkgmd4g.
Output for 4.4.2
upload/oa3dm8zru6.
Output for 4.4.1
upload/5nys7f5f0c.
Output for 4.4.0
upload/pwvta4bxex.
Output for 4.3.11
upload/iine86m2rp.
Output for 4.3.10
upload/l4i9eb1amf.
Output for 4.3.9
upload/g0hu7zqd9f.
Output for 4.3.8
upload/rd7dibrz73.
Output for 4.3.7
upload/36ddz40y6h.
Output for 4.3.6
upload/20cej932p4.
Output for 4.3.5
upload/3kftnh9mnq.
Output for 4.3.4
upload/bccu2adt6z.
Output for 4.3.3
upload/hkpq1bj8r3.
Output for 4.3.2
upload/0sxekb7j1f.
Output for 4.3.0 - 4.3.1

Process exited with code 139.