3v4l.org

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

preferences:
16.66 ms | 404 KiB | 5 Q