3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private static $list = ['a','b','c','d']; private static $list_item; public static function iterate () { foreach(self::$list as $a['b']) { } } } Test::iterate();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WsTlD
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_STATIC_METHOD_CALL                                  'Test', 'iterate'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Class Test:
Function iterate:
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/WsTlD
function name:  iterate
number of ops:  8
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   FETCH_STATIC_PROP_R          unknown             ~1      'list'
          1      > FE_RESET_R                                       $2      ~1, ->6
          2    > > FE_FETCH_R                                               $2, $3, ->6
          3    >   ASSIGN_DIM                                               !0, 'b'
          4        OP_DATA                                                  $3
          5      > JMP                                                      ->2
          6    >   FE_FREE                                                  $2
   13     7      > RETURN                                                   null

End of function iterate

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.87 ms | 1385 KiB | 13 Q