3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $current = 0; private $instance = null; private $arguments = array(); function foo($instance, $arguments) { list($this->current, $this->instance, $this->arguments) = array(0, $instance, $arguments); //$this->current = 0; //$this->instance = $instance; //$this->arguments = $arguments; } } $bar = new Test; $bar->foo($bar, array(1,2,3));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gBekK
function name:  (null)
number of ops:  8
compiled vars:  !0 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   21     3        INIT_METHOD_CALL                                         !0, 'foo'
          4        SEND_VAR_EX                                              !0
          5        SEND_VAL_EX                                              <array>
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class Test:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gBekK
function name:  foo
number of ops:  16
compiled vars:  !0 = $instance, !1 = $arguments
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   13     2        INIT_ARRAY                                       ~2      0
          3        ADD_ARRAY_ELEMENT                                ~2      !0
          4        ADD_ARRAY_ELEMENT                                ~2      !1
          5        FETCH_LIST_R                                     $3      ~2, 0
          6        ASSIGN_OBJ                                               'current'
          7        OP_DATA                                                  $3
          8        FETCH_LIST_R                                     $5      ~2, 1
          9        ASSIGN_OBJ                                               'instance'
         10        OP_DATA                                                  $5
         11        FETCH_LIST_R                                     $7      ~2, 2
         12        ASSIGN_OBJ                                               'arguments'
         13        OP_DATA                                                  $7
         14        FREE                                                     ~2
   17    15      > RETURN                                                   null

End of function foo

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.2 ms | 1385 KiB | 13 Q