3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo json_encode(array_keys($GLOBALS));
Output for 5.4.0 - 7.2.0
["_GET","_POST","_COOKIE","_FILES","argv","argc","_SERVER","GLOBALS"]
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