mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +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)
|