3v4l.org

run code in 300+ PHP versions simultaneously
<?php #[AsCommand(description: 'description of the command', name: 'app:'.self::command.':process')] final class MyCommand { } $r = new ReflectionClass('MyCommand'); foreach($r->getAttributes() as $attribute) { foreach($attribute->getArguments() as $arg) { var_dump($arg); } }

preferences:
35.54 ms | 404 KiB | 5 Q