3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass; $a->a = 'a1'; $a->b = 'b1'; $a->c = 'c1'; var_dump($a); foreach ($a as $key => $item) { var_dump($key); var_dump($item); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 22
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 22
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/s3U2B
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $item, !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, 'a'
          4        OP_DATA                                                  'a1'
    5     5        ASSIGN_OBJ                                               !0, 'b'
          6        OP_DATA                                                  'b1'
    6     7        ASSIGN_OBJ                                               !0, 'c'
          8        OP_DATA                                                  'c1'
    8     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
   10    12      > FE_RESET_R                                       $10     !0, ->22
         13    > > FE_FETCH_R                                       ~11     $10, !1, ->22
         14    >   ASSIGN                                                   !2, ~11
   11    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
   12    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                                 
   10    21      > JMP                                                      ->13
         22    >   FE_FREE                                                  $10
   13    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.83 ms | 1399 KiB | 15 Q