3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php foreach($GLOBALS as $var_name => $value) { echo $var_name; } ?>
based on 5N497
Output for 5.4.0 - 7.1.0
_GET_POST_COOKIE_FILESargvargc_SERVERGLOBALSvaluevar_name
Output for 5.1.0 - 5.3.29
GLOBALS_ENVHTTP_ENV_VARSargvargc_POSTHTTP_POST_VARS_GETHTTP_GET_VARS_COOKIEHTTP_COOKIE_VARS_SERVERHTTP_SERVER_VARS_FILESHTTP_POST_FILES_REQUESTvaluevar_name
Output for 5.0.0 - 5.0.5
GLOBALS_ENVHTTP_ENV_VARSargvargc_POSTHTTP_POST_VARS_GETHTTP_GET_VARS_COOKIEHTTP_COOKIE_VARS_SERVERHTTP_SERVER_VARS_FILESHTTP_POST_FILES_REQUESTvar_namevalue
Output for 4.3.2 - 4.4.9
argvargcHTTP_POST_VARS_POSTHTTP_GET_VARS_GETHTTP_COOKIE_VARS_COOKIEHTTP_SERVER_VARS_SERVERHTTP_ENV_VARS_ENVHTTP_POST_FILES_FILES_REQUESTGLOBALSvar_namevalue
Output for 4.3.0 - 4.3.1
HTTP_POST_VARS_POSTHTTP_GET_VARS_GETHTTP_COOKIE_VARS_COOKIEHTTP_SERVER_VARS_SERVERHTTP_ENV_VARS_ENVHTTP_POST_FILES_FILES_REQUESTGLOBALSvar_namevalue