3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(array_map( function (\ReflectionClass $class) { return $class->getName(); }, array_filter( array_map( function ($className) { return new \ReflectionClass($className); }, get_declared_classes() ), function (\ReflectionClass $class) { return $class->getParentClass() && $class->getParentClass()->getParentClass(); } ) ));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j9QNS
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'array_map'
    4     2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fj9QNS%3A4%240'
          3        SEND_VAL                                                 ~0
    5     4        INIT_FCALL                                               'array_filter'
    6     5        INIT_FCALL                                               'array_map'
    7     6        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fj9QNS%3A7%241'
          7        SEND_VAL                                                 ~1
    8     8        INIT_FCALL                                               'get_declared_classes'
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                         $3      
         12        SEND_VAR                                                 $3
   10    13        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fj9QNS%3A10%242'
         14        SEND_VAL                                                 ~4
         15        DO_ICALL                                         $5      
         16        SEND_VAR                                                 $5
         17        DO_ICALL                                         $6      
         18        SEND_VAR                                                 $6
         19        DO_ICALL                                                 
   12    20      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fj9QNS%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j9QNS
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        INIT_METHOD_CALL                                         !0, 'getName'
          2        DO_FCALL                                      0  $1      
          3      > RETURN                                                   $1
          4*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fj9QNS%3A4%240

Function %00%7Bclosure%7D%2Fin%2Fj9QNS%3A7%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j9QNS
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $className
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        NEW                                              $1      'ReflectionClass'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4      > RETURN                                                   $1
          5*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fj9QNS%3A7%241

Function %00%7Bclosure%7D%2Fin%2Fj9QNS%3A10%242:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/j9QNS
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1        INIT_METHOD_CALL                                         !0, 'getParentClass'
          2        DO_FCALL                                      0  $1      
          3      > JMPZ_EX                                          ~2      $1, ->9
          4    >   INIT_METHOD_CALL                                         !0, 'getParentClass'
          5        DO_FCALL                                      0  $3      
          6        INIT_METHOD_CALL                                         $3, 'getParentClass'
          7        DO_FCALL                                      0  $4      
          8        BOOL                                             ~2      $4
          9    > > RETURN                                                   ~2
         10*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fj9QNS%3A10%242

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.28 ms | 1400 KiB | 21 Q