3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r($GLOBALS);
Output for 8.1.0 - 8.1.10
Array ( [_GET] => Array ( ) [_POST] => Array ( ) [_COOKIE] => Array ( ) [_FILES] => Array ( ) [argv] => Array ( [0] => /in/AdLgJ ) [argc] => 1 [_SERVER] => Array ( [TERM] => xterm [PATH] => /usr/bin:/bin [LANG] => C [SHELL] => /bin/sh [MAIL] => /var/mail/nobody [LOGNAME] => nobody [USER] => nobody [HOME] => /tmp [PHP_SELF] => /in/AdLgJ [SCRIPT_NAME] => /in/AdLgJ [SCRIPT_FILENAME] => /in/AdLgJ [PATH_TRANSLATED] => /in/AdLgJ [DOCUMENT_ROOT] => [REQUEST_TIME_FLOAT] => 1661083396.0001 [REQUEST_TIME] => 1661083396 [argv] => Array ( [0] => /in/AdLgJ ) [argc] => 1 ) )
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.2 - 7.3.33, 7.4.0 - 7.4.30, 8.0.0 - 8.0.23
Array ( [_GET] => Array ( ) [_POST] => Array ( ) [_COOKIE] => Array ( ) [_FILES] => Array ( ) [argv] => Array ( [0] => /in/AdLgJ ) [argc] => 1 [_SERVER] => Array ( [TERM] => xterm [PATH] => /usr/bin:/bin [LANG] => C [SHELL] => /bin/sh [MAIL] => /var/mail/nobody [LOGNAME] => nobody [USER] => nobody [HOME] => /tmp [PHP_SELF] => /in/AdLgJ [SCRIPT_NAME] => /in/AdLgJ [SCRIPT_FILENAME] => /in/AdLgJ [PATH_TRANSLATED] => /in/AdLgJ [DOCUMENT_ROOT] => [REQUEST_TIME_FLOAT] => 1661083396.0001 [REQUEST_TIME] => 1661083396 [argv] => Array ( [0] => /in/AdLgJ ) [argc] => 1 ) [GLOBALS] => Array *RECURSION* )
Output for 7.3.0 - 7.3.1
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 31461376 bytes) in /in/AdLgJ on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Array ( [GLOBALS] => Array *RECURSION* [_ENV] => Array ( [TERM] => xterm [PATH] => /usr/bin:/bin [LANG] => C [SHELL] => /bin/sh [MAIL] => /var/mail/nobody [LOGNAME] => nobody [USER] => nobody [HOME] => /tmp ) [HTTP_ENV_VARS] => Array ( [TERM] => xterm [PATH] => /usr/bin:/bin [LANG] => C [SHELL] => /bin/sh [MAIL] => /var/mail/nobody [LOGNAME] => nobody [USER] => nobody [HOME] => /tmp ) [argv] => Array ( [0] => /in/AdLgJ ) [argc] => 1 [_POST] => Array ( ) [HTTP_POST_VARS] => Array ( ) [_GET] => Array ( ) [HTTP_GET_VARS] => Array ( ) [_COOKIE] => Array ( ) [HTTP_COOKIE_VARS] => Array ( ) [_SERVER] => Array ( [TERM] => xterm [PATH] => /usr/bin:/bin [LANG] => C [SHELL] => /bin/sh [MAIL] => /var/mail/nobody [LOGNAME] => nobody [USER] => nobody [HOME] => /tmp [PHP_SELF] => /in/AdLgJ [SCRIPT_NAME] => /in/AdLgJ [SCRIPT_FILENAME] => /in/AdLgJ [PATH_TRANSLATED] => /in/AdLgJ [DOCUMENT_ROOT] => [REQUEST_TIME] => 1661083396 [argv] => Array ( [0] => /in/AdLgJ ) [argc] => 1 ) [HTTP_SERVER_VARS] => Array ( [TERM] => xterm [PATH] => /usr/bin:/bin [LANG] => C [SHELL] => /bin/sh [MAIL] => /var/mail/nobody [LOGNAME] => nobody [USER] => nobody [HOME] => /tmp [PHP_SELF] => /in/AdLgJ [SCRIPT_NAME] => /in/AdLgJ [SCRIPT_FILENAME] => /in/AdLgJ [PATH_TRANSLATED] => /in/AdLgJ [DOCUMENT_ROOT] => [REQUEST_TIME] => 1661083396 [argv] => Array ( [0] => /in/AdLgJ ) [argc] => 1 ) [_FILES] => Array ( ) [HTTP_POST_FILES] => Array ( ) [_REQUEST] => Array ( ) )

preferences:
73.53 ms | 424 KiB | 5 Q