3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $_foo = array(); public function fill(){ array_push($this->_foo, "hello"); array_push($this->_foo, "world"); } public function getFoo() { return $this->_foo; } } $foo = new Foo(); foreach($foo->fill() as $q){ echo $q; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/7BRaZ
function name:  (null)
number of ops:  11
compiled vars:  !0 = $foo, !1 = $q
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $2      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   15     3        INIT_METHOD_CALL                                         !0, 'fill'
          4        DO_FCALL                                      0  $5      
          5      > FE_RESET_R                                       $6      $5, ->9
          6    > > FE_FETCH_R                                               $6, !1, ->9
   16     7    >   ECHO                                                     !1
   15     8      > JMP                                                      ->6
          9    >   FE_FREE                                                  $6
   17    10      > RETURN                                                   1

Class Foo:
Function fill:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7BRaZ
function name:  fill
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'array_push'
          1        FETCH_OBJ_W                                      $0      '_foo'
          2        SEND_REF                                                 $0
          3        SEND_VAL                                                 'hello'
          4        DO_ICALL                                                 
    7     5        INIT_FCALL                                               'array_push'
          6        FETCH_OBJ_W                                      $2      '_foo'
          7        SEND_REF                                                 $2
          8        SEND_VAL                                                 'world'
          9        DO_ICALL                                                 
    8    10      > RETURN                                                   null

End of function fill

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

End of function getfoo

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.31 ms | 1396 KiB | 15 Q