3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ((($_FILES["file"]["size"] < 20000) )) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br>"; } else { echo "Upload: " . $_FILES["file"]["name"] . "<br>"; echo "Type: " . $_FILES["file"]["type"] . "<br>"; echo "Size: " . ($_FILES["file"]["size"] / 1024) . " kB<br>"; echo "Temp file: " . $_FILES["file"]["tmp_name"] . "<br>"; if (file_exists("upload/" . $_FILES["file"]["name"])) { echo $_FILES["file"]["name"] . " already exists. Please rename the file and try again."; } else { move_uploaded_file($_FILES["file"]["tmp_name"], "/home/a5405761/public_html/i/" . $_FILES["file"]["name"]); echo "Stored in: " . "/i/" . $_FILES["file"]["name"]; } } } else { echo "Invalid file."; } ?>
Output for 8.3.0 - 8.3.4
Warning: Undefined array key "file" in /in/gHe4A on line 2 Warning: Trying to access array offset on null in /in/gHe4A on line 2 Warning: Undefined array key "file" in /in/gHe4A on line 4 Warning: Trying to access array offset on null in /in/gHe4A on line 4 Warning: Undefined array key "file" in /in/gHe4A on line 10 Warning: Trying to access array offset on null in /in/gHe4A on line 10 Upload: <br> Warning: Undefined array key "file" in /in/gHe4A on line 11 Warning: Trying to access array offset on null in /in/gHe4A on line 11 Type: <br> Warning: Undefined array key "file" in /in/gHe4A on line 12 Warning: Trying to access array offset on null in /in/gHe4A on line 12 Size: 0 kB<br> Warning: Undefined array key "file" in /in/gHe4A on line 13 Warning: Trying to access array offset on null in /in/gHe4A on line 13 Temp file: <br> Warning: Undefined array key "file" in /in/gHe4A on line 15 Warning: Trying to access array offset on null in /in/gHe4A on line 15 Warning: file_exists(): open_basedir restriction in effect. File(upload/) is not within the allowed path(s): (/tmp:/in:/etc) in /in/gHe4A on line 15 Warning: Undefined array key "file" in /in/gHe4A on line 21 Warning: Trying to access array offset on null in /in/gHe4A on line 21 Warning: Undefined array key "file" in /in/gHe4A on line 22 Warning: Trying to access array offset on null in /in/gHe4A on line 22 Deprecated: move_uploaded_file(): Passing null to parameter #1 ($from) of type string is deprecated in /in/gHe4A on line 21 Warning: Undefined array key "file" in /in/gHe4A on line 23 Warning: Trying to access array offset on null in /in/gHe4A on line 23 Stored in: /i/
Output for 8.2.0 - 8.2.17
Warning: Undefined array key "file" in /in/gHe4A on line 2 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 2 Warning: Undefined array key "file" in /in/gHe4A on line 4 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 4 Warning: Undefined array key "file" in /in/gHe4A on line 10 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 10 Upload: <br> Warning: Undefined array key "file" in /in/gHe4A on line 11 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 11 Type: <br> Warning: Undefined array key "file" in /in/gHe4A on line 12 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 12 Size: 0 kB<br> Warning: Undefined array key "file" in /in/gHe4A on line 13 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 13 Temp file: <br> Warning: Undefined array key "file" in /in/gHe4A on line 15 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 15 Warning: file_exists(): open_basedir restriction in effect. File(upload/) is not within the allowed path(s): (/tmp:/in:/etc) in /in/gHe4A on line 15 Warning: Undefined array key "file" in /in/gHe4A on line 21 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 21 Warning: Undefined array key "file" in /in/gHe4A on line 22 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 22 Deprecated: move_uploaded_file(): Passing null to parameter #1 ($from) of type string is deprecated in /in/gHe4A on line 21 Warning: Undefined array key "file" in /in/gHe4A on line 23 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 23 Stored in: /i/
Output for 8.1.0 - 8.1.27
Warning: Undefined array key "file" in /in/gHe4A on line 2 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 2 Warning: Undefined array key "file" in /in/gHe4A on line 4 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 4 Warning: Undefined array key "file" in /in/gHe4A on line 10 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 10 Upload: <br> Warning: Undefined array key "file" in /in/gHe4A on line 11 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 11 Type: <br> Warning: Undefined array key "file" in /in/gHe4A on line 12 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 12 Size: 0 kB<br> Warning: Undefined array key "file" in /in/gHe4A on line 13 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 13 Temp file: <br> Warning: Undefined array key "file" in /in/gHe4A on line 15 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 15 Warning: file_exists(): open_basedir restriction in effect. File(upload/) is not within the allowed path(s): (/tmp:/in:/etc) in /in/gHe4A on line 15 Warning: Undefined array key "file" in /in/gHe4A on line 21 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 21 Warning: Undefined array key "file" in /in/gHe4A on line 22 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 22 Deprecated: move_uploaded_file(): Passing null to parameter #1 ($from) of type string is deprecated in /in/gHe4A on line 22 Warning: Undefined array key "file" in /in/gHe4A on line 23 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 23 Stored in: /i/
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30
Warning: Undefined array key "file" in /in/gHe4A on line 2 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 2 Warning: Undefined array key "file" in /in/gHe4A on line 4 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 4 Warning: Undefined array key "file" in /in/gHe4A on line 10 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 10 Upload: <br> Warning: Undefined array key "file" in /in/gHe4A on line 11 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 11 Type: <br> Warning: Undefined array key "file" in /in/gHe4A on line 12 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 12 Size: 0 kB<br> Warning: Undefined array key "file" in /in/gHe4A on line 13 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 13 Temp file: <br> Warning: Undefined array key "file" in /in/gHe4A on line 15 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 15 Warning: file_exists(): open_basedir restriction in effect. File(upload/) is not within the allowed path(s): (/tmp:/in:/etc) in /in/gHe4A on line 15 Warning: Undefined array key "file" in /in/gHe4A on line 21 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 21 Warning: Undefined array key "file" in /in/gHe4A on line 22 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 22 Warning: Undefined array key "file" in /in/gHe4A on line 23 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 23 Stored in: /i/
Output for 8.0.13
Warning: Undefined array key "file" in /in/gHe4A on line 2 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 2 Warning: Undefined array key "file" in /in/gHe4A on line 4 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 4 Warning: Undefined array key "file" in /in/gHe4A on line 10 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 10 Upload: <br> Warning: Undefined array key "file" in /in/gHe4A on line 11 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 11 Type: <br> Warning: Undefined array key "file" in /in/gHe4A on line 12 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 12 Size: 0 kB<br> Warning: Undefined array key "file" in /in/gHe4A on line 13 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 13 Temp file: <br> Warning: Undefined array key "file" in /in/gHe4A on line 15 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 15 Warning: Undefined array key "file" in /in/gHe4A on line 21 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 21 Warning: Undefined array key "file" in /in/gHe4A on line 22 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 22 Warning: Undefined array key "file" in /in/gHe4A on line 23 Warning: Trying to access array offset on value of type null in /in/gHe4A on line 23 Stored in: /i/
Output for 7.4.33
Notice: Undefined index: file in /in/gHe4A on line 2 Notice: Trying to access array offset on value of type null in /in/gHe4A on line 2 Notice: Undefined index: file in /in/gHe4A on line 4 Notice: Trying to access array offset on value of type null in /in/gHe4A on line 4 Notice: Undefined index: file in /in/gHe4A on line 10 Notice: Trying to access array offset on value of type null in /in/gHe4A on line 10 Upload: <br> Notice: Undefined index: file in /in/gHe4A on line 11 Notice: Trying to access array offset on value of type null in /in/gHe4A on line 11 Type: <br> Notice: Undefined index: file in /in/gHe4A on line 12 Notice: Trying to access array offset on value of type null in /in/gHe4A on line 12 Size: 0 kB<br> Notice: Undefined index: file in /in/gHe4A on line 13 Notice: Trying to access array offset on value of type null in /in/gHe4A on line 13 Temp file: <br> Notice: Undefined index: file in /in/gHe4A on line 15 Notice: Trying to access array offset on value of type null in /in/gHe4A on line 15 Notice: Undefined index: file in /in/gHe4A on line 21 Notice: Trying to access array offset on value of type null in /in/gHe4A on line 21 Notice: Undefined index: file in /in/gHe4A on line 22 Notice: Trying to access array offset on value of type null in /in/gHe4A on line 22 Notice: Undefined index: file in /in/gHe4A on line 23 Notice: Trying to access array offset on value of type null in /in/gHe4A on line 23 Stored in: /i/
Output for 7.4.0 - 7.4.32
Notice: Undefined index: file in /in/gHe4A on line 2 Notice: Trying to access array offset on value of type null in /in/gHe4A on line 2 Notice: Undefined index: file in /in/gHe4A on line 4 Notice: Trying to access array offset on value of type null in /in/gHe4A on line 4 Notice: Undefined index: file in /in/gHe4A on line 10 Notice: Trying to access array offset on value of type null in /in/gHe4A on line 10 Upload: <br> Notice: Undefined index: file in /in/gHe4A on line 11 Notice: Trying to access array offset on value of type null in /in/gHe4A on line 11 Type: <br> Notice: Undefined index: file in /in/gHe4A on line 12 Notice: Trying to access array offset on value of type null in /in/gHe4A on line 12 Size: 0 kB<br> Notice: Undefined index: file in /in/gHe4A on line 13 Notice: Trying to access array offset on value of type null in /in/gHe4A on line 13 Temp file: <br> Notice: Undefined index: file in /in/gHe4A on line 15 Notice: Trying to access array offset on value of type null in /in/gHe4A on line 15 Warning: file_exists(): open_basedir restriction in effect. File(upload/) is not within the allowed path(s): (/tmp:/in:/etc) in /in/gHe4A on line 15 Notice: Undefined index: file in /in/gHe4A on line 21 Notice: Trying to access array offset on value of type null in /in/gHe4A on line 21 Notice: Undefined index: file in /in/gHe4A on line 22 Notice: Trying to access array offset on value of type null in /in/gHe4A on line 22 Notice: Undefined index: file in /in/gHe4A on line 23 Notice: Trying to access array offset on value of type null in /in/gHe4A on line 23 Stored in: /i/
Output for 7.3.32 - 7.3.33
Upload: <br>Type: <br>Size: 0 kB<br>Temp file: <br>Stored in: /i/
Output for 5.6.0 - 5.6.38, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31
Notice: Undefined index: file in /in/gHe4A on line 2 Notice: Undefined index: file in /in/gHe4A on line 4 Notice: Undefined index: file in /in/gHe4A on line 10 Upload: <br> Notice: Undefined index: file in /in/gHe4A on line 11 Type: <br> Notice: Undefined index: file in /in/gHe4A on line 12 Size: 0 kB<br> Notice: Undefined index: file in /in/gHe4A on line 13 Temp file: <br> Notice: Undefined index: file in /in/gHe4A on line 15 Warning: file_exists(): open_basedir restriction in effect. File(upload/) is not within the allowed path(s): (/tmp:/in:/etc) in /in/gHe4A on line 15 Notice: Undefined index: file in /in/gHe4A on line 21 Notice: Undefined index: file in /in/gHe4A on line 22 Notice: Undefined index: file in /in/gHe4A on line 23 Stored in: /i/
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38
Notice: Undefined index: file in /in/gHe4A on line 2 Notice: Undefined index: file in /in/gHe4A on line 4 Notice: Undefined index: file in /in/gHe4A on line 10 Upload: <br> Notice: Undefined index: file in /in/gHe4A on line 11 Type: <br> Notice: Undefined index: file in /in/gHe4A on line 12 Size: 0 kB<br> Notice: Undefined index: file in /in/gHe4A on line 13 Temp file: <br> Notice: Undefined index: file in /in/gHe4A on line 15 Notice: Undefined index: file in /in/gHe4A on line 21 Notice: Undefined index: file in /in/gHe4A on line 22 Notice: Undefined index: file in /in/gHe4A on line 23 Stored in: /i/
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Notice: Undefined index: file in /in/gHe4A on line 2 Notice: Undefined index: file in /in/gHe4A on line 4 Notice: Undefined index: file in /in/gHe4A on line 10 Upload: <br> Notice: Undefined index: file in /in/gHe4A on line 11 Type: <br> Notice: Undefined index: file in /in/gHe4A on line 12 Size: 0 kB<br> Notice: Undefined index: file in /in/gHe4A on line 13 Temp file: <br> Notice: Undefined index: file in /in/gHe4A on line 15 Notice: Undefined index: file in /in/gHe4A on line 21 Notice: Undefined index: file in /in/gHe4A on line 22 Notice: Undefined index: file in /in/gHe4A on line 23 Stored in: /i/

preferences:
295.53 ms | 403 KiB | 448 Q