3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public int $uninitializedTyped; public $uninitialized; public int $initializedTyped = 0; public $ininitialized = 0; } $foo = new Foo(); var_dump(get_class_vars(get_class($foo))); var_dump(get_object_vars($foo));

preferences:
56.06 ms | 406 KiB | 5 Q