3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "\$_SERVER['PHP_SELF']"; echo"<br>"; echo"ويحتوي على اسم الملف الحالي الذي يتم تنفيذه"; echo"<br>"; echo $_SERVER['PHP_SELF']; echo"<br>"; echo"<br>"; echo "\$_SERVER['REQUEST_URI']"; echo"<br>"; echo"The URI which was given in order to access this page; for instance, '/index.html'. "; echo"<br>"; echo $_SERVER['REQUEST_URI']; echo"<br>"; echo"<br>"; echo "\$_SERVER['SERVER_ADDR']"; echo"<br>"; echo"ويحتوي على ip address للسيرفر الذي يوجد عليه السكريبت"; echo"<br>"; echo $_SERVER['SERVER_ADDR']; echo"<br>"; echo"<br>"; echo "\$_SERVER['SCRIPT_FILENAME']"; echo"<br>"; echo"The absolute pathname of the currently executing script. "; echo"<br>"; echo $_SERVER['SCRIPT_FILENAME']; echo"<br>"; echo"<br>"; echo "\$_SERVER['SCRIPT_NAME']"; echo"<br>"; echo"Contains the current script's path. This is useful for pages which need to point to themselves. The __FILE__ constant contains the full path and filename of the current (i.e. included) file. "; echo"<br>"; echo $_SERVER['SCRIPT_NAME']; echo"<br>"; echo"<br>"; echo "\$_SERVER['PHP_AUTH_DIGEST']"; echo"<br>"; echo"When running under Apache as module doing Digest HTTP authentication this variable is set to the 'Authorization' header sent by the client (which you should then use to make the appropriate validation)."; echo"<br>"; echo $_SERVER['PHP_AUTH_DIGEST']; echo"<br>"; echo"<br>"; echo "\$_SERVER['PHP_AUTH_USER']"; echo"<br>"; echo"When running under Apache or IIS (ISAPI on PHP 5) as module doing HTTP authentication this variable is set to the username provided by the user. "; echo"<br>"; echo $_SERVER['PHP_AUTH_USER']; echo"<br>"; echo"<br>"; echo "\$_SERVER['PHP_AUTH_PW']"; echo"<br>"; echo"When running under Apache or IIS (ISAPI on PHP 5) as module doing HTTP authentication this variable is set to the password provided by the user. "; echo"<br>"; echo $_SERVER['PHP_AUTH_PW']; echo"<br>"; echo"<br>"; echo "\$_SERVER['AUTH_TYPE']"; echo"<br>"; echo"When running under Apache as module doing HTTP authenticated this variable is set to the authentication type. "; echo"<br>"; echo $_SERVER['AUTH_TYPE']; echo"<br>"; echo"<br>"; echo "\$_SERVER['SERVER_ADMIN']"; echo"<br>"; echo"The value given to the SERVER_ADMIN (for Apache) directive in the web server configuration file. If the script is running on a virtual host, this will be the value defined for that virtual host. "; echo"<br>"; echo $_SERVER['SERVER_ADMIN']; echo"<br>"; echo"<br>"; echo "__file__"; echo"<br>"; echo"Contains the full path and filename of the current (i.e. included) file. "; echo"<br>"; echo __file__; echo"<br>"; echo"<br>"; echo "\$_SERVER['SERVER_PORT']"; echo"<br>"; echo"The port on the server machine being used by the web server for communication. For default setups, this will be '80'; using SSL, for instance, will change this to whatever your defined secure HTTP port is. "; echo"<br>"; echo $_SERVER['SERVER_PORT']; echo"<br>"; echo"<br>"; echo "\$_SERVER['SERVER_SIGNATURE']"; echo"<br>"; echo"String containing the server version and virtual host name which are added to server-generated pages, if enabled. "; echo"<br>"; echo $_SERVER['SERVER_SIGNATURE']; echo"<br>"; echo"<br>"; echo "\$_SERVER['PATH_TRANSLATED']"; echo"<br>"; echo"Filesystem- (not document root-) based path to the current script, after the server has done any virtual-to-real mapping. "; echo"<br>"; echo $_SERVER['PATH_TRANSLATED']; echo"<br>"; echo"<br>"; echo "\$_SERVER['SERVER_SOFTWARE']"; echo"<br>"; echo"Server identification string, given in the headers when responding to requests"; echo"<br>"; echo $_SERVER['SERVER_SOFTWARE']; echo"<br>"; echo"<br>"; echo "\$_SERVER['SERVER_PROTOCOL']"; echo"<br>"; echo"Name and revision of the information protocol via which the page was requested."; echo"<br>"; echo $_SERVER['SERVER_PROTOCOL']; echo"<br>"; echo"<br>"; echo "\$_SERVER['GATEWAY_INTERFACE']"; echo"<br>"; echo"What revision of the CGI specification the server is using."; echo"<br>"; echo $_SERVER['GATEWAY_INTERFACE']; echo"<br>"; echo"<br>"; echo "\$_SERVER['REQUEST_METHOD']"; echo"<br>"; echo"Which request method was used to access the page."; echo"<br>"; echo $_SERVER['REQUEST_METHOD']; echo"<br>"; echo"<br>"; echo "\$_SERVER['argv']"; echo"<br>"; echo"Array of arguments passed to the script. When the script is run on the command line, this gives C-style access to the command line parameters. When called via the GET method, this will contain the query string."; echo"<br>"; echo $_SERVER['argv']; echo"<br>"; echo"<br>"; echo "\$_SERVER['argc']"; echo"<br>"; echo"Contains the number of command line parameters passed to the script (if run on the command line). "; echo"<br>"; echo $_SERVER['argc']; echo"<br>"; echo"<br>"; echo "\$_SERVER['SERVER_NAME']"; echo"<br>"; echo"اسم السيرفر الذي يوجد عليه السكريبت"; echo"<br>"; echo $_SERVER['SERVER_NAME']; echo"<br>"; echo"<br>"; echo "\$_SERVER['HTTP_HOST']"; echo"<br>"; echo"Contents of the Host: header from the current request, if there is one. "; echo"<br>"; echo $_SERVER['HTTP_HOST']; echo"<br>"; echo"<br>"; echo "\$_SERVER['DOCUMENT_ROOT']"; echo"<br>"; echo"المسار الكامل للمجلد الذي يوجد فيه السكريبت"; echo"<br>"; echo $_SERVER['DOCUMENT_ROOT']; echo"<br>"; echo"<br>"; echo "\$_SERVER['HTTP_REFERER']"; echo"<br>"; echo"عنوان الصفحة القادم منها الزائر"; echo"<br>"; echo $_SERVER['HTTP_REFERER']; echo"<br>"; echo"<br>"; echo "\$_SERVER['HTTP_USER_AGENT']"; echo"<br>"; echo"معلومات عن المتصفح الذي يستخدمه الزائر"; echo"<br>"; echo $_SERVER['HTTP_USER_AGENT']; echo"<br>"; echo"<br>"; echo "\$_SERVER['REMOTE_ADDR']"; echo"<br>"; echo"رقم ip address للزائر"; echo"<br>"; echo $_SERVER['REMOTE_ADDR']; echo"<br>"; echo"<br>"; echo "\$_SERVER['REMOTE_HOST']"; echo"<br>"; echo"The Host name from which the user is viewing the current page. The reverse dns lookup is based off the REMOTE_ADDR of the user. "; echo"<br>"; echo $_SERVER['REMOTE_HOST']; echo"<br>"; echo"<br>"; echo "\$_SERVER['REMOTE_PORT']"; echo"<br>"; echo"The port being used on the user's machine to communicate with the web server."; echo"<br>"; echo $_SERVER['REMOTE_PORT']; echo"<br>"; echo"<br>"; echo "\$_SERVER['REQUEST_TIME']"; echo"<br>"; echo"The timestamp of the start of the request. Available since PHP 5.1.0."; echo"<br>"; echo $_SERVER['REQUEST_TIME']; echo"<br>"; echo"<br>"; echo "\$_SERVER['QUERY_STRING']"; echo"<br>"; echo"The query string, if any, via which the page was accessed."; echo"<br>"; echo $_SERVER['QUERY_STRING']; echo"<br>"; echo"<br>"; echo "\$_SERVER['HTTP_ACCEPT']"; echo"<br>"; echo"Contents of the Accept: header from the current request, if there is one. "; echo"<br>"; echo $_SERVER['HTTP_ACCEPT']; echo"<br>"; echo"<br>"; echo "\$_SERVER['HTTP_ACCEPT_CHARSET']"; echo"<br>"; echo"Contents of the Accept-Charset: header from the current request, if there is one."; echo"<br>"; echo $_SERVER['HTTP_ACCEPT_CHARSET']; echo"<br>"; echo"<br>"; echo "\$_SERVER['HTTP_ACCEPT_ENCODING']"; echo"<br>"; echo"Contents of the Accept-Encoding: header from the current request, if there is one. Example: 'gzip'."; echo"<br>"; echo $_SERVER['HTTP_ACCEPT_ENCODING']; echo"<br>"; echo"<br>"; echo "\$_SERVER['HTTP_ACCEPT_LANGUAGE']"; echo"<br>"; echo"Contents of the Accept-Language: header from the current request, if there is one. Example: 'en'."; echo"<br>"; echo $_SERVER['HTTP_ACCEPT_LANGUAGE']; echo"<br>"; echo"<br>"; echo "\$_SERVER['HTTP_CONNECTION']"; echo"<br>"; echo"Contents of the Connection: header from the current request, if there is one. Example: 'Keep-Alive'."; echo"<br>"; echo $_SERVER['HTTP_CONNECTION']; echo"<br>"; echo"<br>"; echo "\$_SERVER['HTTPS']"; echo"<br>"; echo"Set to a non-empty value if the script was queried through the HTTPS protocol. Note that when using ISAPI with IIS, the value will be off if the request was not made through the HTTPS protocol. "; echo"<br>"; echo $_SERVER['HTTPS']; echo"<br>"; echo"<br>"; ?>
Output for git.master, git.master_jit, rfc.property-hooks
$_SERVER['PHP_SELF']<br>ويحتوي على اسم الملف الحالي الذي يتم تنفيذه<br>/in/4CDAm<br><br>$_SERVER['REQUEST_URI']<br>The URI which was given in order to access this page; for instance, '/index.html'. <br> Warning: Undefined array key "REQUEST_URI" in /in/4CDAm on line 15 <br><br>$_SERVER['SERVER_ADDR']<br>ويحتوي على ip address للسيرفر الذي يوجد عليه السكريبت<br> Warning: Undefined array key "SERVER_ADDR" in /in/4CDAm on line 23 <br><br>$_SERVER['SCRIPT_FILENAME']<br>The absolute pathname of the currently executing script. <br>/in/4CDAm<br><br>$_SERVER['SCRIPT_NAME']<br>Contains the current script's path. This is useful for pages which need to point to themselves. The __FILE__ constant contains the full path and filename of the current (i.e. included) file. <br>/in/4CDAm<br><br>$_SERVER['PHP_AUTH_DIGEST']<br>When running under Apache as module doing Digest HTTP authentication this variable is set to the 'Authorization' header sent by the client (which you should then use to make the appropriate validation).<br> Warning: Undefined array key "PHP_AUTH_DIGEST" in /in/4CDAm on line 47 <br><br>$_SERVER['PHP_AUTH_USER']<br>When running under Apache or IIS (ISAPI on PHP 5) as module doing HTTP authentication this variable is set to the username provided by the user. <br> Warning: Undefined array key "PHP_AUTH_USER" in /in/4CDAm on line 55 <br><br>$_SERVER['PHP_AUTH_PW']<br>When running under Apache or IIS (ISAPI on PHP 5) as module doing HTTP authentication this variable is set to the password provided by the user. <br> Warning: Undefined array key "PHP_AUTH_PW" in /in/4CDAm on line 63 <br><br>$_SERVER['AUTH_TYPE']<br>When running under Apache as module doing HTTP authenticated this variable is set to the authentication type. <br> Warning: Undefined array key "AUTH_TYPE" in /in/4CDAm on line 71 <br><br>$_SERVER['SERVER_ADMIN']<br>The value given to the SERVER_ADMIN (for Apache) directive in the web server configuration file. If the script is running on a virtual host, this will be the value defined for that virtual host. <br> Warning: Undefined array key "SERVER_ADMIN" in /in/4CDAm on line 79 <br><br>__file__<br>Contains the full path and filename of the current (i.e. included) file. <br>/in/4CDAm<br><br>$_SERVER['SERVER_PORT']<br>The port on the server machine being used by the web server for communication. For default setups, this will be '80'; using SSL, for instance, will change this to whatever your defined secure HTTP port is. <br> Warning: Undefined array key "SERVER_PORT" in /in/4CDAm on line 95 <br><br>$_SERVER['SERVER_SIGNATURE']<br>String containing the server version and virtual host name which are added to server-generated pages, if enabled. <br> Warning: Undefined array key "SERVER_SIGNATURE" in /in/4CDAm on line 103 <br><br>$_SERVER['PATH_TRANSLATED']<br>Filesystem- (not document root-) based path to the current script, after the server has done any virtual-to-real mapping. <br>/in/4CDAm<br><br>$_SERVER['SERVER_SOFTWARE']<br>Server identification string, given in the headers when responding to requests<br> Warning: Undefined array key "SERVER_SOFTWARE" in /in/4CDAm on line 119 <br><br>$_SERVER['SERVER_PROTOCOL']<br>Name and revision of the information protocol via which the page was requested.<br> Warning: Undefined array key "SERVER_PROTOCOL" in /in/4CDAm on line 127 <br><br>$_SERVER['GATEWAY_INTERFACE']<br>What revision of the CGI specification the server is using.<br> Warning: Undefined array key "GATEWAY_INTERFACE" in /in/4CDAm on line 135 <br><br>$_SERVER['REQUEST_METHOD']<br>Which request method was used to access the page.<br> Warning: Undefined array key "REQUEST_METHOD" in /in/4CDAm on line 143 <br><br>$_SERVER['argv']<br>Array of arguments passed to the script. When the script is run on the command line, this gives C-style access to the command line parameters. When called via the GET method, this will contain the query string.<br> Warning: Array to string conversion in /in/4CDAm on line 151 Array<br><br>$_SERVER['argc']<br>Contains the number of command line parameters passed to the script (if run on the command line). <br>1<br><br>$_SERVER['SERVER_NAME']<br>اسم السيرفر الذي يوجد عليه السكريبت<br> Warning: Undefined array key "SERVER_NAME" in /in/4CDAm on line 167 <br><br>$_SERVER['HTTP_HOST']<br>Contents of the Host: header from the current request, if there is one. <br> Warning: Undefined array key "HTTP_HOST" in /in/4CDAm on line 175 <br><br>$_SERVER['DOCUMENT_ROOT']<br>المسار الكامل للمجلد الذي يوجد فيه السكريبت<br><br><br>$_SERVER['HTTP_REFERER']<br>عنوان الصفحة القادم منها الزائر<br> Warning: Undefined array key "HTTP_REFERER" in /in/4CDAm on line 191 <br><br>$_SERVER['HTTP_USER_AGENT']<br>معلومات عن المتصفح الذي يستخدمه الزائر<br> Warning: Undefined array key "HTTP_USER_AGENT" in /in/4CDAm on line 199 <br><br>$_SERVER['REMOTE_ADDR']<br>رقم ip address للزائر<br> Warning: Undefined array key "REMOTE_ADDR" in /in/4CDAm on line 207 <br><br>$_SERVER['REMOTE_HOST']<br>The Host name from which the user is viewing the current page. The reverse dns lookup is based off the REMOTE_ADDR of the user. <br> Warning: Undefined array key "REMOTE_HOST" in /in/4CDAm on line 215 <br><br>$_SERVER['REMOTE_PORT']<br>The port being used on the user's machine to communicate with the web server.<br> Warning: Undefined array key "REMOTE_PORT" in /in/4CDAm on line 223 <br><br>$_SERVER['REQUEST_TIME']<br>The timestamp of the start of the request. Available since PHP 5.1.0.<br>1671394186<br><br>$_SERVER['QUERY_STRING']<br>The query string, if any, via which the page was accessed.<br> Warning: Undefined array key "QUERY_STRING" in /in/4CDAm on line 239 <br><br>$_SERVER['HTTP_ACCEPT']<br>Contents of the Accept: header from the current request, if there is one. <br> Warning: Undefined array key "HTTP_ACCEPT" in /in/4CDAm on line 247 <br><br>$_SERVER['HTTP_ACCEPT_CHARSET']<br>Contents of the Accept-Charset: header from the current request, if there is one.<br> Warning: Undefined array key "HTTP_ACCEPT_CHARSET" in /in/4CDAm on line 255 <br><br>$_SERVER['HTTP_ACCEPT_ENCODING']<br>Contents of the Accept-Encoding: header from the current request, if there is one. Example: 'gzip'.<br> Warning: Undefined array key "HTTP_ACCEPT_ENCODING" in /in/4CDAm on line 263 <br><br>$_SERVER['HTTP_ACCEPT_LANGUAGE']<br>Contents of the Accept-Language: header from the current request, if there is one. Example: 'en'.<br> Warning: Undefined array key "HTTP_ACCEPT_LANGUAGE" in /in/4CDAm on line 271 <br><br>$_SERVER['HTTP_CONNECTION']<br>Contents of the Connection: header from the current request, if there is one. Example: 'Keep-Alive'.<br> Warning: Undefined array key "HTTP_CONNECTION" in /in/4CDAm on line 279 <br><br>$_SERVER['HTTPS']<br>Set to a non-empty value if the script was queried through the HTTPS protocol. Note that when using ISAPI with IIS, the value will be off if the request was not made through the HTTPS protocol. <br> Warning: Undefined array key "HTTPS" in /in/4CDAm on line 291 <br><br>

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:
45.47 ms | 417 KiB | 8 Q