3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Test { protected $bridge; public function implement($name) { $this->bridge = $name; } } class A { use Test; public function __construct() { $this->implement('something'); } public function foo() { echo $this->bridge; } } class B extends A {}; var_dump(is_callable(array(new B(),'implement')));

preferences:
51.61 ms | 402 KiB | 5 Q