3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function a() { $this->foo = 'bar'; } } $c = new A(); $reflect = new ReflectionClass($c); $props = $reflect->getProperties(); var_dump($props); $c->a(); $reflect = new ReflectionClass($c); $props = $reflect->getProperties(); var_dump($props);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lL1vJ
function name:  (null)
number of ops:  26
compiled vars:  !0 = $c, !1 = $reflect, !2 = $props
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $3      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   11     3        NEW                                              $6      'ReflectionClass'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $6
   12     7        INIT_METHOD_CALL                                         !1, 'getProperties'
          8        DO_FCALL                                      0  $9      
          9        ASSIGN                                                   !2, $9
   14    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
   16    13        INIT_METHOD_CALL                                         !0, 'a'
         14        DO_FCALL                                      0          
   18    15        NEW                                              $13     'ReflectionClass'
         16        SEND_VAR_EX                                              !0
         17        DO_FCALL                                      0          
         18        ASSIGN                                                   !1, $13
   19    19        INIT_METHOD_CALL                                         !1, 'getProperties'
         20        DO_FCALL                                      0  $16     
         21        ASSIGN                                                   !2, $16
   21    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Class A:
Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lL1vJ
function name:  a
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN_OBJ                                               'foo'
          1        OP_DATA                                                  'bar'
    6     2      > RETURN                                                   null

End of function a

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.73 ms | 1396 KiB | 15 Q