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); return makeRandomPath($dir, $ext); } $target_path = makeRandomPathFromFilename("upload", "test.php./../../../../../../../etc/passwd"); echo $target_path; ?>
Output for 7.1.0
upload/3k1ctbjzhl.
Output for 7.0.14
upload/gjb0cwk9yo.
Output for 7.0.11
upload/v4i0u7dowc.
Output for 7.0.10
upload/be5hnlqjqe.
Output for 7.0.9
upload/msvs7lguou.
Output for 7.0.8
upload/a6poh4hqco.
Output for 7.0.7
upload/qhpi06lju2.
Output for 7.0.6
upload/zqk0msppoy.
Output for 7.0.5
upload/1goa6ymmgs.
Output for 7.0.4
upload/heijximzkq.
Output for 7.0.3
upload/a53ew87o1d.
Output for 7.0.2
upload/26ueqapzq0.
Output for 7.0.1
upload/pv3qjmt0w9.
Output for 7.0.0
upload/fvix5o4dp4.
Output for hhvm-3.13.2
upload/bk861v4kbb.
Output for hhvm-3.12.0
upload/cy1lkpswzp.
Output for hhvm-3.10.0
upload/lzegw23chv.
Output for 5.6.28
upload/45udl8e2hh.
Output for 5.6.26
upload/fiwk0bk4o7.
Output for 5.6.25
upload/os7rakh9by.
Output for 5.6.24
upload/4dn8thqh2n.
Output for 5.6.23
upload/t7cp2vf5rc.
Output for 5.6.22
upload/1fx7cvgk4s.
Output for 5.6.21
upload/3ogexnb5hr.
Output for 5.6.20
upload/pycp09mwn9.
Output for 5.6.19
upload/hxocacbrdb.
Output for 5.6.18
upload/vw2f4fwhe4.
Output for 5.6.17
upload/ebsml2icjj.
Output for 5.6.16
upload/5wbvc2f774.
Output for 5.6.15
upload/6u1twe98yx.
Output for 5.6.14
upload/zkio1su8tm.
Output for 5.6.13
upload/0eajnin9ui.
Output for 5.6.12
upload/u8tm12j5jf.
Output for 5.6.11
upload/ht9mbdhqld.
Output for 5.6.10
upload/0f7233t9l1.
Output for 5.6.9
upload/8gapibrypy.
Output for 5.6.8
upload/wx0n7e3m5c.
Output for 5.6.7
upload/upmehhf0wy.
Output for 5.6.6
upload/0ikl0qgiy7.
Output for 5.6.5
upload/uriv29lhhz.
Output for 5.6.4
upload/jtzivd41qk.
Output for 5.6.3
upload/s67cd9shpp.
Output for 5.6.2
upload/o5u348h8o7.
Output for 5.6.1
upload/om1kw4514m.
Output for 5.6.0
upload/w2ig1iv9g4.
Output for 5.5.38
upload/y126xbwvzj.
Output for 5.5.37
upload/l8fn0pl7os.
Output for 5.5.36
upload/c2j9p362mp.
Output for 5.5.35
upload/qnfggqeoqg.
Output for 5.5.34
upload/v7d55iyauf.
Output for 5.5.33
upload/l9xlpi8j1u.
Output for 5.5.32
upload/ra1q3ro65i.
Output for 5.5.31
upload/6990ndr3vb.
Output for 5.5.30
upload/b3pfwegno6.
Output for 5.5.29
upload/kjez7mm7tf.
Output for 5.5.28
upload/ltuhakar5k.
Output for 5.5.27
upload/8wfusg1lh3.
Output for 5.5.26
upload/em6lf0djm6.
Output for 5.5.25
upload/ohfzdf7siw.
Output for 5.5.24
upload/05mqluv7mg.
Output for 5.5.23
upload/qj00kngl7l.
Output for 5.5.22
upload/afoklxa6mp.
Output for 5.5.21
upload/u8ybxve9cz.
Output for 5.5.20
upload/l1kj9y00p5.
Output for 5.5.19
upload/w8vtsw53aj.
Output for 5.5.18
upload/7a45zb3p0c.
Output for 5.5.16
upload/5vzij2n7v8.
Output for 5.5.15
upload/hae9s2gvwe.
Output for 5.5.14
upload/zix7jlpkx2.
Output for 5.5.13
upload/6fv4xgjhte.
Output for 5.5.12
upload/3zzdcgz9pa.
Output for 5.5.11
upload/n6pkkvxmol.
Output for 5.5.10
upload/ffvgwgm88y.
Output for 5.5.9
upload/qnwly7tk07.
Output for 5.5.8
upload/3e5gbpesv9.
Output for 5.5.7
upload/vm3h2qrdgw.
Output for 5.5.6
upload/18nz15jtho.
Output for 5.5.5
upload/4174s8f71s.
Output for 5.5.4
upload/ey4mreiqzl.
Output for 5.5.3
upload/4593ylv5vo.
Output for 5.5.2
upload/bn09jekmco.
Output for 5.5.1
upload/zthal4czw6.
Output for 5.5.0
upload/pi4ieqf3d0.
Output for 5.4.45
upload/13em5vxe3m.
Output for 5.4.44
upload/iqfdqpyidx.
Output for 5.4.43
upload/8ezrw1sgck.
Output for 5.4.42
upload/qsrmjhph2s.
Output for 5.4.41
upload/8ijnlmrfjb.
Output for 5.4.40
upload/gv4e5yekxv.
Output for 5.4.39
upload/ma6hebdzfv.
Output for 5.4.38
upload/cesn67x0ra.
Output for 5.4.37
upload/ct09kp7117.
Output for 5.4.36
upload/5lo44yisap.
Output for 5.4.35
upload/5idetzmbmv.
Output for 5.4.34
upload/ogxx3ozyb2.
Output for 5.4.32
upload/rslorx1sjk.
Output for 5.4.31
upload/dk415jqgmg.
Output for 5.4.30
upload/t00essef2h.
Output for 5.4.29
upload/44t7lh4bux.
Output for 5.4.28
upload/20emhqr03a.
Output for 5.4.27
upload/syttxj0yez.
Output for 5.4.26
upload/l4591zkm88.
Output for 5.4.25
upload/jfmm5mpp5v.
Output for 5.4.24
upload/5psjbybxuf.
Output for 5.4.23
upload/fq4vu7lwen.
Output for 5.4.22
upload/dnoz69hqpe.
Output for 5.4.21
upload/tvkn0o60fn.
Output for 5.4.20
upload/x2frp4xu2o.
Output for 5.4.19
upload/ip394ssi6o.
Output for 5.4.18
upload/1m997bbg1i.
Output for 5.4.17
upload/5j4n2o4izf.
Output for 5.4.16
upload/wyljiwdlcd.
Output for 5.4.15
upload/zrl60dfdkg.
Output for 5.4.14
upload/e0o9b7hfom.
Output for 5.4.13
upload/455aysp7d3.
Output for 5.4.12
upload/1y67ltzw1l.
Output for 5.4.11
upload/y5x4efdbn6.
Output for 5.4.10
upload/npr2fg70wj.
Output for 5.4.9
upload/wl4nv5edad.
Output for 5.4.8
upload/eocww6y0ti.
Output for 5.4.7
upload/1orkdp63t5.
Output for 5.4.6
upload/rqj5teko83.
Output for 5.4.5
upload/3yjl5z4g0c.
Output for 5.4.4
upload/18ym50lgo2.
Output for 5.4.3
upload/bdt5lkzfvy.
Output for 5.4.2
upload/vq8bh6ftn8.
Output for 5.4.1
upload/z051axk5ns.
Output for 5.4.0
upload/nldz4tk2fu.
Output for 5.3.29
upload/c4tdjqq6c4.
Output for 5.3.28
upload/q0tdho1159.
Output for 5.3.27
upload/jdtxyp4t19.
Output for 5.3.26
upload/1o39j4sdp5.
Output for 5.3.25
upload/vjvksxwtlb.
Output for 5.3.24
upload/q532ieeqg6.
Output for 5.3.23
upload/ss2woctb4k.
Output for 5.3.22
upload/k4yzihgvwe.
Output for 5.3.21
upload/5iboc4ee51.
Output for 5.3.20
upload/1hm700ehbo.
Output for 5.3.19
upload/9x6pw54fim.
Output for 5.3.18
upload/190l8jpbhn.
Output for 5.3.17
upload/xhgava53hi.
Output for 5.3.16
upload/hdsqygwdy5.
Output for 5.3.15
upload/233zsfasiv.
Output for 5.3.14
upload/uu2tjfjsrd.
Output for 5.3.13
upload/jvzrko3t5k.
Output for 5.3.12
upload/i8rfeu8iz1.
Output for 5.3.11
upload/v3dsmn9xbe.
Output for 5.3.10
upload/phdysype8f.
Output for 5.3.9
upload/lwuprbzqqf.
Output for 5.3.8
upload/6o41ttsmjf.
Output for 5.3.7
upload/avami2tbts.
Output for 5.3.6
upload/va83be4jpm.
Output for 5.3.5
upload/2e6efw1yvi.
Output for 5.3.4
upload/k2a9nmr304.
Output for 5.3.3
upload/wgwglhefa1.
Output for 5.3.2
upload/w1mayfjwd4.
Output for 5.3.1
upload/gl934pdqmf.
Output for 5.3.0
upload/jwvz1nbbgw.
Output for 5.2.17
upload/fap899oxuk.
Output for 5.2.16
upload/yffzwpnhmd.
Output for 5.2.15
upload/gpuweni53w.
Output for 5.2.14
upload/6rvy10tnaw.
Output for 5.2.13
upload/ij27kl5rj4.
Output for 5.2.12
upload/fdrlcj7a3t.
Output for 5.2.11
upload/ioywovai00.
Output for 5.2.10
upload/x60gnf5r0p.
Output for 5.2.9
upload/r4lbog2ytu.
Output for 5.2.8
upload/pd6mmblnlu.
Output for 5.2.7
upload/hgi750hhw8.
Output for 5.2.6
upload/byk6jgrpu8.
Output for 5.2.5
upload/rzi8b1oynj.
Output for 5.2.4
upload/jbgnia5gna.
Output for 5.2.3
upload/501k21h7ct.
Output for 5.2.2
upload/olz0hr6jij.
Output for 5.2.1
upload/8t6cg40vpf.
Output for 5.2.0
upload/bj04193psn.
Output for 5.1.6
upload/ckn4k7qusx.
Output for 5.1.5
upload/mercqawbpv.
Output for 5.1.4
upload/crflaut9ru.
Output for 5.1.3
upload/a9wpztl2uu.
Output for 5.1.2
upload/w4qaohum14.
Output for 5.1.1
upload/do08woq1kc.
Output for 5.1.0
upload/sa07ytqx9x.
Output for 5.0.5
upload/p2jvqwfxcq.
Output for 5.0.4
upload/l9rdnk7vaa.
Output for 5.0.3
upload/4sdrjz41xv.
Output for 5.0.2
upload/f245x85d5i.
Output for 5.0.1
upload/o706zur6zs.
Output for 5.0.0
upload/7tub9v7v7u.
Output for 4.4.9
upload/rxj4x6j9mk.
Output for 4.4.8
upload/mpyak9p4bu.
Output for 4.4.7
upload/hjbagyg0mc.
Output for 4.4.6
upload/lhxeojuof8.
Output for 4.4.5
upload/6fgjfv8vzc.
Output for 4.4.4
upload/jcx65n8n25.
Output for 4.4.3
upload/ttgvotc678.
Output for 4.4.2
upload/8jk008gt9k.
Output for 4.4.1
upload/k7jdodouxd.
Output for 4.4.0
upload/irgxlrg2rr.
Output for 4.3.11
upload/p3gvmhp8vg.
Output for 4.3.10
upload/y9nvpu0iu5.
Output for 4.3.9
upload/t8glw1ghvo.
Output for 4.3.8
upload/6tbmxrawzp.
Output for 4.3.7
upload/1zbrr9vy10.
Output for 4.3.6
upload/mriiwt4yqr.
Output for 4.3.5
upload/3br428q87i.
Output for 4.3.4
upload/1s4kjg2wez.
Output for 4.3.3
upload/rhrb33b3wa.
Output for 4.3.2
upload/tzopwhcmm1.
Output for 4.3.0 - 4.3.1

Process exited with code 139.