3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new \stdClass(); $obj->foo = 'bar'; $obj->baz = 'quux'; foreach (get_object_vars($obj) as $key => $value) { echo($key . ' => ' . $value . "\n"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 18
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 18
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/M5Mhe
function name:  (null)
number of ops:  20
compiled vars:  !0 = $obj, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        ASSIGN_OBJ                                               !0, 'foo'
          4        OP_DATA                                                  'bar'
    5     5        ASSIGN_OBJ                                               !0, 'baz'
          6        OP_DATA                                                  'quux'
    7     7        INIT_FCALL                                               'get_object_vars'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $8      
         10      > FE_RESET_R                                       $9      $8, ->18
         11    > > FE_FETCH_R                                       ~10     $9, !1, ->18
         12    >   ASSIGN                                                   !2, ~10
    8    13        CONCAT                                           ~12     !2, '+%3D%3E+'
         14        CONCAT                                           ~13     ~12, !1
         15        CONCAT                                           ~14     ~13, '%0A'
         16        ECHO                                                     ~14
    7    17      > JMP                                                      ->11
         18    >   FE_FREE                                                  $9
    9    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.5 ms | 1395 KiB | 15 Q