3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head> <title></title> </head> <body> <form action="uploader.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="file" id="file"><br> <input type="submit" name="submit" value="Submit"> </form> </body> </html> <?php if ($_FILES["file"]["error"] > 0) { echo "Error: " . $_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 "Stored in: " . $_FILES["file"]["tmp_name"]; } ?>
Output for git.master, git.master_jit
<html> <head> <title></title> </head> <body> <form action="uploader.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="file" id="file"><br> <input type="submit" name="submit" value="Submit"> </form> </body> </html> Warning: Undefined array key "file" in /in/EDv25 on line 15 Warning: Trying to access array offset on value of type null in /in/EDv25 on line 15 Warning: Undefined array key "file" in /in/EDv25 on line 21 Warning: Trying to access array offset on value of type null in /in/EDv25 on line 21 Upload: <br> Warning: Undefined array key "file" in /in/EDv25 on line 22 Warning: Trying to access array offset on value of type null in /in/EDv25 on line 22 Type: <br> Warning: Undefined array key "file" in /in/EDv25 on line 23 Warning: Trying to access array offset on value of type null in /in/EDv25 on line 23 Size: 0 kB<br> Warning: Undefined array key "file" in /in/EDv25 on line 24 Warning: Trying to access array offset on value of type null in /in/EDv25 on line 24 Stored in:
Output for rfc.property-hooks
<html> <head> <title></title> </head> <body> <form action="uploader.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="file" id="file"><br> <input type="submit" name="submit" value="Submit"> </form> </body> </html> Warning: Undefined array key "file" in /in/EDv25 on line 15 Warning: Trying to access array offset on null in /in/EDv25 on line 15 Warning: Undefined array key "file" in /in/EDv25 on line 21 Warning: Trying to access array offset on null in /in/EDv25 on line 21 Upload: <br> Warning: Undefined array key "file" in /in/EDv25 on line 22 Warning: Trying to access array offset on null in /in/EDv25 on line 22 Type: <br> Warning: Undefined array key "file" in /in/EDv25 on line 23 Warning: Trying to access array offset on null in /in/EDv25 on line 23 Size: 0 kB<br> Warning: Undefined array key "file" in /in/EDv25 on line 24 Warning: Trying to access array offset on null in /in/EDv25 on line 24 Stored in:

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
37.65 ms | 403 KiB | 8 Q