3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ddi = array(0 => 16, 1 => 18); $di_array_count = count($ddi); for($c=0; $c<$di_array_count; $c++){ $key = array_keys($ddi); $val= $ddi[0]; print_r($val); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 5
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 5
Branch analysis from position: 17
Branch analysis from position: 5
filename:       /in/8DbLM
function name:  (null)
number of ops:  18
compiled vars:  !0 = $ddi, !1 = $di_array_count, !2 = $c, !3 = $key, !4 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        COUNT                                            ~6      !0
          2        ASSIGN                                                   !1, ~6
    6     3        ASSIGN                                                   !2, 0
          4      > JMP                                                      ->15
    7     5    >   INIT_FCALL                                               'array_keys'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $9      
          8        ASSIGN                                                   !3, $9
    8     9        FETCH_DIM_R                                      ~11     !0, 0
         10        ASSIGN                                                   !4, ~11
   10    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !4
         13        DO_ICALL                                                 
    6    14        PRE_INC                                                  !2
         15    >   IS_SMALLER                                               !2, !1
         16      > JMPNZ                                                    ~15, ->5
   11    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.32 ms | 1395 KiB | 17 Q