3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Hydrator { public function hydrate($obj, array $data) { $obj->test = $data['test']; } } $hydrator = new Hydrator(); $obj = new stdClass(); $data = ['test' => 'Hi!']; $hydrator->hydrate($obj, $data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nQKnm
function name:  (null)
number of ops:  12
compiled vars:  !0 = $hydrator, !1 = $obj, !2 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $3      'Hydrator'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   10     3        NEW                                              $6      'stdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $6
   12     6        ASSIGN                                                   !2, <array>
   14     7        INIT_METHOD_CALL                                         !0, 'hydrate'
          8        SEND_VAR_EX                                              !1
          9        SEND_VAR_EX                                              !2
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1

Class Hydrator:
Function hydrate:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nQKnm
function name:  hydrate
number of ops:  6
compiled vars:  !0 = $obj, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        FETCH_DIM_R                                      ~3      !1, 'test'
          3        ASSIGN_OBJ                                               !0, 'test'
          4        OP_DATA                                                  ~3
    6     5      > RETURN                                                   null

End of function hydrate

End of class Hydrator.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.14 ms | 1398 KiB | 13 Q