3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo json_encode(array_keys($GLOBALS));
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
["_GET","_POST","_COOKIE","_FILES","argv","argc","_SERVER","GLOBALS"]
Output for hhvm-3.10.0 - 3.12.0
["HTTP_RAW_POST_DATA","_REQUEST","_COOKIE","argv","_SERVER","_POST","_GET","argc","GLOBALS","_SESSION","_FILES","_ENV"]
Output for 5.2.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"]
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_encode() in /in/3JZjV on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_encode() in /in/3JZjV on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_encode() in /in/3JZjV on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_encode() in /in/3JZjV on line 3