3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php foreach($GLOBALS as $var_name => $value) { echo $var_name; echo '\n'; } ?>
based on OC8iO
Output for 5.4.0 - 7.1.0
_GET\n_POST\n_COOKIE\n_FILES\nargv\nargc\n_SERVER\nGLOBALS\nvalue\nvar_name\n
Output for 5.1.0 - 5.3.29
GLOBALS\n_ENV\nHTTP_ENV_VARS\nargv\nargc\n_POST\nHTTP_POST_VARS\n_GET\nHTTP_GET_VARS\n_COOKIE\nHTTP_COOKIE_VARS\n_SERVER\nHTTP_SERVER_VARS\n_FILES\nHTTP_POST_FILES\n_REQUEST\nvalue\nvar_name\n
Output for 5.0.0 - 5.0.5
GLOBALS\n_ENV\nHTTP_ENV_VARS\nargv\nargc\n_POST\nHTTP_POST_VARS\n_GET\nHTTP_GET_VARS\n_COOKIE\nHTTP_COOKIE_VARS\n_SERVER\nHTTP_SERVER_VARS\n_FILES\nHTTP_POST_FILES\n_REQUEST\nvar_name\nvalue\n
Output for 4.3.2 - 4.4.9
argv\nargc\nHTTP_POST_VARS\n_POST\nHTTP_GET_VARS\n_GET\nHTTP_COOKIE_VARS\n_COOKIE\nHTTP_SERVER_VARS\n_SERVER\nHTTP_ENV_VARS\n_ENV\nHTTP_POST_FILES\n_FILES\n_REQUEST\nGLOBALS\nvar_name\nvalue\n
Output for 4.3.0 - 4.3.1
HTTP_POST_VARS\n_POST\nHTTP_GET_VARS\n_GET\nHTTP_COOKIE_VARS\n_COOKIE\nHTTP_SERVER_VARS\n_SERVER\nHTTP_ENV_VARS\n_ENV\nHTTP_POST_FILES\n_FILES\n_REQUEST\nGLOBALS\nvar_name\nvalue\n