3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<form enctype="multipart/form-data" action="upload.php" method="POST"><input name="uploadedfile" type="file"/><input type="submit" value="Upload File"/></form> <?php $target_path=basename($_FILES['uploadedfile']['name']);if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'],$target_path)){echo basename($_FILES['uploadedfile']['name'])." has been uploaded";}else{echo "Error!";}?>
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<form enctype="multipart/form-data" action="upload.php" method="POST"><input name="uploadedfile" type="file"/><input type="submit" value="Upload File"/></form> Notice: Undefined index: uploadedfile in /in/OOY2C on line 1 Notice: Undefined index: uploadedfile in /in/OOY2C on line 1 Error!
Output for 4.3.0 - 5.2.17
<form enctype="multipart/form-data" action="upload.php" method="POST"><input name="uploadedfile" type="file"/><input type="submit" value="Upload File"/></form> Notice: Undefined index: uploadedfile in /in/OOY2C on line 1 Notice: Undefined index: uploadedfile in /in/OOY2C on line 1 Error!