3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php trait TraitWithProperties { private $a = 'foo'; protected $b = 'bar'; public $c = 'baz'; private static $as = self::class; protected static $bs = __TRAIT__; public static $cs = __CLASS__; } class SimpleClassWithTrait { use TraitWithProperties; } $refClass = new ReflectionClass('SimpleClassWithTrait'); var_dump($refClass->getStaticProperties());
based on aDdQ6