3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait ProtocolTrait { public function getCryptoMethod() { var_dump(__METHOD__); } } class MyProtocol { use ProtocolTrait; public function getCryptoMethod() { var_dump(__METHOD__); } } $c = new MyProtocol(); $c->getCryptoMethod();

preferences:
48.01 ms | 1442 KiB | 5 Q