1--TEST-- 2Test count() function : count on symbol table 3--FILE-- 4<?php 5 6$c1 = 0; 7$c2 = 0; 8$a = 1; 9$b = 1; 10$c1 = count($GLOBALS); 11unset($a); 12unset($GLOBALS["b"]); 13$c2 = count($GLOBALS); 14 15var_dump($c1 - $c2); 16$c = 1; 17$c1 = count($GLOBALS); 18var_dump($c1 - $c2); 19?> 20--EXPECT-- 21int(2) 22int(1) 23