3v4l.org

run code in 300+ PHP versions simultaneously
<?php $newObj = new MyClass(); $variables = get_object_vars($newObj); foreach ($variable as $key => $value) { if (isset($object->$key)) { $newObj->$key = $object->$key; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 15
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/s1s1f
function name:  (null)
number of ops:  18
compiled vars:  !0 = $newObj, !1 = $variables, !2 = $variable, !3 = $value, !4 = $key, !5 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $6      'MyClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $6
    4     3        INIT_FCALL                                               'get_object_vars'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $9      
          6        ASSIGN                                                   !1, $9
    5     7      > FE_RESET_R                                       $11     !2, ->16
          8    > > FE_FETCH_R                                       ~12     $11, !3, ->16
          9    >   ASSIGN                                                   !4, ~12
    6    10        ISSET_ISEMPTY_PROP_OBJ                                   !5, !4
         11      > JMPZ                                                     ~14, ->15
    7    12    >   FETCH_OBJ_R                                      ~16     !5, !4
         13        ASSIGN_OBJ                                               !0, !4
         14        OP_DATA                                                  ~16
    5    15    > > JMP                                                      ->8
         16    >   FE_FREE                                                  $11
    9    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.06 ms | 1395 KiB | 15 Q