3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $field; public function setFiled($field) { $this->field = $field; } } $test1 = new Test(); $test2 = new Test(); $arr = array(); $arr[] = $test1; $arr[] = $test2;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ifdV9
function name:  (null)
number of ops:  12
compiled vars:  !0 = $test1, !1 = $test2, !2 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $3      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   11     3        NEW                                              $6      'Test'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $6
   13     6        ASSIGN                                                   !2, <array>
   14     7        ASSIGN_DIM                                               !2
          8        OP_DATA                                                  !0
   15     9        ASSIGN_DIM                                               !2
         10        OP_DATA                                                  !1
         11      > RETURN                                                   1

Class Test:
Function setfiled:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ifdV9
function name:  setFiled
number of ops:  4
compiled vars:  !0 = $field
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ASSIGN_OBJ                                               'field'
          2        OP_DATA                                                  !0
    7     3      > RETURN                                                   null

End of function setfiled

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.42 ms | 1385 KiB | 13 Q