3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { protected $commands = ['foo', 'bar']; public function commands($command) { var_dump($command); } public static function boot() { foreach ($this->commands as $command) { $this->commands($command); } } } Test::boot();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f0J2W
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   INIT_STATIC_METHOD_CALL                                  'Test', 'boot'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Class Test:
Function commands:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f0J2W
function name:  commands
number of ops:  5
compiled vars:  !0 = $command
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   10     4      > RETURN                                                   null

End of function commands

Function boot:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/f0J2W
function name:  boot
number of ops:  11
compiled vars:  !0 = $command
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   FETCH_THIS                                       $1      
          1        FETCH_OBJ_R                                      ~2      $1, 'commands'
          2      > FE_RESET_R                                       $3      ~2, ->9
          3    > > FE_FETCH_R                                               $3, !0, ->9
   15     4    >   FETCH_THIS                                       $4      
          5        INIT_METHOD_CALL                                         $4, 'commands'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0          
   14     8      > JMP                                                      ->3
          9    >   FE_FREE                                                  $3
   17    10      > RETURN                                                   null

End of function boot

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.83 ms | 1396 KiB | 15 Q