3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Bar { protected $things = []; function __destruct() { print_r($this->things); } } class Foo { protected $things = [ '1' => 'one' ]; use Bar; } new Foo();

preferences:
29.41 ms | 402 KiB | 5 Q