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>"; ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0060.01316.62
8.3.50.0190.00222.03
8.3.40.0040.01419.09
8.3.30.0120.00319.34
8.3.20.0060.00318.71
8.3.10.0080.00021.85
8.3.00.0030.00519.39
8.2.180.0080.00816.88
8.2.170.0090.00622.96
8.2.160.0130.00919.19
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0070.00319.04
8.2.110.0070.00320.89
8.2.100.0080.00418.15
8.2.90.0050.00319.36
8.2.80.0060.00317.97
8.2.70.0030.00617.75
8.2.60.0040.00817.93
8.2.50.0030.00618.07
8.2.40.0060.00318.34
8.2.30.0000.00718.20
8.2.20.0080.00017.93
8.2.10.0040.00418.04
8.2.00.0040.00418.03
8.1.280.0110.00425.92
8.1.270.0030.00520.50
8.1.260.0050.00326.35
8.1.250.0060.00328.09
8.1.240.0000.00921.29
8.1.230.0080.00319.42
8.1.220.0040.00417.78
8.1.210.0050.00318.77
8.1.200.0030.00717.35
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0040.00418.41
8.1.160.0040.00422.21
8.1.150.0030.00518.97
8.1.140.0060.00317.40
8.1.130.0060.00117.70
8.1.120.0010.00717.54
8.1.110.0050.00417.50
8.1.100.0000.00817.50
8.1.90.0050.00317.56
8.1.80.0040.00417.52
8.1.70.0040.00417.51
8.1.60.0030.00517.60
8.1.50.0030.00617.58
8.1.40.0050.00317.61
8.1.30.0010.00617.75
8.1.20.0020.00717.75
8.1.10.0040.00417.66
8.1.00.0000.00817.55
8.0.300.0070.00018.77
8.0.290.0000.00916.88
8.0.280.0000.00718.51
8.0.270.0090.00016.95
8.0.260.0040.00317.10
8.0.250.0030.00417.06
8.0.240.0060.00317.02
8.0.230.0020.00617.00
8.0.220.0030.00416.98
8.0.210.0040.00417.00
8.0.200.0030.00517.03
8.0.190.0040.00416.97
8.0.180.0000.00817.04
8.0.170.0040.00417.00
8.0.160.0030.00517.00
8.0.150.0050.00216.94
8.0.140.0020.00617.00
8.0.130.0060.00115.21
8.0.120.0020.00616.99
8.0.110.0040.00316.99
8.0.100.0040.00416.96
8.0.90.0060.00216.96
8.0.80.0040.00716.90
8.0.70.0040.00416.97
8.0.60.0060.00216.92
8.0.50.0000.00716.94
8.0.30.0090.00717.08
8.0.20.0090.00817.26
8.0.10.0020.00617.02
8.0.00.0090.00816.95
7.4.330.0110.00014.18
7.4.320.0110.00216.62
7.4.300.0090.00416.47
7.4.290.0090.00416.64
7.4.280.0040.00816.57
7.4.270.0100.00216.62
7.4.260.0080.00516.49
7.4.250.0090.00316.57
7.4.240.0050.00516.56
7.4.230.0050.00616.51
7.4.220.0140.00316.53
7.4.210.0090.00716.55
7.4.200.0050.00516.63
7.4.190.0110.00316.58
7.4.180.0070.00716.48
7.4.160.0140.00116.62
7.4.150.0080.01016.90
7.4.140.0120.00817.41
7.4.130.0070.01116.62
7.4.120.0120.00516.51
7.4.110.0080.00916.51
7.4.100.0120.01716.52
7.4.90.0120.00516.47
7.4.80.0150.00517.96
7.4.70.0120.00516.52
7.4.60.0160.00216.50
7.4.50.0100.00116.56
7.4.40.0090.00916.31
7.4.30.0090.00916.54
7.4.20.0090.00516.52
7.4.10.0100.00316.29
7.4.00.0080.00715.38
7.3.330.0070.00314.81
7.3.320.0040.00614.74
7.3.310.0060.00516.31
7.3.300.0110.00016.32
7.3.290.0090.00216.41
7.3.280.0080.00916.41
7.3.270.0110.00916.92
7.3.260.0040.01216.48
7.3.250.0120.00616.51
7.3.240.0060.01016.47
7.3.230.0120.00416.46
7.3.220.0120.00416.29
7.3.210.0200.00116.38
7.3.200.0140.00717.84
7.3.190.0130.00316.29
7.3.180.0100.00716.45
7.3.170.0150.00216.51
7.3.160.0090.00716.40
7.3.150.0100.00316.42
7.3.140.0050.01016.28
7.3.130.0070.00716.31
7.3.120.0030.01215.67
7.3.110.0080.00815.61
7.3.100.0120.00315.53
7.3.90.0080.00815.71
7.3.80.0060.00815.39
7.3.70.0080.00615.71
7.3.60.0060.00915.68
7.3.50.0070.00715.58
7.3.40.0120.00315.64
7.3.30.0080.00615.70
7.3.20.0070.00716.65
7.3.10.0090.00516.46
7.3.00.0080.00816.64
7.2.340.0070.00716.28
7.2.330.0110.00716.37
7.2.320.0110.00716.45
7.2.310.0100.00616.61
7.2.300.0120.00516.49
7.2.290.0110.00416.46
7.2.280.0140.00016.25
7.2.270.0090.00616.27
7.2.260.0040.01116.34
7.2.250.0060.00715.64
7.2.240.0100.00915.71
7.2.230.0070.00615.64
7.2.220.0090.00615.57
7.2.210.0060.00715.73
7.2.200.0080.00715.85
7.2.190.0090.00615.77
7.2.180.0080.00615.78
7.2.170.0080.00415.79
7.2.160.0090.00516.59
7.2.150.0120.00416.62
7.2.140.0150.00016.58
7.2.130.0100.00516.77
7.2.120.0070.01016.67
7.2.110.0080.00716.74
7.2.100.0090.00716.68
7.2.90.0160.00416.65
7.2.80.0140.00116.73
7.2.70.0090.00616.72
7.2.60.0090.00616.76
7.2.50.0060.00916.72
7.2.40.0090.00516.65
7.2.30.0110.00316.67
7.2.20.0120.00416.91
7.2.10.0100.00516.65
7.2.00.0080.00717.61
7.1.330.0110.00515.43
7.1.320.0200.00615.54
7.1.310.0080.00515.69
7.1.300.0130.00115.60
7.1.290.0070.00715.34
7.1.280.0100.00615.53
7.1.270.0070.00515.59
7.1.260.0050.00915.57
7.1.250.0070.00915.43
7.1.240.0090.00715.39
7.1.230.0060.01115.52
7.1.220.0070.00715.52
7.1.210.0120.00615.63
7.1.200.0090.00415.52
7.1.190.0000.01315.69
7.1.180.0080.00515.51
7.1.170.0090.00715.57
7.1.160.0050.00915.40
7.1.150.0070.00715.47
7.1.140.0140.00315.46
7.1.130.0150.00215.45
7.1.120.0070.00715.39
7.1.110.0130.00415.60
7.1.100.0040.00916.27
7.1.90.0090.00615.50
7.1.80.0050.01215.65
7.1.70.0040.00716.07
7.1.60.0090.00516.85
7.1.50.0130.00416.06
7.1.40.0090.00515.55
7.1.30.0120.00515.62
7.1.20.0100.00615.44
7.1.10.0070.00715.41
7.1.00.0040.03217.87
7.0.330.0160.00515.05
7.0.320.0060.00815.00
7.0.310.0100.00615.13
7.0.300.0070.00715.13
7.0.290.0110.00515.13
7.0.280.0100.00515.05
7.0.270.0040.01015.03
7.0.260.0040.01114.88
7.0.250.0110.00415.23
7.0.240.0150.00315.14
7.0.230.0050.00915.39
7.0.220.0090.00715.24
7.0.210.0090.00315.16
7.0.200.0070.00415.59
7.0.190.0130.00414.94
7.0.180.0070.00515.06
7.0.170.0090.00315.25
7.0.160.0150.00015.27
7.0.150.0090.00715.13
7.0.140.0090.00415.15
7.0.130.0060.00715.07
7.0.120.0070.00615.17
7.0.110.0110.00815.05
7.0.100.0080.03116.72
7.0.90.0120.02816.70
7.0.80.0110.02516.68
7.0.70.0160.03216.71
7.0.60.0170.02916.67
7.0.50.0090.02716.90
7.0.40.0120.02316.19
7.0.30.0060.02316.21
7.0.20.0120.02916.10
7.0.10.0070.02716.11
7.0.00.0080.03015.97
5.6.400.0090.00615.88
5.6.390.0130.00015.75
5.6.380.0070.00815.09
5.6.370.0080.00514.88
5.6.360.0060.00615.13
5.6.350.0080.00415.05
5.6.340.0030.01114.97
5.6.330.0130.00315.02
5.6.320.0070.00714.94
5.6.310.0070.00815.01
5.6.300.0120.00014.91
5.6.290.0130.00014.80
5.6.280.0020.03117.16
5.6.270.0070.00415.12
5.6.260.0070.00615.10
5.6.250.0110.02816.92
5.6.240.0050.03016.86
5.6.230.0060.03416.94
5.6.220.0100.03017.01
5.6.210.0090.02316.91
5.6.200.0120.02817.09
5.6.190.0080.01717.19
5.6.180.0080.01817.05
5.6.170.0060.02517.02
5.6.160.0080.03116.99
5.6.150.0070.03017.11
5.6.140.0090.02817.11
5.6.130.0060.02217.10
5.6.120.0090.03317.11
5.6.110.0050.03417.12
5.6.100.0080.02017.05
5.6.90.0070.02117.20
5.6.80.0070.02716.79
5.6.70.0070.03116.84
5.6.60.0090.01416.99
5.6.50.0090.02916.83
5.6.40.0060.03216.76
5.6.30.0070.02116.88
5.6.20.0090.02816.68
5.6.10.0070.01716.73
5.6.00.0050.03016.75
5.5.380.0110.02615.89
5.5.370.0060.03015.84
5.5.360.0020.03415.80
5.5.350.0090.03015.80
5.5.340.0040.02115.94
5.5.330.0060.03215.95
5.5.320.0060.02715.82
5.5.310.0090.02915.88
5.5.300.0080.02815.87
5.5.290.0100.01815.96
5.5.280.0060.03015.97
5.5.270.0070.02915.93
5.5.260.0110.02315.87
5.5.250.0070.02915.91
5.5.240.0050.01615.81
5.5.230.0100.02315.66
5.5.220.0050.02215.81
5.5.210.0060.02915.71
5.5.200.0090.01915.61
5.5.190.0070.02715.68
5.5.180.0100.01615.69
5.5.170.0070.00513.37
5.5.160.0100.02615.66
5.5.150.0070.03015.67
5.5.140.0050.01815.65
5.5.130.0040.02815.68
5.5.120.0090.02515.67
5.5.110.0070.03415.59
5.5.100.0090.02015.61
5.5.90.0060.02715.71
5.5.80.0090.01215.74
5.5.70.0050.02015.62
5.5.60.0060.02115.67
5.5.50.0040.03115.71
5.5.40.0090.02915.64
5.5.30.0100.02915.77
5.5.20.0060.02715.74
5.5.10.0080.01715.67
5.5.00.0060.03015.70
5.4.450.0090.01314.59
5.4.440.0040.03114.59
5.4.430.0090.02514.55
5.4.420.0060.02714.64
5.4.410.0030.02414.58
5.4.400.0080.02114.44
5.4.390.0050.03114.43
5.4.380.0090.02614.51
5.4.370.0040.01914.51
5.4.360.0040.03114.49
5.4.350.0070.02914.57
5.4.340.0070.01714.54
5.4.330.0000.01012.25
5.4.320.0120.01914.43
5.4.310.0030.03014.52
5.4.300.0070.03014.43
5.4.290.0040.02414.47
5.4.280.0090.02614.43
5.4.270.0050.02714.51
5.4.260.0060.02514.49
5.4.250.0050.02314.49
5.4.240.0080.02414.43
5.4.230.0050.02114.47
5.4.220.0040.03114.49
5.4.210.0060.02414.48
5.4.200.0020.02014.47
5.4.190.0060.01714.54
5.4.180.0100.02114.53
5.4.170.0070.01714.57
5.4.160.0090.02914.54
5.4.150.0090.02714.53
5.4.140.0030.02813.61
5.4.130.0070.02813.64
5.4.120.0070.02413.57
5.4.110.0080.01913.62
5.4.100.0070.01713.60
5.4.90.0030.02913.66
5.4.80.0070.02013.63
5.4.70.0080.02113.66
5.4.60.0050.02713.64
5.4.50.0070.02513.65
5.4.40.0030.02913.61
5.4.30.0050.02313.60
5.4.20.0080.02513.62
5.4.10.0080.02713.66
5.4.00.0000.02613.46

preferences:
52.81 ms | 401 KiB | 5 Q