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 = 14
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 14
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/I1avF
function name:  (null)
number of ops:  16
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>, ->14
          3    > > FE_FETCH_R                                       ~7      $3, $4, ->14
          4    >   FETCH_OBJ_W                                      $5      !0, 'bar'
          5        ASSIGN_DIM                                               $5
          6        OP_DATA                                                  $4
          7        FETCH_OBJ_W                                      $8      !0, 'foo'
          8        ASSIGN_DIM                                               $8
          9        OP_DATA                                                  ~7
    6    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
    5    13      > JMP                                                      ->3
         14    >   FE_FREE                                                  $3
    7    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.02 ms | 1394 KiB | 15 Q