3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private static $bar; } var_dump(array_merge( [], ...array_map( function ($symbol) { return array_map( function (\ReflectionProperty $property) { return ($property->getDeclaringClass()->getName()) . '::$' . $property->getName(); }, array_filter( (new \ReflectionClass($symbol))->getMethods(), function (\ReflectionProperty $property) { return $property->isStatic(); } ) ); }, array_merge(get_declared_classes(), get_declared_traits()) ) ));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aCs3f
function name:  (null)
number of ops:  22
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'array_merge'
    9     2        SEND_VAL                                                 <array>
   10     3        INIT_FCALL                                               'array_map'
   11     4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FaCs3f%3A11%240'
   23     5        SEND_VAL                                                 ~0
   24     6        INIT_FCALL                                               'array_merge'
          7        INIT_FCALL                                               'get_declared_classes'
          8        DO_ICALL                                         $1      
          9        SEND_VAR                                                 $1
         10        INIT_FCALL                                               'get_declared_traits'
         11        DO_ICALL                                         $2      
         12        SEND_VAR                                                 $2
         13        DO_ICALL                                         $3      
         14        SEND_VAR                                                 $3
         15        DO_ICALL                                         $4      
         16        SEND_UNPACK                                              $4
         17        CHECK_UNDEF_ARGS                                         
         18        DO_ICALL                                         $5      
         19        SEND_VAR                                                 $5
         20        DO_ICALL                                                 
   26    21      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FaCs3f%3A11%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aCs3f
function name:  {closure}
number of ops:  18
compiled vars:  !0 = $symbol
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   12     1        INIT_FCALL                                               'array_map'
   13     2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FaCs3f%3A13%241'
   15     3        SEND_VAL                                                 ~1
   16     4        INIT_FCALL                                               'array_filter'
   17     5        NEW                                              $2      'ReflectionClass'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0          
          8        INIT_METHOD_CALL                                         $2, 'getMethods'
          9        DO_FCALL                                      0  $4      
         10        SEND_VAR                                                 $4
   18    11        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FaCs3f%3A18%242'
   20    12        SEND_VAL                                                 ~5
         13        DO_ICALL                                         $6      
         14        SEND_VAR                                                 $6
         15        DO_ICALL                                         $7      
         16      > RETURN                                                   $7
   23    17*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FaCs3f%3A11%240

Function %00%7Bclosure%7D%2Fin%2FaCs3f%3A13%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aCs3f
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $property
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   14     1        INIT_METHOD_CALL                                         !0, 'getDeclaringClass'
          2        DO_FCALL                                      0  $1      
          3        INIT_METHOD_CALL                                         $1, 'getName'
          4        DO_FCALL                                      0  $2      
          5        CONCAT                                           ~3      $2, '%3A%3A%24'
          6        INIT_METHOD_CALL                                         !0, 'getName'
          7        DO_FCALL                                      0  $4      
          8        CONCAT                                           ~5      ~3, $4
          9      > RETURN                                                   ~5
   15    10*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FaCs3f%3A13%241

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

End of function %00%7Bclosure%7D%2Fin%2FaCs3f%3A18%242

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.05 ms | 1400 KiB | 25 Q