3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php foreach($GLOBALS as $var_name => $value) { echo $var_name; echo ' '; } ?>
based on fFFBA
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
_GET _POST _COOKIE _FILES argv argc _SERVER GLOBALS value var_name
Output for hhvm-3.12.0
HTTP_RAW_POST_DATA var_name _REQUEST _COOKIE argv _SERVER _POST _GET argc GLOBALS value _SESSION _FILES _ENV
Output for hhvm-3.10.0

Process exited with code 153.
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