3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php trait Bar { function __destruct() { print_r($this->things); } } class Foo { protected $things = [ '1' => 'one' ]; use Bar; } new Foo();
Output for 7.0.20
Array ( [1] => one )