3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $cc = array('a' => 2, 'b' => 43, 'a c d' => 15); extract($cc); print_r(array_keys(get_defined_vars()));
Output for 5.4.0 - 7.1.0
Array ( [0] => _GET [1] => _POST [2] => _COOKIE [3] => _FILES [4] => argv [5] => argc [6] => _SERVER [7] => cc [8] => a [9] => b )
Output for 5.0.0 - 5.3.29
Array ( [0] => GLOBALS [1] => _ENV [2] => HTTP_ENV_VARS [3] => argv [4] => argc [5] => _POST [6] => HTTP_POST_VARS [7] => _GET [8] => HTTP_GET_VARS [9] => _COOKIE [10] => HTTP_COOKIE_VARS [11] => _SERVER [12] => HTTP_SERVER_VARS [13] => _FILES [14] => HTTP_POST_FILES [15] => _REQUEST [16] => cc [17] => a [18] => b )
Output for 4.3.2 - 4.4.9
Array ( [0] => argv [1] => argc [2] => HTTP_POST_VARS [3] => _POST [4] => HTTP_GET_VARS [5] => _GET [6] => HTTP_COOKIE_VARS [7] => _COOKIE [8] => HTTP_SERVER_VARS [9] => _SERVER [10] => HTTP_ENV_VARS [11] => _ENV [12] => HTTP_POST_FILES [13] => _FILES [14] => _REQUEST [15] => cc [16] => a [17] => b )
Output for 4.3.0 - 4.3.1
Array ( [0] => HTTP_POST_VARS [1] => _POST [2] => HTTP_GET_VARS [3] => _GET [4] => HTTP_COOKIE_VARS [5] => _COOKIE [6] => HTTP_SERVER_VARS [7] => _SERVER [8] => HTTP_ENV_VARS [9] => _ENV [10] => HTTP_POST_FILES [11] => _FILES [12] => _REQUEST [13] => cc [14] => a [15] => b )