3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function first(){ } function second(){ } } $foo = new Foo(); $reflect = new ReflectionClass($foo); $props = $reflect->getMethods(); foreach ($props as $prop) { print $prop . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/sXoSm
function name:  (null)
number of ops:  17
compiled vars:  !0 = $foo, !1 = $reflect, !2 = $props, !3 = $prop
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $4      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
   15     3        NEW                                              $7      'ReflectionClass'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $7
   17     7        INIT_METHOD_CALL                                         !1, 'getMethods'
          8        DO_FCALL                                      0  $10     
          9        ASSIGN                                                   !2, $10
   19    10      > FE_RESET_R                                       $12     !2, ->15
         11    > > FE_FETCH_R                                               $12, !3, ->15
   20    12    >   CONCAT                                           ~13     !3, '%0A'
         13        ECHO                                                     ~13
   19    14      > JMP                                                      ->11
         15    >   FE_FREE                                                  $12
   21    16      > RETURN                                                   1

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

End of function first

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

End of function second

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.13 ms | 1395 KiB | 13 Q