3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Test { var $_foo = null; function Test() { } function run() { list($foo, $bar) = $this->_foo = $this->get(); var_dump($this->_foo); var_dump($foo); var_dump($bar); } function get() { return array('foo', 'bar'); } } $test = new Test(); $test->run();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3bspc
function name:  (null)
number of ops:  6
compiled vars:  !0 = $test
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   25     0  E >   NEW                                                  $1      'Test'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   26     3        INIT_METHOD_CALL                                             !0, 'run'
          4        DO_FCALL                                          0          
          5      > RETURN                                                       1

Class Test:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3bspc
function name:  Test
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E > > RETURN                                                       null

End of function test

Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3bspc
function name:  run
number of ops:  20
compiled vars:  !0 = $foo, !1 = $bar
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   INIT_METHOD_CALL                                             'get'
          1        DO_FCALL                                          0  $3      
          2        ASSIGN_OBJ                                           ~2      '_foo'
          3        OP_DATA                                                      $3
          4        FETCH_LIST_R                                         $4      ~2, 0
          5        ASSIGN                                                       !0, $4
          6        FETCH_LIST_R                                         $6      ~2, 1
          7        ASSIGN                                                       !1, $6
          8        FREE                                                         ~2
   14     9        INIT_FCALL                                                   'var_dump'
         10        FETCH_OBJ_R                                          ~8      '_foo'
         11        SEND_VAL                                                     ~8
         12        DO_ICALL                                                     
   15    13        INIT_FCALL                                                   'var_dump'
         14        SEND_VAR                                                     !0
         15        DO_ICALL                                                     
   16    16        INIT_FCALL                                                   'var_dump'
         17        SEND_VAR                                                     !1
         18        DO_ICALL                                                     
   17    19      > RETURN                                                       null

End of function run

Function get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3bspc
function name:  get
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   21     0  E > > RETURN                                                       <array>
   22     1*     > RETURN                                                       null

End of function get

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.58 ms | 2302 KiB | 9 Q