3v4l.org

run code in 300+ PHP versions simultaneously
<head> <style> <!-- p {MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 150%}--> </style> </head> <table style="BORDER-COLLAPSE: collapse" cellspacing="0" bordercolordark="#66" cellpadding="5" height="1" width="100%" bgcolor="black" bordercolorlight="#c0c0c0" border="1"> <tr> <a bookmark="minipanel" style="font-weight: normal; color: #009900; font-family: verdana; text-decoration: none"> <td width="50%" height="1" valign="top" style="font-family: verdana; color: #d9d9d9; font-size: 11px"> <center>Upload<form method="POST" enctype="multipart/form-data"> <input type="hidden" name="act" value="upload" style="font-size: 8pt; color: white; font-family: Tahoma; border: 1 solid #66; background-color: #009900"> <input type="file" name="userfile" style="font-size: 8pt; color: white; font-family: Tahoma; border: 1 solid #66; background-color: #009900"><input type="hidden" name="miniform" value="1" style="font-size: 8pt; color: white; font-family: Tahoma; border: 1 solid #66; background-color: #009900"> <input type="submit" name="submit" value="Upload" style="font-size: 8pt; color: white; font-family: Tahoma; border: 1 solid #66; background-color: #009900"><br><br> <?php $uploaddir = ""; $uploadfile = $uploaddir . basename($_FILES['userfile']['name']); if (isset($_FILES['userfile']['name'])) { if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { echo "The file ". basename($_FILES['userfile']['name']) ." has been uploaded"; } else { echo "There was an error uploading the file. please try again!"; } } ?> </form> </center></td> </tr> </table> </a>
Output for git.master, git.master_jit
<head> <style> <!-- p {MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 150%}--> </style> </head> <table style="BORDER-COLLAPSE: collapse" cellspacing="0" bordercolordark="#66" cellpadding="5" height="1" width="100%" bgcolor="black" bordercolorlight="#c0c0c0" border="1"> <tr> <a bookmark="minipanel" style="font-weight: normal; color: #009900; font-family: verdana; text-decoration: none"> <td width="50%" height="1" valign="top" style="font-family: verdana; color: #d9d9d9; font-size: 11px"> <center>Upload<form method="POST" enctype="multipart/form-data"> <input type="hidden" name="act" value="upload" style="font-size: 8pt; color: white; font-family: Tahoma; border: 1 solid #66; background-color: #009900"> <input type="file" name="userfile" style="font-size: 8pt; color: white; font-family: Tahoma; border: 1 solid #66; background-color: #009900"><input type="hidden" name="miniform" value="1" style="font-size: 8pt; color: white; font-family: Tahoma; border: 1 solid #66; background-color: #009900"> <input type="submit" name="submit" value="Upload" style="font-size: 8pt; color: white; font-family: Tahoma; border: 1 solid #66; background-color: #009900"><br><br> Warning: Undefined array key "userfile" in /in/qEpjI on line 18 Warning: Trying to access array offset on value of type null in /in/qEpjI on line 18 Deprecated: basename(): Passing null to parameter #1 ($path) of type string is deprecated in /in/qEpjI on line 18 </form> </center></td> </tr> </table> </a>
Output for rfc.property-hooks
<head> <style> <!-- p {MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 150%}--> </style> </head> <table style="BORDER-COLLAPSE: collapse" cellspacing="0" bordercolordark="#66" cellpadding="5" height="1" width="100%" bgcolor="black" bordercolorlight="#c0c0c0" border="1"> <tr> <a bookmark="minipanel" style="font-weight: normal; color: #009900; font-family: verdana; text-decoration: none"> <td width="50%" height="1" valign="top" style="font-family: verdana; color: #d9d9d9; font-size: 11px"> <center>Upload<form method="POST" enctype="multipart/form-data"> <input type="hidden" name="act" value="upload" style="font-size: 8pt; color: white; font-family: Tahoma; border: 1 solid #66; background-color: #009900"> <input type="file" name="userfile" style="font-size: 8pt; color: white; font-family: Tahoma; border: 1 solid #66; background-color: #009900"><input type="hidden" name="miniform" value="1" style="font-size: 8pt; color: white; font-family: Tahoma; border: 1 solid #66; background-color: #009900"> <input type="submit" name="submit" value="Upload" style="font-size: 8pt; color: white; font-family: Tahoma; border: 1 solid #66; background-color: #009900"><br><br> Warning: Undefined array key "userfile" in /in/qEpjI on line 18 Warning: Trying to access array offset on null in /in/qEpjI on line 18 Deprecated: basename(): Passing null to parameter #1 ($path) of type string is deprecated in /in/qEpjI on line 18 </form> </center></td> </tr> </table> </a>

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:
66.41 ms | 405 KiB | 8 Q