3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.67 ms | 2086 KiB | 14 Q