3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach($GLOBALS as $var_name => $value) { echo $var_name; echo ' '; } ?>
based on fFFBA
Output for 5.4.0 - 7.2.0
_GET _POST _COOKIE _FILES argv argc _SERVER GLOBALS value var_name
Output for 5.1.0 - 5.3.29
GLOBALS _ENV HTTP_ENV_VARS argv argc _POST HTTP_POST_VARS _GET HTTP_GET_VARS _COOKIE HTTP_COOKIE_VARS _SERVER HTTP_SERVER_VARS _FILES HTTP_POST_FILES _REQUEST value var_name
Output for 5.0.0 - 5.0.5
GLOBALS _ENV HTTP_ENV_VARS argv argc _POST HTTP_POST_VARS _GET HTTP_GET_VARS _COOKIE HTTP_COOKIE_VARS _SERVER HTTP_SERVER_VARS _FILES HTTP_POST_FILES _REQUEST var_name value
Output for 4.3.2 - 4.4.9
argv argc HTTP_POST_VARS _POST HTTP_GET_VARS _GET HTTP_COOKIE_VARS _COOKIE HTTP_SERVER_VARS _SERVER HTTP_ENV_VARS _ENV HTTP_POST_FILES _FILES _REQUEST GLOBALS var_name value
Output for 4.3.0 - 4.3.1
HTTP_POST_VARS _POST HTTP_GET_VARS _GET HTTP_COOKIE_VARS _COOKIE HTTP_SERVER_VARS _SERVER HTTP_ENV_VARS _ENV HTTP_POST_FILES _FILES _REQUEST GLOBALS var_name value