3v4l.org

run code in 300+ PHP versions simultaneously
<pre> <?php for($x=0;$x<10;$x++) { $array[$x]["description"] = array("en" => mt_rand(0,100)); } echo "before loop:\n"; print_r($array); echo "after loop:\n"; foreach($array as $key => $value) { foreach($value as $v) { echo $v["en"]."\n"; } } ?> </pre>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
2 jumps found. (Code = 77) Position 1 = 20, Position 2 = 30
Branch analysis from position: 20
2 jumps found. (Code = 78) Position 1 = 21, Position 2 = 30
Branch analysis from position: 21
2 jumps found. (Code = 77) Position 1 = 23, Position 2 = 28
Branch analysis from position: 23
2 jumps found. (Code = 78) Position 1 = 24, Position 2 = 28
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 28
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
Branch analysis from position: 3
filename:       /in/ITXhg
function name:  (null)
number of ops:  33
compiled vars:  !0 = $x, !1 = $array, !2 = $value, !3 = $key, !4 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Cpre%3E%0A'
    3     1        ASSIGN                                                   !0, 0
          2      > JMP                                                      ->12
    4     3    >   INIT_FCALL                                               'mt_rand'
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 100
          6        DO_ICALL                                         $8      
          7        INIT_ARRAY                                       ~9      $8, 'en'
          8        FETCH_DIM_W                                      $6      !1, !0
          9        ASSIGN_DIM                                               $6, 'description'
         10        OP_DATA                                                  ~9
    3    11        PRE_INC                                                  !0
         12    >   IS_SMALLER                                               !0, 10
         13      > JMPNZ                                                    ~11, ->3
    6    14    >   ECHO                                                     'before+loop%3A%0A'
    7    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
    8    18        ECHO                                                     'after+loop%3A%0A'
    9    19      > FE_RESET_R                                       $13     !1, ->30
         20    > > FE_FETCH_R                                       ~14     $13, !2, ->30
         21    >   ASSIGN                                                   !3, ~14
   10    22      > FE_RESET_R                                       $16     !2, ->28
         23    > > FE_FETCH_R                                               $16, !4, ->28
   11    24    >   FETCH_DIM_R                                      ~17     !4, 'en'
         25        CONCAT                                           ~18     ~17, '%0A'
         26        ECHO                                                     ~18
   10    27      > JMP                                                      ->23
         28    >   FE_FREE                                                  $16
    9    29      > JMP                                                      ->20
         30    >   FE_FREE                                                  $13
   16    31        ECHO                                                     '%3C%2Fpre%3E'
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.08 ms | 1400 KiB | 17 Q