<?php const SomeInterface = 1; const AnotherInterface = 2; $object = AnotherInterface; var_dump( match ($object) { SomeInterface => 'foo', AnotherInterface => 'bar', } );
You have javascript disabled. You will not be able to edit any code.