3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function __construct() { ; } function test() { var_dump($this); } } $reflection_class = new ReflectionClass('Test'); var_dump($reflection_class->getMethod('test')->isStatic()); $test = new Test(); $test->test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5HvPK
function name:  (null)
number of ops:  18
compiled vars:  !0 = $reflection_class, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $2      'ReflectionClass'
          1        SEND_VAL_EX                                              'Test'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   18     4        INIT_FCALL                                               'var_dump'
          5        INIT_METHOD_CALL                                         !0, 'getMethod'
          6        SEND_VAL_EX                                              'test'
          7        DO_FCALL                                      0  $5      
          8        INIT_METHOD_CALL                                         $5, 'isStatic'
          9        DO_FCALL                                      0  $6      
         10        SEND_VAR                                                 $6
         11        DO_ICALL                                                 
   20    12        NEW                                              $8      'Test'
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !1, $8
   21    15        INIT_METHOD_CALL                                         !1, 'test'
         16        DO_FCALL                                      0          
         17      > RETURN                                                   1

Class Test:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5HvPK
function name:  __construct
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E > > RETURN                                                   null

End of function __construct

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5HvPK
function name:  test
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_THIS                                       ~0      
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   13     4      > RETURN                                                   null

End of function test

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.05 ms | 1388 KiB | 15 Q