Output of the "PHP 8.1: getting the FQCN of a variable with ::class " PHP snippet

Environment:

  • Strangebuzz Snippet VM: 6.4.2
  • PHP: 8.3

Code execution output:

Class with ::class =Symfony\Component\HttpFoundation\Request
Class with get_class() =Symfony\Component\HttpFoundation\Request