3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = (object) [ 'id' => 123, 'firstname' => 'james', 'lastname' => 'test', ]; $remapped_obj = new stdClass; foreach ($obj as $key => $value) { $remapped_obj->{$key} = "{$value}{$value}"; } $obj = $remapped_obj; var_dump($obj);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 13
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/VbfCn
function name:  (null)
number of ops:  19
compiled vars:  !0 = $obj, !1 = $remapped_obj, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   CAST                                          8  ~4      <array>
    3     1        ASSIGN                                                   !0, ~4
    9     2        NEW                                              $6      'stdClass'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $6
   10     5      > FE_RESET_R                                       $9      !0, ->13
          6    > > FE_FETCH_R                                       ~10     $9, !2, ->13
          7    >   ASSIGN                                                   !3, ~10
   11     8        NOP                                                      
          9        FAST_CONCAT                                      ~13     !2, !2
         10        ASSIGN_OBJ                                               !1, !3
         11        OP_DATA                                                  ~13
   10    12      > JMP                                                      ->6
         13    >   FE_FREE                                                  $9
   13    14        ASSIGN                                                   !0, !1
   14    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.23 ms | 1395 KiB | 15 Q