3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public function autoloadMethods($data): void { foreach ($data as $name) { call_user_func($name); } } public function test1(): void { print 'Hello from test1!'; } } $test = new MyClass(); $test->autoloadMethods(['test1']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0ab13
function name:  (null)
number of ops:  7
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $1      'MyClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   19     3        INIT_METHOD_CALL                                         !0, 'autoloadMethods'
          4        SEND_VAL_EX                                              <array>
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class MyClass:
Function autoloadmethods:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 6
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/0ab13
function name:  autoloadMethods
number of ops:  8
compiled vars:  !0 = $data, !1 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1      > FE_RESET_R                                       $2      !0, ->6
          2    > > FE_FETCH_R                                               $2, !1, ->6
    8     3    >   INIT_USER_CALL                                0          'call_user_func', !1
          4        DO_FCALL                                      0          
    7     5      > JMP                                                      ->2
          6    >   FE_FREE                                                  $2
   10     7      > RETURN                                                   null

End of function autoloadmethods

Function test1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0ab13
function name:  test1
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ECHO                                                     'Hello+from+test1%21'
   15     1      > RETURN                                                   null

End of function test1

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.65 ms | 1394 KiB | 13 Q