3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //con sttaic no va class P { public $az=9; static $a=8; function __get($var) { echo 'BBBB'; return 'no existezzz'; } function __isset($var) { echo 'AAAAA'; return false; } } $P=new P; var_dump(isset($P->xaz)); print_r(array_keys(get_defined_vars()));
Output for 5.4.0 - 7.2.0
AAAAAbool(false) Array ( [0] => _GET [1] => _POST [2] => _COOKIE [3] => _FILES [4] => argv [5] => argc [6] => _SERVER [7] => P )
Output for 5.1.0 - 5.3.29
AAAAAbool(false) 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] => P )
Output for 5.0.0 - 5.0.5
bool(false) 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] => P )
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/fcETh on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/fcETh on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/fcETh on line 5
Process exited with code 255.