mirror of
https://github.com/php/php-src.git
synced 2024-11-29 12:53:37 +08:00
19 lines
224 B
PHP
19 lines
224 B
PHP
--TEST--
|
|
Using 'static' and 'global' in global scope
|
|
--FILE--
|
|
<?php
|
|
|
|
static $var, $var, $var = -1;
|
|
var_dump($var);
|
|
|
|
global $var, $var, $var;
|
|
var_dump($var);
|
|
|
|
var_dump($GLOBALS['var']);
|
|
|
|
?>
|
|
--EXPECT--
|
|
int(-1)
|
|
int(-1)
|
|
int(-1)
|