3v4l.org

run code in 300+ PHP versions simultaneously
<?php $res = new \stdClass(); $res->kazkas = 'kazkas'; $res->zis = 112312; $res->aspirmas = 'aspirmas'; foreach ($res as $elem) { var_dump($elem); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/sskmb
function name:  (null)
number of ops:  17
compiled vars:  !0 = $res, !1 = $elem
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    5     3        ASSIGN_OBJ                                               !0, 'kazkas'
          4        OP_DATA                                                  'kazkas'
    6     5        ASSIGN_OBJ                                               !0, 'zis'
          6        OP_DATA                                                  112312
    7     7        ASSIGN_OBJ                                               !0, 'aspirmas'
          8        OP_DATA                                                  'aspirmas'
    9     9      > FE_RESET_R                                       $8      !0, ->15
         10    > > FE_FETCH_R                                               $8, !1, ->15
   10    11    >   INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
    9    14      > JMP                                                      ->10
         15    >   FE_FREE                                                  $8
   11    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.99 ms | 1395 KiB | 15 Q