3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = (object) array(); foreach (array(1,2,3) as $a->foo => $a->bar[]) { print_r($a); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 13
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 13
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/kIO35
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CAST                                          8  ~1      <array>
          1        ASSIGN                                                   !0, ~1
    5     2      > FE_RESET_R                                       $3      <array>, ->13
          3    > > FE_FETCH_R                                       ~7      $3, $4, ->13
          4    >   FETCH_OBJ_W                                      $5      !0, 'bar'
          5        ASSIGN_DIM                                               $5
          6        OP_DATA                                                  $4
          7        ASSIGN_OBJ                                               !0, 'foo'
          8        OP_DATA                                                  ~7
    6     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
    5    12      > JMP                                                      ->3
         13    >   FE_FREE                                                  $3
    7    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.18 ms | 1394 KiB | 15 Q