3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Aggregation { public function callAggregation($method, $arguments) { var_dump($method, $arguments); } } class AggregateWithUse { use Aggregation { Aggregation::callAggregation as __call; } } class AggregateManually { use Aggregation; public function __call($method, $arguments) { $this->callAggregation($method, $arguments); } } (new AggregateWithUse())->test(42); (new AggregateManually())->test(42);

preferences:
38.89 ms | 402 KiB | 5 Q