3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new class { /** @var \PHPStan\Parser\Parser */ private $parser; /** @var \PHPStan\Parser\FunctionCallStatementFinder */ private $functionCallStatementFinder; public function create(\PHPStan\Reflection\ClassReflection $declaringClass, \ReflectionMethod $reflection) : \PHPStan\Reflection\Php\PhpMethodReflection { return new \PHPStan\Reflection\Php\PhpMethodReflection($declaringClass, $reflection, $this->parser, $this->functionCallStatementFinder, true); } }; var_dump((new \ReflectionClass($obj))->getName());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3P0q4
function name:  (null)
number of ops:  13
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_ANON_CLASS                               <unknown> 
          1        NEW                                              $2      $1
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   14     4        INIT_FCALL                                               'var_dump'
          5        NEW                                              $5      'ReflectionClass'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0          
          8        INIT_METHOD_CALL                                         $5, 'getName'
          9        DO_FCALL                                      0  $7      
         10        SEND_VAR                                                 $7
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Class class@anonymous:
Function create:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3P0q4
function name:  create
number of ops:  17
compiled vars:  !0 = $declaringClass, !1 = $reflection
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   11     2        NEW                                              $2      'PHPStan%5CReflection%5CPhp%5CPhpMethodReflection'
          3        SEND_VAR_EX                                              !0
          4        SEND_VAR_EX                                              !1
          5        CHECK_FUNC_ARG                                           
          6        FETCH_OBJ_FUNC_ARG                               $3      'parser'
          7        SEND_FUNC_ARG                                            $3
          8        CHECK_FUNC_ARG                                           
          9        FETCH_OBJ_FUNC_ARG                               $4      'functionCallStatementFinder'
         10        SEND_FUNC_ARG                                            $4
         11        SEND_VAL_EX                                              <true>
         12        DO_FCALL                                      0          
         13        VERIFY_RETURN_TYPE                                       $2
         14      > RETURN                                                   $2
   12    15*       VERIFY_RETURN_TYPE                                       
         16*     > RETURN                                                   null

End of function create

End of class class@anonymous.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.79 ms | 1396 KiB | 15 Q