3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Example{ public static $ONE = [1,'one']; public static $TWO = [2,'two']; public static $THREE = [3,'three']; public static function test(){ $reflection = new ReflectionClass(get_class()); return $reflection->getStaticProperties(); } } var_dump(Example::test());

preferences:
27.77 ms | 405 KiB | 5 Q