3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function foo() { echo "I was just called.<br>"; return array('a', 'b', 'c', 'd', 'e'); } } $test = new Test(); foreach ($test->foo() as $value) { echo $value . "<br>"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/nbHlc
function name:  (null)
number of ops:  12
compiled vars:  !0 = $test, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $2      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   14     3        INIT_METHOD_CALL                                         !0, 'foo'
          4        DO_FCALL                                      0  $5      
          5      > FE_RESET_R                                       $6      $5, ->10
          6    > > FE_FETCH_R                                               $6, !1, ->10
   15     7    >   CONCAT                                           ~7      !1, '%3Cbr%3E'
          8        ECHO                                                     ~7
   14     9      > JMP                                                      ->6
         10    >   FE_FREE                                                  $6
   16    11      > RETURN                                                   1

Class Test:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nbHlc
function name:  foo
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'I+was+just+called.%3Cbr%3E'
    9     1      > RETURN                                                   <array>
   10     2*     > RETURN                                                   null

End of function foo

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.54 ms | 1393 KiB | 13 Q