<?php class Test { public static $var = 0; } echo "Before:-\n"; echo "Default: "; var_dump(get_class_vars(Test::class)); echo "Current: "; var_dump( (new ReflectionClass(Test::class))->getStaticProperties() ); test::$var = 42; echo "After:-\n"; echo "Default: "; var_dump(get_class_vars(Test::class)); echo "Current: "; var_dump( (new ReflectionClass(Test::class))->getStaticProperties() );
You have javascript disabled. You will not be able to edit any code.