3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.94 ms | 1010 KiB | 14 Q